Problem/Motivation

Route "entity.workbench_email_template.canonical" does not exist

Refer

https://git.drupalcode.org/project/drupal/-/commit/554598a553e10c46cb339...

CommentFileSizeAuthor
#4 workbench_email error.png108.71 KBvipin.mittal18
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

vipin.mittal18 created an issue. See original summary.

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

vipin.mittal18’s picture

chandu7929’s picture

chandu7929’s picture

Status: Needs work » Needs review
vipin.mittal18’s picture

Issue summary: View changes
vipin.mittal18’s picture

Issue summary: View changes
vipin.mittal18’s picture

vipin.mittal18’s picture

Status: Needs review » Closed (cannot reproduce)

Please accept my apologies for creating this ticket, as the error was being logged by another module.

ramprashanth’s picture

Hello,

I am still facing this issue. Please find the below error.

Drupal Version: 10.2.4
php version: 8.1

sample 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)

larowlan’s picture

deepakkm’s picture

Assigned: Unassigned » deepakkm
Status: Closed (cannot reproduce) » Needs work
chandu7929’s picture

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

deepakkm’s picture

Assigned: deepakkm » Unassigned
Status: Needs work » Needs review
vipin.mittal18’s picture

Status: Needs review » Reviewed & tested by the community

This patch is working and agreed with @chandu7929 to remove canonical path as there is no view template page.

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

larowlan’s picture

Status: Reviewed & tested by the community » Needs work

So this is directly reversing #3408131: Route "entity.workbench_email_template.canonical" does not exist.

Which one is needed here?

ankitv18’s picture

Hi @larowlan,
So here also https://www.drupal.org/project/workbench_email/issues/3408131, 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’s picture

Status: Needs work » Fixed

Thanks, tagging 3.0.4

larowlan’s picture

larowlan’s picture

Issue tags: +DrupalSouth 2024
liuyuanchao’s picture

We also face the issue using version 2.3.3.
Will this be fixed in version 2? or update to version 3 instead?

larowlan’s picture

Unless you're using workbench_moderation, I would recommend updating to 3.x

Status: Fixed » Closed (fixed)

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