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

CommentFileSizeAuthor
#2 2961446-1.patch628 bytesbig_man

Issue fork blockgroup-2961446

Command icon 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

big_man created an issue. See original summary.

big_man’s picture

StatusFileSize
new628 bytes

Opps patch attached

norman.lol’s picture

Status: Active » Postponed (maintainer needs more info)

Hummm, 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?

norman.lol’s picture

Status: Postponed (maintainer needs more info) » Closed (outdated)
er.garg.karan’s picture

Version: 8.x-1.0 » 2.0.0
Status: Closed (outdated) » Needs review

I 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.

gogowitsch made their first commit to this issue’s fork.

gogowitsch’s picture

Version: 2.0.0 » 2.0.1
Status: Needs review » Reviewed & tested by the community

I 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.

norman.lol’s picture

Status: Reviewed & tested by the community » Fixed

Thank you Christian! Merged 🚀

Let's quickly remove the collection in another issue, and then release. ✅

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

norman.lol’s picture

Version: 2.0.1 » 2.x-dev

2.0.2 is released. Thank you everybody 🙏🏻

Please update and let me know if anything's off.

norman.lol’s picture

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.