If a project requires only the saleforce client service, enabling 'saleforce' module and visiting the "Salesforce Settings" configuration form throws the following exception:

Symfony\Component\Routing\Exception\RouteNotFoundException: Route 'salesforce_push.endpoint' does not exist.

This is due the form trying to build that route on:

$standalone_url = Url::fromRoute(
        'salesforce_push.endpoint',
        ['key' => \Drupal::state()->get('system.cron_key')],
        ['absolute' => TRUE]);

while the salesforce_push module is not enabled.

We may want to wrap part of all the SettingsForm::buildForm() code with ModuleHandler::moduleExists().

Comments

gambry created an issue. See original summary.

  • aaronbauman committed e82bc70 on 8.x-3.x
    Issue #2916797: salesforce_push submodule required by saleforce settings...
aaronbauman’s picture

Title: salesforce_push submodule required by saleforce settings form » Move submodule-specific settings into submodules using form_alters, instead of privileging on settings form
Category: Bug report » Task

Here's a quick fix.
These should probably be moved into their respective modules, and added with form_alters

aaronbauman’s picture

Status: Active » Closed (won't fix)

8.x is no longer supported

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

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

Maintainers, credit people who helped resolve this issue.