- Issue created by @arkener
- First commit to issue fork.
- Merge request !204Use module handler to invoke other module's hooks. → (Open) 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.