Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
The config translate route to translate group roles is not working, it gives this error:
Symfony\Component\Routing\Exception\MissingMandatoryParametersException: Some mandatory parameters are missing ("group_type") to generate a URL for route "entity.group_role.config_translation_overview". in Drupal\Core\Routing\UrlGenerator->doGenerate() (line 180 of core/lib/Drupal/Core/Routing/UrlGenerator.php).
Comment | File | Size | Author |
---|---|---|---|
#8 | 2909897-8-translatable-group-names.patch | 1.21 KB | thtas |
|
Comments
Comment #2
just_like_good_vibesi have the same issue. I tried to investigate...
the route "entity.group_role.config_translation_overview" is generated from the module "config_translation" in core.
After looking at the generated route, it was looking fine with the parameter "@group_type" inside the route path.
so i still don't yet understand the underlying problem with this route and the missing parameter error.
Comment #3
micheljp CreditAttribution: micheljp commentedGetting similar error when i try to delete a node created through Group module:
Referrer: http://{{base_path}}/group/1/content/6/delete?destination=/group/1/nodes
Comment #4
jochemvn CreditAttribution: jochemvn for Open Social commented@micheljp, Check http://www.drupal.org/i/2908830
Comment #5
micheljp CreditAttribution: micheljp commented@jochemvn thanks so much for the info. Did this patch get applied to 8.x-1.0-rc1?
Comment #6
jochemvn CreditAttribution: jochemvn for Open Social commentedno, you have to apply it yourself, or use the dev version (would never recommend that btw)
Comment #7
kristiaanvandeneyndeSeems like a duplicate of #2908830: Crash when clicking "delete" any group content, please re-open if the problem persists with the latest dev.
Comment #8
thtas CreditAttribution: thtas commentedThis is still an issue for me in the latest dev.
Attached patch fixed it (no tests sorry). - It overrides the Drupal\config_translation\ConfigEntitityMapper class for GroupRole entities. The idea comes from how NodeType works and the way it also overrides the ConfigEntityMapper (see https://api.drupal.org/api/drupal/core%21modules%21node%21node.module/fu...).
Comment #9
idebr CreditAttribution: idebr at iO commentedThere is another issue available (with a similar patch) at #3014651: Can't translate group roles. I'll close this issue as a duplicate, so we can focus our efforts in the related issue.