- Issue created by @vipin.mittal18
- First commit to issue fork.
- Status changed to Needs review
8 months ago 7:11am 13 March 2024 - Status changed to Closed: cannot reproduce
8 months ago 7:51am 13 March 2024 - ๐ฎ๐ณIndia vipin.mittal18 Greater Noida
Please accept my apologies for creating this ticket, as the error was being logged by another module.
- ๐บ๐ธUnited States ramprashanth
Hello,
I am still facing this issue. Please find the below error.
Drupal Version: 10.2.4
php version: 8.1sample url: /admin/config/workflow/workbench-email-template/back_to_draft/edit?destination=/admin/config/workflow/workbench-email-template
Happening to all the workbench email templates cannot edit any email templates.
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.workbench_email_template.canonical" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 206 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Drupal\Core\Routing\UrlGenerator->getRoute() (Line: 276)
Drupal\Core\Routing\UrlGenerator->generateFromRoute() (Line: 108)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute() (Line: 765)
Drupal\Core\Url->toString() (Line: 109)
Drupal\responsive_preview\ResponsivePreview->getPreviewUrl() (Line: 327)
Drupal\responsive_preview\ResponsivePreview->previewToolbar() (Line: 33)
responsive_preview_toolbar()
call_user_func_array() (Line: 409)
Drupal\Core\Extension\ModuleHandler->Drupal\Core\Extension\{closure}() (Line: 388)
Drupal\Core\Extension\ModuleHandler->invokeAllWith() (Line: 416)
Drupal\Core\Extension\ModuleHandler->invokeAll() (Line: 78)
Drupal\toolbar\Element\Toolbar::preRenderToolbar()
call_user_func_array() (Line: 111)
Drupal\Core\Render\Renderer->doTrustedCallback() (Line: 859)
Drupal\Core\Render\Renderer->doCallback() (Line: 421)
Drupal\Core\Render\Renderer->doRender() (Line: 493)
Drupal\Core\Render\Renderer->doRender() (Line: 240)
Drupal\Core\Render\Renderer->render() (Line: 475)
Drupal\Core\Template\TwigExtension->escapeFilter() (Line: 82)
__TwigTemplate_ee67f60598dec9fac46dc3f522a0154b->doDisplay() (Line: 394)
Twig\Template->displayWithErrorHandling() (Line: 367)
Twig\Template->display() (Line: 379)
Twig\Template->render() (Line: 38)
Twig\TemplateWrapper->render() (Line: 39)
twig_render_template() (Line: 348)
Drupal\Core\Theme\ThemeManager->render() (Line: 480)
Drupal\Core\Render\Renderer->doRender() (Line: 240)
Drupal\Core\Render\Renderer->render() (Line: 158)
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}() (Line: 627)
Drupal\Core\Render\Renderer->executeInRenderContext() (Line: 159)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse() (Line: 90)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray()
call_user_func() (Line: 111)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch() (Line: 186)
Symfony\Component\HttpKernel\HttpKernel->handleRaw() (Line: 76)
Symfony\Component\HttpKernel\HttpKernel->handle() (Line: 58)
Drupal\Core\StackMiddleware\Session->handle() (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle() (Line: 28)
Drupal\Core\StackMiddleware\ContentLength->handle() (Line: 270)
Drupal\shield\ShieldMiddleware->bypass() (Line: 226)
Drupal\shield\ShieldMiddleware->handle() (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle() (Line: 36)
Drupal\Core\StackMiddleware\AjaxPageState->handle() (Line: 49)
Drupal\remove_http_headers\StackMiddleware\RemoveHttpHeadersMiddleware->handle() (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle() (Line: 704)
Drupal\Core\DrupalKernel->handle() (Line: 19) - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Possible related โจ "Link label to the referenced entity" changed behavior from Drupal 10.1 to 10.2 Active
- Assigned to deepakkm
- Status changed to Needs work
8 months ago 2:37pm 18 March 2024 - ๐ฎ๐ณIndia chandu7929 Pune
@deepakkm - I don't see the use of a canonical url in the case of the workbench_email module, and hence, providing a route for something that has no use doesn't make sense. Also, Drupal Core already does the fallback to edit-form if a canonical URL is not present; hence, removing the canonical would make more sense in this case.
- Issue was unassigned.
- Status changed to Needs review
8 months ago 8:53am 19 March 2024 - Status changed to RTBC
8 months ago 10:07am 19 March 2024 - ๐ฎ๐ณIndia vipin.mittal18 Greater Noida
This patch is working and agreed with @chandu7929 to remove canonical path as there is no view template page.
- ๐ฎ๐ณIndia vishalkhode
vishalkhode โ made their first commit to this issueโs fork.
- Status changed to Needs work
8 months ago 6:47pm 20 March 2024 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
So this is directly reversing ๐ Route "entity.workbench_email_template.canonical" does not exist. Fixed
Which one is needed here?
- ๐ฎ๐ณIndia ankitv18
Hi @larowlan,
So here also https://www.drupal.org/project/workbench_email/issues/3408131 ๐ Route "entity.workbench_email_template.canonical" does not exist. Fixed , I have proposed both options.
Earlier with canonical" = "/admin/config/workflow/workbench-email-template/{workbench_email_template}/edit" it was working until drupal version 10.2.3 but with latest release of 10.2.4 it is failing.
Regression Fix in 10.2.4: https://git.drupalcode.org/project/drupal/-/commit/554598a553e10c46cb339... -
larowlan โ
committed 6d7924ea on 3.x authored by
chandu7929 โ
Issue #3427515 by deepakkm, vipin.mittal18, chandu7929, vishalkhode,...
-
larowlan โ
committed 6d7924ea on 3.x authored by
chandu7929 โ
- Status changed to Fixed
8 months ago 7:34pm 21 March 2024 - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
- ๐ฏ๐ตJapan liuyuanchao
We also face the issue using version 2.3.3.
Will this be fixed in version 2? or update to version 3 instead? - ๐ฆ๐บAustralia larowlan ๐ฆ๐บ๐.au GMT+10
Unless you're using workbench_moderation, I would recommend updating to 3.x
Automatically closed - issue fixed for 2 weeks with no activity.