Closed (fixed)
Project:
Group Block
Version:
3.0.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Oct 2026 at 20:34 UTC
Updated:
11 Nov 2026 at 23:00 UTC
Jump to comment: Most recent
Generated with the help of an LLM.
Running drush updb with Drupal 10.6.20, Group 3.3.5 and Groupblock 3.0.0 fails during container compilation:
Cannot autowire service "Drupal\groupblock\Hook\GroupblockHooks": argument "$groupRelationTypeManager" of method "__construct()" references interface "Drupal\group\Plugin\Group\Relation\GroupRelationTypeManagerInterface" but no such service exists.
Group provides the group_relation_type.manager service, but does not register an alias for this interface.
drush updb.Explicitly identify the service for the constructor argument in GroupblockHooks:
#[Autowire(service: 'group_relation_type.manager')] protected GroupRelationTypeManagerInterface $groupRelationTypeManager,
The class already imports the Autowire attribute.
Implement and test the fix.
None.
None expected.
None.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
lobsterr commentedThanks for your contribution
Comment #6
mradcliffeThank you, @freelock, @lobsterr!