I have already enabled the core modules "Configuration Translation", "Content Translation" and "Interface Translation" which are used for implementing the multilingual feature.

Now I tried to enable the contributed module "workflow" and I got the following error message :

PHP Fatal error: Call to a member function getPath() on null in /core/modules/config_translation/src/ConfigNamesMapper.php on line 233

My drupal core version is 8.3.7.

Is there any solution to this?

I uninstalled the core module "Configuration Translation" and then tried to install the workflow module. Then workflow module got installed without any issues. But "Configuration Translation" module is necessary for implementing the multilingual feature and I cannot uninstall it.

Comments

Aswathy Ajish created an issue. See original summary.

aswathyajish’s picture

Issue summary: View changes
johnv’s picture

Title: Error found while installing the module workflow » Error while installing 'Workflow' module with 'Configuration Translation' enabled
johnv’s picture

Status: Active » Postponed (maintainer needs more info)

Sorry, I cannot reproduce the error. Please give me a complete list of your enabled modules (e.g., from admin/modules/uninstall).

Or try updating to 8.4.0

johnv’s picture

aswathyajish’s picture

I tried to enable the module "Workflow UI". Then it asked for enabling the module "Workflow" also. Then both "Workflow UI" and "Workflow" modules are installed without any errors. But when I tried to uninstall the "Workflow UI" module, the following error message is shown :

Fatal error: Call to a member function getPath() on null in core/modules/config_translation/src/ConfigNamesMapper.php on line 233

But still when I enbale "Workflow" module only, the mentioned error message is shown. When "Workflow UI" is enabled, both "Workflow UI" and "Workflow" are enabled without issues.

I have upgraded the drupal core to the version 8.4.0. Then also same error is shown.

My site contains all core modules and only 1 contributed module - Workflow.

johnv’s picture

Thanks. Did you do the latest test with the latest dev-version? IMO the problem is solved a few days ago.

Status: Fixed » Closed (fixed)

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

johnv’s picture

Title: Error while installing 'Workflow' module with 'Configuration Translation' enabled » Route error while installing 'Workflow' module with 'Configuration Translation' enabled