WSOD When Browsing To "Pantheon Search Admin" Tab

Created on 27 October 2023, about 1 year ago
Updated 19 September 2024, about 2 months ago

Problem/Motivation

WSOD when trying to browse to the Pantheon Search Admin tab on Drupal 10

Error logged to console:
TypeError: Cannot access offset of type string on string in Drupal\search_api_pantheon_admin\Form\PantheonSolrAdminForm->buildForm() (line 64 of /code/web/modules/contrib/search_api_pantheon/modules/search_api_pantheon_admin/src/Form/PantheonSolrAdminForm.php).

Steps to reproduce

Go to Configuration > Search & Metadata > Search API > Pantheon Search Admin

🐛 Bug report
Status

Needs work

Version

8.1

Component

Code

Created by

🇨🇦Canada nicoleannevella

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

Comments & Activities

  • Issue created by @nicoleannevella
  • 🇺🇸United States Brian Weaver

    Are you using Solr 3 or Solr 8? When the 8.x version of the module was written, it was intended to work with Solr 8. The version number was intended to correspond to the Solr server version.

    To switch to Solr 8, you need to configure it in pantheon.yml:

    search:
      version: 8
    

    Try adding that to your `pantheon.yml` if it's not there already.

  • Status changed to Closed: works as designed about 1 year ago
  • 🇨🇦Canada nicoleannevella

    suggestion in comment #3 fixed my issue.

  • 🇮🇳India sivamallareddy Bengaluru

    I have added the search version in pantheon.yml, but I am still getting the same error."

  • Status changed to Needs work 2 months ago
  • 🇺🇸United States mahesh.gudapakkam@gmail.com

    Hi there,

    I am having a similar issue. I setup Pantheon Solr Search on one of my multidev environments. The version of Search is set to 8 in pantheon.yml in my case. Drupal version is 10.2.2. I am able to run Searches on the Content type I indexed. So no issues there.

    It's when I access the Pantheon Search Admin screen/tab (Content > Configuration > Search and metadata > Search API > Pantheon Search) - that I receive a generic error - "The website encountered an unexpected error. Try again later."

    On the 'View' tab the Search server appears Enabled, the Server Connection field indicates that the Solr server could be reached. Nothing of alarm here.

Production build 0.71.5 2024