Upon trying to enable Salesforce 8.x-3.3 I get the following error:
Fatal error: Uncaught Error: Call to a member function getPath() on null in /var/www/html/core/modules/config_translation/src/ConfigNamesMapper.php:247
Stack trace:
#0 /var/www/html/core/modules/config_translation/src/Routing/RouteSubscriber.php(39): Drupal\config_translation\ConfigNamesMapper->getOverviewRoute()
#1 /var/www/html/core/lib/Drupal/Core/Routing/RouteSubscriberBase.php(37): Drupal\config_translation\Routing\RouteSubscriber->alterRoutes(Object(Symfony\Component\Routing\RouteCollection))
#2 [internal function]: Drupal\Core\Routing\RouteSubscriberBase->onAlterRoutes(Object(Drupal\Core\Routing\RouteBuildEvent), 'routing.route_a...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#3 /var/www/html/core/lib/Drupal/Component/EventDispatcher/ContainerAwareEventDispatcher.php(111): call_user_func(Array, Object(Drupal\Core\Routing\RouteBuildEvent), 'routing.route_a...', Object(Drupal\Component\EventDispatcher\ContainerAwareEventDispatcher))
#4 /var/www/html/core/lib/Drupal/Core/Routing/RouteBuil in /var/www/html/core/modules/config_translation/src/ConfigNamesMapper.php on line 247
I uninstalled the module, and installed 8.x-4.x with no error, which leads me to believe its an error specifically for this version.
Comments
Comment #2
gcheval commentedThere are missing routes in the module. I have been able to authenticate my website by adding missing routes from https://git.drupalcode.org/project/salesforce/raw/8.x-4.x/salesforce.rou... and point the salesforce.auth_config toward the \Drupal\salesforce\Form\AuthorizeForm class.
Comment #4
aaronbaumanShould be fixed for 3.x-dev now, can you please confirm?
Comment #5
tjpope commentedTried installing 3.x-dev and enabling salesforce and I get these errors:
I verified that it was the dev branch that installed and the latest fix was applied but it still errored out. Am I missing something else that I need to add?
Comment #6
aaronbaumanI'll take a closer look sometime today
Comment #7
aaronbaumanI installed a vanilla drupal site, installed this module via composer, and did not run into this issue.
Can you please explain the exact steps for your install process, and exactly when this error occurs?
Comment #8
tjpope commentedThen I get all those errors mentioned in #5. If I do a "drush pm:list" I can see it is enabled, but I can't access Salesforce in the UI. If I do a "drush cr" I get these errors:
This only happens when salesforce is enabled/installed.
Comment #9
tjpope commentedComment #10
aaronbaumangcheval's suggestion was a good one.
Try this patch
Comment #11
tjpope commentedPatch fixes all the errors. Thanks gcheval and Aaron.
Comment #13
aaronbaumanPatch is in.
Thanks for everyone's help.