Search API hits WSOD when configuring off-Pantheon

Created on 23 December 2022, almost 2 years ago
Updated 22 May 2023, over 1 year ago

Problem/Motivation

When creating a Pantheon configuration locally, i.e. not on a Pantheon-hosted server, the site will hit a WSOD with the following error:

InvalidArgumentException: The URI '://:0/' is invalid. You must use a valid URI scheme. in Drupal\Core\Url::fromUri() (line 293 of core/lib/Drupal/Core/Url.php).
Drupal\search_api_solr\SolrConnector\SolrConnectorPluginBase->getServerLink() (Line: 799)
Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->viewSettings() (Line: 191)
Drupal\search_api\Entity\Server->viewSettings() (Line: 241)
template_preprocess_search_api_server(Array, 'search_api_server', Array)

Steps to reproduce

On a Drupal 10 server instance that is not running on Pantheon..
Create a new Search API server that uses Pantheon as the connector; after clicking "Save" the error will be shown.

Proposed resolution

Fix the bug so that it is possible to create the configuration off a Pantheon account.

Remaining tasks

Find the source of the bug.
Fix it.

User interface changes

It would be possible to create a Pantheon-hosted server configuration when not running the site on Pantheon.

API changes

TBD

Data model changes

TBD

πŸ› Bug report
Status

Active

Version

8.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡·Argentina weemondo

    For those coming back to this issue. I found this happened when the container for whatever reason failed to update the solr version or, in the case of multidevs, it reverted to a previous version. Pushing changes to pantheon.yml I was able to trigger an upgrade of the container to include solr8.

Production build 0.71.5 2024