WSOD when uploading configset for non-Pantheon servers

Created on 14 April 2025, 10 days ago

Problem/Motivation

When Search API Pantheon module is enabled and the site has a server using a different Solr connector, like Solr Cloud with Basic Auth, when trying to upload the configset, the site throws the following error:

TypeError: explode(): Argument #2 ($string) must be of type string, null given in explode() (line 28 of modules/contrib/search_api_pantheon/src/EventSubscriber/SearchApiPantheonSolrConfigFilesAlter.php).

This prevents to complete the task.

Steps to reproduce

  • Install Search API Pantheon module
  • Create a Solr server using Solr Cloud with Basic Auth connector
  • Try to upload the configset from the UI
  • A WSOD wit the error mentioned above prevents to complete the task

Proposed resolution

Add an extra checker in SearchApiPantheonSolrConfigFilesAlter to eensure that server connector is PantheonSolrConnector to avoid alterations in other connectors.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

8.3

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain plopesc Valladolid

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

Comments & Activities

Production build 0.71.5 2024