Problem/Motivation

When enabling the content_translation module a RuntimeException is thrown:

RuntimeException: Recursive router rebuild detected. in /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/RouteBuilder.php:121                                                                                                                                                                                             [error]
Stack trace:
#0 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild()
#1 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php(55): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild()
#2 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php(65): Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteProvider()
#3 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/Router.php(262): Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteCollectionForRequest(Object(Symfony\Component\HttpFoundation\Request))
#4 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/Router.php(150): Drupal\Core\Routing\Router->getInitialRouteCollection(Object(Symfony\Component\HttpFoundation\Request))
#5 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/Router.php(143): Drupal\Core\Routing\Router->matchRequest(Object(Symfony\Component\HttpFoundation\Request))
#6 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Path/PathValidator.php(163): Drupal\Core\Routing\Router->match('/admin/modules')
#7 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Path/PathValidator.php(122): Drupal\Core\Path\PathValidator->getPathAttributes('/admin/modules', Object(Symfony\Component\HttpFoundation\Request), false)
#8 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Path/PathValidator.php(89): Drupal\Core\Path\PathValidator->getUrl('admin/modules', false)
#9 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Url.php(415): Drupal\Core\Path\PathValidator->getUrlIfValidWithoutAccessCheck('admin/modules')
#10 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Url.php(307): Drupal\Core\Url::fromInternalUri(Array, Array)
#11 /Users/d436621/Projects/Thunder/thunder-distribution/modules/thunder_updater/thunder_updater.module(43): Drupal\Core\Url::fromUri('internal:/admin...')
#12 [internal function]: {closure}('internal:/admin...', '#url')
#13 /Users/d436621/Projects/Thunder/thunder-distribution/modules/thunder_updater/thunder_updater.module(53): array_walk_recursive(Array, Object(Closure))
#14 [internal function]: thunder_updater_checklistapi_checklist_info()
#15 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(402): call_user_func_array('thunder_updater...', Array)
#16 /Users/d436621/Projects/Thunder/thunder/docroot/modules/contrib/checklistapi/checklistapi.module(89): Drupal\Core\Extension\ModuleHandler->invokeAll('checklistapi_ch...')
#17 /Users/d436621/Projects/Thunder/thunder/docroot/modules/contrib/checklistapi/src/Routing/ChecklistapiRoutes.php(20): checklistapi_get_checklist_info()
#18 [internal function]: Drupal\checklistapi\Routing\ChecklistapiRoutes->routes()
#19 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/RouteBuilder.php(146): call_user_func(Array)
#20 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild()
#21 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php(55): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild()
#22 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php(72): Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteProvider()
#23 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/UrlGenerator.php(419): Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteByName('entity.configur...')
#24 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Routing/UrlGenerator.php(269): Drupal\Core\Routing\UrlGenerator->getRoute('entity.configur...')
#25 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php(105): Drupal\Core\Routing\UrlGenerator->generateFromRoute('entity.configur...', Array, Array, true)
#26 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Url.php(753): Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('entity.configur...', Array, Array, false)
#27 /Users/d436621/Projects/Thunder/thunder/docroot/core/modules/content_translation/content_translation.install(21): Drupal\Core\Url->toString()
#28 [internal function]: content_translation_install()
#29 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Extension/ModuleHandler.php(391): call_user_func_array('content_transla...', Array)
#30 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/Extension/ModuleInstaller.php(287): Drupal\Core\Extension\ModuleHandler->invoke('content_transla...', 'install')
#31 /Users/d436621/Projects/Thunder/thunder/docroot/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true)
#32 /Applications/DevDesktop/tools/vendor/drush/drush/commands/core/drupal/environment.inc(131): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array, true)
#33 /Applications/DevDesktop/tools/vendor/drush/drush/commands/core/drupal/environment.inc(198): drush_module_install(Array)
#34 /Applications/DevDesktop/tools/vendor/drush/drush/commands/pm/pm.drush.inc(1167): drush_module_enable(Array)
#35 /Applications/DevDesktop/tools/vendor/drush/drush/includes/command.inc(422): drush_pm_enable('content_transla...')
#36 /Applications/DevDesktop/tools/vendor/drush/drush/includes/command.inc(231): _drush_invoke_hooks(Array, Array)
#37 /Applications/DevDesktop/tools/vendor/drush/drush/includes/command.inc(199): drush_command('content_transla...')
#38 /Applications/DevDesktop/tools/vendor/drush/drush/lib/Drush/Boot/BaseBoot.php(67): drush_dispatch(Array)
#39 /Applications/DevDesktop/tools/vendor/drush/drush/includes/preflight.inc(66): Drush\Boot\BaseBoot->bootstrap_and_dispatch()
#40 /Applications/DevDesktop/tools/vendor/drush/drush/drush.php(12): drush_main()
#41 {main}

Comments

daniel.bosen created an issue. See original summary.

volkerk’s picture

chr.fritsch’s picture

Since #2904660: Url objects in hook_checklistapi_checklist_info() cause RuntimeException: Recursive router rebuild detected is fixed, we have to adopt that changes in thunder. Here is the PR: https://github.com/BurdaMagazinOrg/thunder-distribution/pull/401

With that, enabling content_translation will work now.

If you want to enable content_translation for node:article, you get "Attempt to create a base field bundle override of field Metatags without an entity_type in Drupal\Core\Field\Entity\BaseFieldOverride". #2899752: Attempt to create a base field bundle override of field Metatags without an entity_type in Drupal\Core\Field\Entity\BaseFieldOverride will fix that hopefully soon in Metatags module.

chr.fritsch’s picture

chr.fritsch’s picture

Status: Active » Fixed

checklistapi, metatag and responsive_preview got a new release. Content translation can now be enabled.

Status: Fixed » Closed (fixed)

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