Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.block_group_content.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 190 of /app/public/core/lib/Drupal/Core/Routing/RouteProvider.php). Appears when editing a blockgroup e.g admin/structure/block_group_content/{name}
It seems blockgroup claims to have a link template, but actually, it doesn't exists. Patch attached that should fix this
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2961446-1.patch | 628 bytes | big_man |
Issue fork blockgroup-2961446
Show commands
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 #2
big_man commentedOpps patch attached
Comment #3
norman.lolHummm, I cannot reproduce this one. Can you maybe retest that in the current Drupal 8.6 release? Do you have any specific module(s) enabled that might interfere?
Comment #4
norman.lolComment #5
er.garg.karanI tried deleting a block group manually. It worked like a charm.
But when I exported my configurations and imported them using drush config:import, I got the same error repeatedly until I applied the patch provided in #2.
I am using block group 2.0.0 and Drupal 10.2.
Comment #7
gogowitsch commentedI am using Drupal 11.3.2 and also ran into this problem with block groups created in an older version of Drupal. I see the issue on the collection route (
/admin/structure/block_group_content) once I have block groups defined.The patch fixes the problem. The code change is fine.
Side note: we can also remove the
"collection" = "/admin/structure/visibility_group"line because that route is also not defined. Let’s focus on the bug fix though and potentially touch the "collection" in a different issue.Comment #10
norman.lolThank you Christian! Merged 🚀
Let's quickly remove the collection in another issue, and then release. ✅
Comment #12
norman.lol2.0.2 is released. Thank you everybody 🙏🏻
Please update and let me know if anything's off.
Comment #13
norman.lol