When config translation is enabled we are getting the following error, on site instalation:
Error: Call to a member function getPath() on null in /app/webroot/core/modules/config_translation/src/ConfigNamesMapper.php on line 247 #0 /app/webroot/core/modules/config_translation/src/Routing/RouteSubscriber.php(39): Drupal\config_translation\ConfigNamesMapper->getOverviewRoute()

it is similar to #2703717: Call to a member function getPath() because the module which contains the routes definition for salesforce_mapping entity is salesforce_mapping_ui instead of salesforce_mapping.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jidrone created an issue. See original summary.

AaronBauman’s picture

Assigned: Unassigned » AaronBauman
AaronBauman’s picture

I'm gonna move the path definitions out of the annotation and into a salesforce_mapping_ui hook

AaronBauman’s picture

Status: Active » Needs review
FileSize
3.05 KB

See if this works

AaronBauman’s picture

Status: Needs review » Needs work
AaronBauman’s picture

Status: Needs work » Needs review

Cleaned up a few more references to these paths.
This one should be good

AaronBauman’s picture

FileSize
6.15 KB

derp

when is gitlab coming?

jidrone’s picture

Status: Needs review » Needs work

Hi Aaron,

The patch didn't work, it think the problem is coming from the following lines in entity definition:

links = {
 *     "edit-form" = "/admin/structure/salesforce/mappings/manage/{salesforce_mapping}",
 *     "delete-form" = "/admin/structure/salesforce/mappings/manage/{salesforce_mapping}/delete"
 *   },
AaronBauman’s picture

FileSize
6.82 KB
1.45 KB

OK try this one

jidrone’s picture

It works, thank you.

AaronBauman’s picture

Status: Needs work » Needs review

Cool, will merge this after passing tests

  • AaronBauman committed ecf2df4 on 8.x-4.x
    Issue #3040022 by AaronBauman: Call to a member function getPath()
    
AaronBauman’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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