Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'Route does not exist' exception when getting entity internal path in event #792

Closed
silverham opened this issue Jul 26, 2024 · 2 comments
Closed
Labels
bug Something isn't working triage A new issue that needs triage

Comments

@silverham
Copy link

Package containing the bug

next (Drupal module)

Describe the bug

Expected behavior

I can enable and uninstall the drupal entity_browser_example. without issue.

Actual behavior

I get the an error: Route "entity.entity_browser.canonical" does not exist.

Back trace:

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.entity_browser.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 208 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteByName('entity.entity_browser.canonical') (Line: 443)
Drupal\Core\Routing\UrlGenerator->getRoute('entity.entity_browser.canonical') (Line: 276)
Drupal\Core\Routing\UrlGenerator->generateFromRoute('entity.entity_browser.canonical', Array, Array, 1) (Line: 108)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('entity.entity_browser.canonical', Array, Array, 1) (Line: 765)
Drupal\Core\Url->toString(1) (Line: 78)
Drupal\next\Event\EntityActionEvent::createFromEntity(Object, 'insert') (Line: 71)
next_entity_insert(Object, 'entity_browser')
call_user_func_array(Object, Array) (Line: 416)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}(Object, 'next') (Line: 395)
Drupal\Core\Extension\ModuleHandler->invokeAllWith('entity_insert', Object) (Line: 415)
Drupal\Core\Extension\ModuleHandler->invokeAll('entity_insert', Array) (Line: 343)
Drupal\Core\Config\Entity\ConfigEntityStorage->invokeHook('insert', Object) (Line: 564)
Drupal\Core\Entity\EntityStorageBase->doPostSave(Object, ) (Line: 489)
Drupal\Core\Entity\EntityStorageBase->save(Object) (Line: 257)
Drupal\Core\Config\Entity\ConfigEntityStorage->save(Object) (Line: 354)
Drupal\Core\Entity\EntityBase->save() (Line: 613)
Drupal\Core\Config\Entity\ConfigEntityBase->save() (Line: 389)
Drupal\Core\Config\ConfigInstaller->createConfiguration('', Array) (Line: 149)
Drupal\Core\Config\ConfigInstaller->installDefaultConfig('module', 'entity_browser_example') (Line: 75)
Drupal\Core\ProxyClass\Config\ConfigInstaller->installDefaultConfig('module', 'entity_browser_example') (Line: 326)
Drupal\Core\Extension\ModuleInstaller->install(Array, 1) (Line: 83)
Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) (Line: 502)

Additional context

Similar issue solved in redirect module.

@silverham silverham added bug Something isn't working triage A new issue that needs triage labels Jul 26, 2024
@silverham
Copy link
Author

Never mind. Already fixed in: #550

Here a patah file link for those patching Drupal:

https://patch-diff.githubusercontent.com/raw/chapter-three/next-drupal/pull/550.diff

@silverham silverham closed this as not planned Won't fix, can't repro, duplicate, stale Jul 26, 2024
@silverham
Copy link
Author

Correct path Drupal patch: next-drupal-route-does-not-exist-pr-550.patch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage A new issue that needs triage
Projects
None yet
Development

No branches or pull requests

1 participant