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()
Command icon 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

bmango created an issue. See original summary.

pdureau’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks 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?

bmango’s picture

Thanks 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.

bmango’s picture

It turns out that the solution was to enable Display Builder UI in the modules list.

pdureau’s picture

Status: Postponed (maintainer needs more info) » Active
Issue tags: +display_builder-1.0.0-beta1

OK, i reproduce when I have config_translation module activated and display_builder_ui disabled:

 $ ddev drush pmu display_builder_ui
 [error]  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) #0 /var/www/html/web/core/modules/config_translation/src/Routing/RouteSubscriber.php(39): Drupal\config_translation\ConfigNamesMapper->getOverviewRoute()

Added to beta1 because it is a fatal.

pdureau’s picture

Assigned: Unassigned » pdureau

i take it

pdureau’s picture

Assigned: pdureau » mogtofu33
Status: Active » Needs review

mogtofu33 made their first commit to this issue’s fork.

mogtofu33’s picture

Assigned: mogtofu33 » Unassigned
Status: Needs review » Fixed

Fixed the naming of the hook class.

Now that this issue is closed, please review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, please credit people who helped resolve this issue.

  • mogtofu33 committed d48f965b on 1.0.x authored by pdureau
    [#3547945] feat: Call to a member function getPath() on null
    
    By: bmango...
bmango’s picture

Thank you! Working great now!

Status: Fixed » Closed (fixed)

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