- Merge request !128[#3547945] Call to a member function getPath() on null → (Merged) created by pdureau
When trying to install display builder I get a wsod and the following error shows:
Error: Call to a member function getPath() on null in Drupal\config_translation\ConfigNamesMapper->getOverviewRoute() (line 248 of /var/www/html/web/core/modules/config_translation/src/ConfigNamesMapper.php).
Running xdebug the last two lines of code processed before the error is triggered are:
return $this->routes[$name] ?? null;
(line 135 - vendor/symfony/routing/RouteCollection.php)
return $this->routeCollection->get($this->getBaseRouteName());
(line 206 - core/modules/config_translation/src/ConfigNamesMapper.php)
Where $name = 'entity.pattern_preset.edit_form'
The module is installed, but everytime I flush caches I then get the same error.
The backtrace from the error in the log is:
#0 /var/www/html/web/core/modules/config_translation/src/Routing/RouteSubscriber.php(39): Drupal\config_translation\ConfigNamesMapper->getOverviewRoute()
#1 /var/www/html/web/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php(37): Drupal\config_translation\Routing\RouteSubscriber->alterRoutes()
#2 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(246): Drupal\Core\Routing\RouteSubscriberBase->onAlterRoutes()
#3 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(206): Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}()
#4 /var/www/html/vendor/symfony/event-dispatcher/EventDispatcher.php(56): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#5 /var/www/html/web/core/lib/Drupal/Core/Routing/RouteBuilder.php(201): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#6 /var/www/html/web/core/lib/Drupal/Core/ProxyClass/Routing/RouteBuilder.php(83): Drupal\Core\Routing\RouteBuilder->rebuild()
#7 /var/www/html/web/core/lib/Drupal/Core/Extension/ModuleInstaller.php(246): Drupal\Core\ProxyClass\Routing\RouteBuilder->rebuild()
#8 /var/www/html/web/modules/contrib/civicrm_entity/src/ProxyClass/ModuleInstaller.php(91): Drupal\Core\Extension\ModuleInstaller->install()
#9 /var/www/html/web/core/modules/system/src/Form/ModulesListForm.php(508): Drupal\civicrm_entity\ProxyClass\ModuleInstaller->install()
#10 [internal function]: Drupal\system\Form\ModulesListForm->submitForm()
Postponed: needs info
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.