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()Issue fork display_builder-3547945
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
pdureau commentedThanks a lot Ben for your tickets. We are in late alpha phase and those feedbacks are very valuable.
I am not reproducing the issue. Can you tell us a bit more? It seems you were editing a pattern preset (
/admin/structure/display-builder/preset/{preset}), created from where (page layout? entity view display?)? in original language or a translation?Comment #3
bmango commentedThanks Pierre for coming back on this so quickly. Having tested a bit further, it looks like this might be something to do with my site set up. I tested it on another simpler site and it installed fine.
I hadn't created or edited any pattern presets. I tried uninstalling the whole ui_suite (skins, patterns, styles etc) and then doing a drush install of display_builder, which pulled everything else in at the same time, but was still getting the same error.
I have a feeling it may be another contrib module I have installed that is causing the issue.
Comment #4
bmango commentedIt turns out that the solution was to enable Display Builder UI in the modules list.
Comment #5
pdureau commentedOK, i reproduce when I have
config_translationmodule activated anddisplay_builder_uidisabled:Added to beta1 because it is a fatal.
Comment #6
pdureau commentedi take it
Comment #8
pdureau commentedOK for review.
Follow-up #3548600: Move entity links and handlers to hooks?
Comment #10
mogtofu33 commentedFixed the naming of the hook class.
Comment #13
bmango commentedThank you! Working great now!