Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
I am running the latest version of Drupal 8 (RC1), and after I installed taxonomy menu and tried adding a menu I go the following error:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.taxonomy_menu.edit_form" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 193 of /core/lib/Drupal/Core/Routing/Route
Any ideas how to fix this?
Thanks,
Brian
Comments
Comment #2
bhuether CreditAttribution: bhuether commentedComment #3
spyderp CreditAttribution: spyderp commentedsearch file taxonomy_menu.routing.yml
and change line 18
before
after
Comment #4
nerdsteinI am not able to reproduce this on RC4.
Can you please re-test and let me know if this issue still exists?
Comment #5
nerdsteinComment #6
Solarisserv CreditAttribution: Solarisserv as a volunteer and commentedI notice this problem occurs with different modules using Drupal 8.0
Route "captcha_settings" does not exist
Route "google_analytics.admin_settings_form" does not exist
Route "forum.overview" does not exist.
Wanted to give feedback ...
Comment #7
mariocantor CreditAttribution: mariocantor commented#3 worked for me.
This error, occurred just after I tried to create the first taxonomy menu. the menu was created successfully, but when I go to the menu //structure//taxonomy menu// the error show up.
anyway it was just a "/" on file taxonomy_menu.routing.yml at line 16, as #3 wrote..
ooops after flushing cache a HUGE error shows up. like #8. I remove the module, and stills the error shows up...
Comment #8
MartinMa CreditAttribution: MartinMa commentedJust got this message on a D 8.0.0 installation too:
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "entity.taxonomy_menu.edit_form" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 191 of core/lib/Drupal/Core/Routing/RouteProvider.php).
Drupal\Core\Routing\UrlGenerator->getRoute('entity.taxonomy_menu.edit_form')
Drupal\Core\Routing\UrlGenerator->generateFromRoute('entity.taxonomy_menu.edit_form', Array, Array, 1)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('entity.taxonomy_menu.edit_form', Array, Array, 1)
Drupal\Core\Url->toString(1)
Drupal\Core\Utility\LinkGenerator->generate(Object, Object)
Drupal\Core\Render\Element\Link::preRenderLink(Array)
call_user_func(Array, Array)
Drupal\Core\Render\Renderer->doRender(Array, )
Drupal\Core\Render\Renderer->render(Array)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1)
__TwigTemplate_274fa538b9e9b38862d70154a72f2e7561f261e17bebf268f9fe6142ca6b00df->doDisplay(Array, Array)
Twig_Template->displayWithErrorHandling(Array, Array)
Twig_Template->display(Array)
Twig_Template->render(Array)
twig_render_template('core/themes/classy/templates/navigation/links.html.twig', Array)
Drupal\Core\Theme\ThemeManager->render('links__dropbutton__operations', Array)
Drupal\Core\Render\Renderer->doRender(Array, )
Drupal\Core\Render\Renderer->render(Array)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1)
__TwigTemplate_a32454059273c52fefadf1027c4ddecaf3c46d340629f29223dc209fad082165->doDisplay(Array, Array)
Twig_Template->displayWithErrorHandling(Array, Array)
Twig_Template->display(Array)
Twig_Template->render(Array)
twig_render_template('core/themes/classy/templates/dataset/table.html.twig', Array)
Drupal\Core\Theme\ThemeManager->render('table', Array)
Drupal\Core\Render\Renderer->doRender(Array)
Drupal\Core\Render\Renderer->doRender(Array, )
Drupal\Core\Render\Renderer->render(Array, )
Drupal\Core\Render\MainContent\HtmlRenderer->Drupal\Core\Render\MainContent\{closure}()
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object)
Drupal\Core\Render\MainContent\HtmlRenderer->prepare(Array, Object, Object)
Drupal\Core\Render\MainContent\HtmlRenderer->renderResponse(Array, Object, Object)
Drupal\Core\EventSubscriber\MainContentViewSubscriber->onViewRenderArray(Object, 'kernel.view', Object)
Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher->dispatch('kernel.view', Object)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1)
Stack\StackedHttpKernel->handle(Object, 1, 1)
Drupal\Core\DrupalKernel->handle(Object)
Very strange, but with this installation just had similar error messages ...
Comment #9
MartinMa CreditAttribution: MartinMa commentedOn another installation (which aim is to test new modules) and with former release candidates the module worked only for building one taxonomy menu: after installing a menu i got the unspecic error message: "Auf der Website ist ein unvorhergesehener Fehler aufgetreten. Bitte versuchen Sie es später nochmal."
If it recall the taxonomy menu to install another menu (/admin/config/system/taxonomy_menu) i get this error message too ...
Very strange.
Comment #10
Anonymous (not verified) CreditAttribution: Anonymous commentedsame here...#3 works after flushing the caches.
Comment #11
mariocantor CreditAttribution: mariocantor as a volunteer and commentedSame error as #8 shows up in my test D 8.0.0 installation..
I see still the error after remove the module, and flushing caches...
any ideas?
Comment #12
MartinMa CreditAttribution: MartinMa commentedI made the fix #3 too. It seemed to work but unfortunately not really propper.
If I install configuration translation the modul doesnt work too (i had the problem just before).
I put 3 taxonomy menues into the main navigation. First it worked, but only till i created an article for the menu. the website design broke. i tried another layout (mayo), it didnt work too ...
i removed the main menu block from the page, the website (bartik) was ok, but i couldnt add new links to the main menu and to other menus - which dont include ta taxonomy menu - too (just get only a blank page)
very strange ...
Comment #13
MartinMa CreditAttribution: MartinMa commentedAfter removing the menu with a taxonomy menue and removing the taxonomy module menu now i get an error message when i try to add a link to another menu:
Auf der Website ist ein unvorhergesehener Fehler aufgetreten. Bitte versuchen Sie es später nochmal.
Drupal\Component\Plugin\Exception\PluginException: Plugin (taxonomy_menu.menu_link:taxonomy_menu.menu_link.hauptnavigation_themen.378) instance class "Drupal\taxonomy_menu\Plugin\Menu\TaxonomyMenuMenuLink" does not exist. in Drupal\Component\Plugin\Factory\DefaultFactory::getPluginClass() (line 102 of core/lib/Drupal/Component/Plugin/Factory/DefaultFactory.php).
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('taxonomy_menu.menu_link:taxonomy_menu.menu_link.hauptnavigation_themen.378', Array)
Drupal\Core\Menu\MenuLinkManager->createInstance('taxonomy_menu.menu_link:taxonomy_menu.menu_link.hauptnavigation_themen.378')
Drupal\Core\Menu\MenuLinkTree->createInstances(Array)
Drupal\Core\Menu\MenuLinkTree->load('main', Object)
Drupal\Core\Menu\MenuParentFormSelector->getParentSelectOptions('', NULL, Object)
Drupal\Core\Menu\MenuParentFormSelector->parentSelectElement('hauptnavigation:', '')
Drupal\menu_link_content\Form\MenuLinkContentForm->form(Array, Object)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array)
Drupal\Core\Form\FormBuilder->retrieveForm('menu_link_content_menu_link_content_form', Object)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object)
Drupal\Core\Entity\EntityFormBuilder->getForm(Object)
Drupal\menu_link_content\Controller\MenuController->addLink(Object)
call_user_func_array(Array, Array)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}()
call_user_func_array(Object, Array)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1)
Drupal\ban\BanMiddleware->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1)
Stack\StackedHttpKernel->handle(Object, 1, 1)
Drupal\Core\DrupalKernel->handle(Object)
Comment #14
nerdsteinThis appears to be fixed now that Drupal 8 has been released (specifically 8.0.2). I enabled Taxonomy Menu (using the most recent code in the 8.x-3.x branch), created a new menu, the error was not thrown.
Comment #15
nerdsteinI am not able to reproduce any issues on Drupal 8.0.2 with the current 8.x-3.x code.
Steps I followed:
1. Create a taxonomy menu, assign "test menu" menu
2. Delete "test menu" menu (no error)
3. Added a link to another arbitrary menu (no error)
Am I missing something?
Comment #16
nerdsteinClosing this issue as "cannot reproduce", but willing to retest given more specifics.
Comment #17
waqasqamar CreditAttribution: waqasqamar commentedAdditional uncaught exception thrown while handling exception.
Original
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 187 of C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Routing\RouteProvider.php).
Drupal\Core\Routing\RouteProvider->getRouteByName('') (Line: 425)
Drupal\Core\Routing\UrlGenerator->getRoute('') (Line: 121)
Drupal\Core\Routing\UrlGenerator->getPathFromRoute('', Array) (Line: 68)
Drupal\Core\Render\MetadataBubblingUrlGenerator->getPathFromRoute('', Array) (Line: 772)
Drupal\Core\Url->getInternalPath() (Line: 99)
Drupal\Core\Path\PathMatcher->isFrontPage() (Line: 254)
system_theme_suggestions_html(Array)
call_user_func_array('system_theme_suggestions_html', Array) (Line: 402)
Drupal\Core\Extension\ModuleHandler->invokeAll('theme_suggestions_html', Array) (Line: 230)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 139)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 140)
Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 66)
Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, Object, 'install_page', Array) (Line: 76)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, Object, 'install_page', Array) (Line: 998)
install_display_output(Array, Array) (Line: 154)
install_drupal(Object) (Line: 44)
Additional
Symfony\Component\Routing\Exception\RouteNotFoundException: Route "" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 187 of C:\xampp\htdocs\drupal\core\lib\Drupal\Core\Routing\RouteProvider.php).
Drupal\Core\Routing\RouteProvider->getRouteByName('') (Line: 425)
Drupal\Core\Routing\UrlGenerator->getRoute('') (Line: 277)
Drupal\Core\Routing\UrlGenerator->generateFromRoute('', Array, Array, 1) (Line: 105)
Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('', Array, Array, ) (Line: 543)
Drupal::url('') (Line: 1356)
template_preprocess_page(Array) (Line: 1458)
template_preprocess_maintenance_page(Array) (Line: 1487)
template_preprocess_install_page(Array, 'install_page', Array) (Line: 287)
Drupal\Core\Theme\ThemeManager->render('install_page', Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array, ) (Line: 195)
Drupal\Core\Render\Renderer->render(Array) (Line: 468)
Drupal\Core\Template\TwigExtension->escapeFilter(Object, Array, 'html', NULL, 1) (Line: 90)
__TwigTemplate_3ca16517bf3776375e3e02ac162becccac1bbe4172908107101d5ed2dce97277->doDisplay(Array, Array) (Line: 381)
Twig_Template->displayWithErrorHandling(Array, Array) (Line: 355)
Twig_Template->display(Array) (Line: 366)
Twig_Template->render(Array) (Line: 64)
twig_render_template('core/themes/classy/templates/layout/html.html.twig', Array) (Line: 384)
Drupal\Core\Theme\ThemeManager->render('html', Array) (Line: 435)
Drupal\Core\Render\Renderer->doRender(Array, 1) (Line: 195)
Drupal\Core\Render\Renderer->render(Array, 1) (Line: 139)
Drupal\Core\Render\Renderer->Drupal\Core\Render\{closure}() (Line: 574)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 140)
Drupal\Core\Render\Renderer->renderRoot(Array) (Line: 66)
Drupal\Core\Render\BareHtmlPageRenderer->renderBarePage(Array, 'Error', 'install_page', Array) (Line: 76)
Drupal\Core\ProxyClass\Render\BareHtmlPageRenderer->renderBarePage(Array, 'Error', 'install_page', Array) (Line: 998)
install_display_output(Array, Array, Array) (Line: 264)
_drupal_log_error(Array, 1) (Line: 566)
_drupal_exception_handler(Object)
Comment #18
jbernard CreditAttribution: jbernard as a volunteer commentedI've got the same fatal error when I try to manage my queue :
Symfony\Component\Routing\Exception\RouteNotFoundException : Route "view.advancedqueue_jobs.page_1" does not exist. dans Drupal\Core\Routing\RouteProvider->getRouteByName() (ligne 202 de /home/xx/xx/core/lib/Drupal/Core/Routing/RouteProvider.php).
Any idea ?
Comment #19
jmuckel CreditAttribution: jmuckel as a volunteer commentedjBernard,
I found your comment while trying to find a solution to this issue myself. I was able to solve my issue thanks to this thread:
https://www.drupal.org/project/drupal/issues/2830774
Basically, if you get drush working on your installation (http://docs.drush.org/en/master/install/) , you can run
drush cr
. Thats it. This clears caches and "rebuilds" the site hopefully clearing what is causing that issue. This worked for me and a few other people.Comment #20
Ten Steps Creative CreditAttribution: Ten Steps Creative commented#6 please how did you resolve the error for "google_analytics.admin_settings_form" does not exist??