Problem/Motivation

In combination with Drupal 11.3.10 a critical error occurs when visiting /admin/commerce/config/bundle-types.

Steps to reproduce

Visit: /admin/commerce/config/bundle-types and you get a critical Error: Route "entity.commerce_bundle_item_type.canonical" does not exist

The cause appears to be: Drupal tries to fetch canonical URLs, when there's a canonical link template in a types annotation / definition .

Proposed resolution

Remove the canonical Link template from BundleItemType annotation. Drupal would not try to create canonical routes anymore and the error is gone.
As an alternative, one would serve the missing route (entity.commerce_bundle_item_type.canonical) but because that's not obligatory for Entity-types i propose the path of simplification and removal of the link template.

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

tomsaw created an issue. See original summary.

valic’s picture

Status: Active » Fixed

tnx, merged

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.

Status: Fixed » Closed (fixed)

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