Call to a member function getPath() on null in Drupal\config_translation\ConfigNamesMapper->getOverviewRoute() (line 233 of /docroot/core/modules/config_translation/src/ConfigNamesMapper.php).

On enabling search api in my_profile.info.yml by adding search_api in the dependencies list and reinstalling the profile with drush si, I am getting the above error.

Comments

iheb.attia created an issue. See original summary.

iheb.attia’s picture

Issue summary: View changes
drunken monkey’s picture

Status: Active » Postponed (maintainer needs more info)

Hm, that seems more like a bug in the Config Translation module. But I have no idea what's happening either way, I'll need more information than this. E.g., what's $this->pluginDefinition at the point where the error occurs?
Without more information, I'd have no idea what to do. Then I'd suggest just moving it into the Drupal Core issue queue and hoping for the best.

mpastas’s picture

Hi guys, did you identify the issue here?

mpastas’s picture

It could be pretty related with multilingual sites and this thread: https://www.drupal.org/project/password_policy/issues/2703717#comment-11... .

Maybe a route is missing there.

drunken monkey’s picture

Status: Postponed (maintainer needs more info) » Needs review
StatusFileSize
new1.16 KB

Thanks a lot for posting this!
Not sure if that’s the reason, but might very well be – upon closer examination, it seems we have some copy/paste errors in the server entity definition, which look like they might cause the same problems as the missing route definition in password_policy. (And, in any case, we should definitely fix them!)

borisson_’s picture

Status: Needs review » Reviewed & tested by the community

Awesome, great catch @drunken monkey!

drunken monkey’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for reviewing! Committed.
Would still be good to hear from people whether this fixed things for them, but marking as “Fixed” preliminarily.

  • drunken monkey committed 79b7d9d on 8.x-1.x
    Issue #2919676 by drunken monkey, borisson_: Fixed server entity link...

Status: Fixed » Closed (fixed)

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