Closed (fixed)
Project:
Workbench Email
Version:
3.0.3
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
13 Mar 2024 at 06:55 UTC
Updated:
17 Apr 2024 at 05:39 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #4
vipin.mittal18Comment #5
chandu7929 commentedComment #6
chandu7929 commentedComment #7
vipin.mittal18Comment #8
vipin.mittal18Comment #9
vipin.mittal18Comment #10
vipin.mittal18Please accept my apologies for creating this ticket, as the error was being logged by another module.
Comment #11
ramprashanth commentedHello,
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)
Comment #12
larowlanPossible related #3415993: "Link label to the referenced entity" changed behavior from Drupal 10.1 to 10.2
Comment #13
deepakkm commentedComment #14
chandu7929 commented@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.
Comment #15
deepakkm commentedComment #16
vipin.mittal18This patch is working and agreed with @chandu7929 to remove canonical path as there is no view template page.
Comment #18
larowlanSo this is directly reversing #3408131: Route "entity.workbench_email_template.canonical" does not exist.
Which one is needed here?
Comment #19
ankitv18 commentedHi @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...
Comment #21
larowlanThanks, tagging 3.0.4
Comment #22
larowlanhttps://www.drupal.org/project/workbench_email/releases/3.0.4
Comment #23
larowlanComment #24
liuyuanchao commentedWe also face the issue using version 2.3.3.
Will this be fixed in version 2? or update to version 3 instead?
Comment #25
larowlanUnless you're using workbench_moderation, I would recommend updating to 3.x