- last update
11 months ago Composer require failure - πͺπΈSpain budalokko Girona
5 years later I was able to reproduce this one. In my case is in combination with the Next.js β Drupal module.
Instructions to reproduce:
1. Create an encryption profile
2. Install Next.js module and its dependencies (no worries, no need to configure).
3. Delete your encryption profile through the UI.
4. WSOD !The issue is due to EncryptProfile config entity declares a "canonical" path in its "links" section, but doesn't implement it:
https://git.drupalcode.org/project/encrypt/-/blob/8.x-3.x/src/Entity/Enc...
Drupal example on configuration entities β does not include a "canonical" path. Also when creating such entity with
drush gen entity:configuration
, the resulting entity does not contain such path, and the module does not use it.Hence, my suggestion would be to remove that line, which actually fixes the issue.
Please check the attached patch. It does not contain a test. I could try writing it, but not sure its actually wanted. Not breaking the other tests might be enough in this case.
BTW the code in Next.js triggering the error is something like this, in a generic
hook_entity_predelete
, which seems quite right:if ($entity->hasLinkTemplate('canonical')) { $url = $entity->toUrl(); }
- Status changed to RTBC
11 months ago 3:42pm 24 May 2024 - πΊπΈUnited States pookmish
Patch in #5 solved it for me. I wouldn't think there needs to be a canonical path for encryption profiles anyways.
I've been just ignoring the error for a while and finally decided to see if there was anyone with the same issue. Glad I waited until today.
- last update
10 months ago Composer require failure - π¬π§United Kingdom Finn Lewis
I ran into the same error, just trying to edit my encryption profile.
The patch in #5 fixes it for me.
Might we get a release?
Many thanks!
- last update
10 months ago 17 pass -
rlhawk β
committed 34829c3d on 8.x-3.x
Issue #2975098 by szato, budalokko, pookmish: Missing route: entity....
-
rlhawk β
committed 34829c3d on 8.x-3.x
- Status changed to Fixed
10 months ago 2:16pm 19 June 2024 - πΊπΈUnited States rlhawk Seattle, Washington, United States
Committed, thanks!
Automatically closed - issue fixed for 2 weeks with no activity.