During installation I have this error:
Error: Call to a member function getPath() on null in Drupal\config_translation\ConfigNamesMapper->getOverviewRoute() (line 247 of /var/www/clients/client7/web18/web/core/modules/config_translation/src/ConfigNamesMapper.php) #0 /var/www/clients/client7/web18/web/core/modules/config_translation/src/Routing/RouteSubscriber.php(39): Drupal\config_translation\ConfigNamesMapper->getOverviewRoute() #1 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php(37): Drupal\config_translation\Routing\RouteSubscriber->alterRoutes(Object(Symfony\Component\Routing\RouteCollection)) #2 /var/www/clients/client7/web18/web/modules/devel/webprofiler/src/EventDispatcher/TraceableEventDispatcher.php(76): Drupal\Core\Routing\RouteSubscriberBase->onAlterRoutes(Object(Drupal\Core\Routing\RouteBuildEvent), 'routing.route_a...', Object(Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher)) #3 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Routing/RouteBuilder.php(184): Drupal\webprofiler\EventDispatcher\TraceableEventDispatcher->dispatch('routing.route_a...', Object(Drupal\Core\Routing\RouteBuildEvent)) #4 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild() #5 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php(68): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild() #6 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Routing/RouteProviderLazyBuilder.php(85): Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteProvider() #7 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Routing/UrlGenerator.php(421): Drupal\Core\Routing\RouteProviderLazyBuilder->getRouteByName('dynamic_layout....') #8 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Routing/UrlGenerator.php(271): Drupal\Core\Routing\UrlGenerator->getRoute('dynamic_layout....') #9 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Render/MetadataBubblingUrlGenerator.php(105): Drupal\Core\Routing\UrlGenerator->generateFromRoute('dynamic_layout....', Array, Array, true) #10 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Url.php(753): Drupal\Core\Render\MetadataBubblingUrlGenerator->generateFromRoute('dynamic_layout....', Array, Array, true) #11 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Utility/LinkGenerator.php(167): Drupal\Core\Url->toString(true) #12 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Utility/LinkGenerator.php(63): Drupal\Core\Utility\LinkGenerator->generate(Object(Drupal\Core\StringTranslation\TranslatableMarkup), Object(Drupal\Core\Url)) #13 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Link.php(136): Drupal\Core\Utility\LinkGenerator->generateFromLink(Object(Drupal\Core\Link)) #14 /var/www/clients/client7/web18/web/modules/dynamic_layouts/dynamic_layouts.install(17): Drupal\Core\Link->toString() #15 [internal function]: dynamic_layouts_install() #16 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Extension/ModuleHandler.php(392): call_user_func_array('dynamic_layouts...', Array) #17 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(303): Drupal\Core\Extension\ModuleHandler->invoke('dynamic_layouts', 'install') #18 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/ProxyClass/Extension/ModuleInstaller.php(83): Drupal\Core\Extension\ModuleInstaller->install(Array, true) #19 /var/www/clients/client7/web18/web/core/modules/system/src/Form/ModulesListForm.php(451): Drupal\Core\ProxyClass\Extension\ModuleInstaller->install(Array) #20 [internal function]: Drupal\system\Form\ModulesListForm->submitForm(Array, Object(Drupal\Core\Form\FormState)) #21 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Form/FormSubmitter.php(111): call_user_func_array(Array, Array) #22 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Form/FormSubmitter.php(51): Drupal\Core\Form\FormSubmitter->executeSubmitHandlers(Array, Object(Drupal\Core\Form\FormState)) #23 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Form/FormBuilder.php(589): Drupal\Core\Form\FormSubmitter->doSubmitForm(Array, Object(Drupal\Core\Form\FormState)) #24 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Form/FormBuilder.php(318): Drupal\Core\Form\FormBuilder->processForm('system_modules', Array, Object(Drupal\Core\Form\FormState)) #25 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Controller/FormController.php(93): Drupal\Core\Form\FormBuilder->buildForm('system_modules', Object(Drupal\Core\Form\FormState)) #26 [internal function]: Drupal\Core\Controller\FormController->getContentResult(Object(Symfony\Component\HttpFoundation\Request), Object(Drupal\Core\Routing\RouteMatch)) #27 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(123): call_user_func_array(Array, Array) #28 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/Render/Renderer.php(582): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #29 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(124): Drupal\Core\Render\Renderer->executeInRenderContext(Object(Drupal\Core\Render\RenderContext), Object(Closure)) #30 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/EventSubscriber/EarlyRenderingControllerWrapperSubscriber.php(97): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) #31 /var/www/clients/client7/web18/web/vendor/symfony/http-kernel/HttpKernel.php(151): Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() #32 /var/www/clients/client7/web18/web/vendor/symfony/http-kernel/HttpKernel.php(68): Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object(Symfony\Component\HttpFoundation\Request), 1) #33 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/StackMiddleware/Session.php(57): Symfony\Component\HttpKernel\HttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #34 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/StackMiddleware/KernelPreHandle.php(47): Drupal\Core\StackMiddleware\Session->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #35 /var/www/clients/client7/web18/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(99): Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #36 /var/www/clients/client7/web18/web/core/modules/page_cache/src/StackMiddleware/PageCache.php(78): Drupal\page_cache\StackMiddleware\PageCache->pass(Object(Symfony\Component\HttpFoundation\Request), 1, true) #37 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/StackMiddleware/ReverseProxyMiddleware.php(47): Drupal\page_cache\StackMiddleware\PageCache->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #38 /var/www/clients/client7/web18/web/modules/devel/webprofiler/src/StackMiddleware/WebprofilerMiddleware.php(38): Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #39 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/StackMiddleware/NegotiationMiddleware.php(52): Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #40 /var/www/clients/client7/web18/web/vendor/stack/builder/src/Stack/StackedHttpKernel.php(23): Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #41 /var/www/clients/client7/web18/web/core/lib/Drupal/Core/DrupalKernel.php(665): Stack\StackedHttpKernel->handle(Object(Symfony\Component\HttpFoundation\Request), 1, true) #42 /var/www/clients/client7/web18/web/index.php(19): Drupal\Core\DrupalKernel->handle(Object(Symfony\Component\HttpFoundation\Request)) #43 {main}.
And the menu voice to manage the module do not appear in the menu.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | dynamic_layouts-3002255-2.patch | 1.31 KB | lammensj |
Comments
Comment #2
lammensj commentedAccording to https://www.drupal.org/project/password_policy/issues/2703717, this issue occurs when the Config Translation module is looking for a base path for config entities. In that post, the solution was to define a dummy route in routing.yml for the edit form (as specified in de links-key in the ConfigEntityType-annotation for DynamicLayoutSettings).
This path adds that missing route in routing.yml. It also fixes 2 typos in the links-key in the ConfigEntityType-annotation for DynamicLayout: "/admin/config/dynamic-layout" -> "/admin/config/dynamic-layouts".
Comment #3
lammensj commentedComment #4
falco010I was not able to reproduce this issue, patch looks good.
@Shyghar, can you retest with this patch?
Comment #5
zulljin commentedFalco010, hi.
From my side this bug is reproduces, but after applying this patch config translation works good.
Comment #6
nwom commented#2 worked for me. Thanks!
Comment #7
itamair commentedThis was happening to me too, preventing the module to be installed.
#2 worked for me, too. Thanks!
Comment #8
falco010Hi, I was able to reproduce the error if I had the Config Translation module enabled.
Sorry for the late response and thank you for the patch & testing, committing to dev branch and will make a new release later!
Comment #10
falco010Comment #12
broonJust for information: I needed to enable Configuration Translation (CT) on a newly built site which already had a long list of modules installed. Installation of CT failed with the same error messages as stated here which didn't help much.
After applying the patch from https://www.drupal.org/files/issues/2020-05-26/drupal-3016131-23-useless... I finally got a hint on which module blocks installing CT and it was Dynamic Layouts. Using the fix from #2 solved the issue and CT installed cleanly.
Maybe a new release would make sense to avoid similar adventures (took me about six hours altogether to debug).