Adding a server on a multidev environment causes the site to wsod/error out.

To recreate:
On a multidev environment Drupal v8.2.6
Followed installation steps here:
https://pantheon.io/docs/solr-drupal-8/
When adding a server I chose backend 'Solr' connector 'Pantheon' and hit save.
Immediately redirecting me to a wsod.

Error in logs:
TypeError: Argument 1 passed to Drupal\search_api_pantheon\SchemaPoster::__construct() must be an instance of Drupal\Core\Logger\LoggerChannelFactory, instance of Drupal\redirect_404\Render\Redirect404LogSuppressor given, called in /srv/bindings/9336fcf9323948d09c080cc964e1d6b5/code/core/lib/Drupal/Component/DependencyInjection/Container.php on line 272 in Drupal\search_api_pantheon\SchemaPoster->__construct() (line 37 of /srv/bindings/9336fcf9323948d09c080cc964e1d6b5/code/modules/contrib/search_api_pantheon/src/SchemaPoster.php) #0 /srv/bindings/9336fcf9323948d09c080cc964e1d6b5/code/core/lib/Drupal/Component/DependencyInjection/Container.php(272): Drupal\search_api_pantheon\SchemaPoster->__construct(Object(Drupal\redirect_404\Render\Redirect404LogSuppressor), Object(GuzzleHttp\Client))

Additionally:
I noted an Ajax error on the form whenever Pantheon is selected as an connector

Comments

gcalex5 created an issue. See original summary.

stevector’s picture

Hi gcalex5,

The error message indicates a compatibility problem with redirect_404 module. I don't see a Drupal 8 version of that module: http://cgit.drupalcode.org/redirect_404

Are you working with a private version of redirect_404?

I'm guessing that I'll have to end up adjusting the function signature of SchemaPoster__construct() to rely on an interface rather than a class.

stevector’s picture

stevector’s picture

Status: Active » Needs review

gcalex5, can you try https://github.com/pantheon-systems/search_api_pantheon/pull/63

I haven't tested it myself yet. The fix looks pretty simple.

gcalex5’s picture

stevector that fix worked! thanks!

stevector’s picture

Merged. Thanks for testing!

I'll roll a release soon.

stevector’s picture

Status: Needs review » Fixed

  • 9b4fd6c committed on 8.x-1.x
    Issue #2852976 by stevector: Using interface instead of...

Status: Fixed » Closed (fixed)

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