Route "entity.workbench_email_template.canonical" does not exist

Created on 13 March 2024, 8 months ago
Updated 17 April 2024, 7 months ago

Problem/Motivation

Route "entity.workbench_email_template.canonical" does not exist

Refer

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

๐Ÿ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia vipin.mittal18 Greater Noida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @vipin.mittal18
  • First commit to issue fork.
  • Merge request !20Update Template.php โ†’ (Merged) created by chandu7929
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vipin.mittal18 Greater Noida
  • Pipeline finished with Failed
    8 months ago
    Total: 206s
    #117924
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chandu7929 Pune
  • Status changed to Needs review 8 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia chandu7929 Pune
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vipin.mittal18 Greater Noida
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vipin.mittal18 Greater Noida
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia vipin.mittal18 Greater Noida
  • Status changed to Closed: cannot reproduce 8 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณ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.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)

  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia larowlan ๐Ÿ‡ฆ๐Ÿ‡บ๐Ÿ.au GMT+10
  • Assigned to deepakkm
  • Status changed to Needs work 8 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia deepakkm
  • Pipeline finished with Failed
    8 months ago
    Total: 149s
    #122507
  • Pipeline finished with Canceled
    8 months ago
    Total: 82s
    #122510
  • Pipeline finished with Failed
    8 months ago
    Total: 159s
    #122513
  • ๐Ÿ‡ฎ๐Ÿ‡ณ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
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia deepakkm
  • Pipeline finished with Failed
    8 months ago
    Total: 148s
    #123166
  • Status changed to RTBC 8 months ago
  • ๐Ÿ‡ฎ๐Ÿ‡ณ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.

  • Pipeline finished with Success
    8 months ago
    Total: 148s
    #123976
  • Pipeline finished with Success
    8 months ago
    Total: 230s
    #124009
  • Status changed to Needs work 8 months ago
  • ๐Ÿ‡ฆ๐Ÿ‡บ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...

  • Pipeline finished with Skipped
    8 months ago
    #125543
  • Status changed to Fixed 8 months ago
  • ๐Ÿ‡ฆ๐Ÿ‡บAustralia larowlan ๐Ÿ‡ฆ๐Ÿ‡บ๐Ÿ.au GMT+10

    Thanks, tagging 3.0.4

  • ๐Ÿ‡ฆ๐Ÿ‡บ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.

Production build 0.71.5 2024