- Issue created by @arkener
- First commit to issue fork.
- Merge request !204Use module handler to invoke other module's hooks. → (Merged) created by kristiaanvandeneynde
- 🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium
Added a MR that calls the module handler. This should make it work on both pre and post 11.1 Drupal.
- 🇳🇱Netherlands arkener
Thanks for your quick reaction Kristiaan! I've tested this patch on 11.1.0 and I'm now receiving an
Unsupported operand types: array + null
error:Stacktrace:
at /var/www/html/drupal/modules/contrib/group/src/Plugin/Group/RelationHandlerDefault/OperationProvider.php:78 at Drupal\group\Plugin\Group\RelationHandlerDefault\OperationProvider->getOperations() (/var/www/html/drupal/modules/contrib/group/src/Plugin/Group/RelationHandler/OperationProviderTrait.php:62) at Drupal\group\Plugin\Group\RelationHandler\EmptyOperationProvider->getOperations() (/var/www/html/drupal/modules/contrib/group/src/Entity/Controller/GroupTypeController.php:202) ...
Adding a simple fallback for no invokes
?? []
onOperationProvider.php:78
fixed this issue for me. - 🇫🇮Finland simohell
I have the same behavior (array+null with the patch), so following the issue.
- 🇫🇮Finland simohell
I tested the latest version of the MR with 11.0.10-dev and 11.1.1-dev and both worked.
A patched version also worked on the site where I encountered the issue in a real life situation on 11.1.0, so I would say the MR fixes the issue described in the summary. - 🇳🇱Netherlands arkener
Tested the latest version of the MR on my instance of 11.1.0 and it also resolved the
Unsupported operand types: array + null
issue for me. - 🇺🇸United States JasonSafro
I encountered this problem with Drupal 11.1.1 and Group 3.3.3. The patch worked for me too.
- Status changed to RTBC
2 months ago 6:16pm 5 March 2025 - 🇳🇱Netherlands sanderwind Friesland
The patch can be applied successfully, but does not fix implementing the
entity_operation
hook of the Field UI module. It is calling the hook with a trailings
, but that specific hook does not existI'll fix the invocation of the hook.
- 🇮🇳India sdhruvi5142
Hi, Applied the MR!204 on Drupal 11.1.4 version and it is working as expected.
Testing Steps:
1. Installed group module
2. Go to /admin/group/types/manage/testing/content path
3. Oberve the changes thereTesting result:
Before applying patch I was able to see the error and after applying the patch the errors are removed able to see the page properly. Attaching the screenshots for reference. Moving this issue to RTBC+1Status - PASS
- 🇪🇪Estonia tormi Tallinn
RTBC. Saving MR as a patch to use it safely in Composer. Source https://www.drupal.org/project/group/issues/3494447#comment-16041712 🐛 Undefined function field_ui_entity_operation Active
- 🇪🇸Spain jlbellido
I do confirm that MR!204 works for me as well like a charm.
Thanks! - 🇫🇮Finland tvalimaa
Patch worked on /admin/group/types/manage/group/content page and also i had problems with saving a new groups which this also seems to solved. I didn't get any errors on saving a new group but those just didn't save but after this patch everything seems to work.
- 🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium
Will do final check and commit on Friday probably, maybe early next week.
- 🇦🇺Australia dabbor
I needed to fix on Group 2.3.x so I created a port of the issue and manually applied the fix there: https://www.drupal.org/project/group/issues/3522375 🐛 Undefined function field_ui_entity_operation - Group 2.x Active
- 🇧🇪Belgium kristiaanvandeneynde Antwerp, Belgium
Generally, the approach is to commit to the target branch first and then the other active branches, in the same issue. Please don't open new issues for porting MRs as it makes my huge issue queue even larger.
-
kristiaanvandeneynde →
committed 448527bd on 3.3.x
Issue #3494447 by kristiaanvandeneynde, sanderwind: Undefined function...
-
kristiaanvandeneynde →
committed 448527bd on 3.3.x
-
kristiaanvandeneynde →
committed d758c2c0 on 2.3.x
Issue #3494447 by kristiaanvandeneynde, sanderwind: Undefined function...
-
kristiaanvandeneynde →
committed d758c2c0 on 2.3.x
-
kristiaanvandeneynde →
committed fcf66939 on 4.0.x
Issue #3494447 by kristiaanvandeneynde, sanderwind: Undefined function...
-
kristiaanvandeneynde →
committed fcf66939 on 4.0.x