- Issue created by @Topplestack
- šµš±Poland jzalewski
I had the exact same error. What did work is doing all the config from the beginning including removing and adding Solr from pantheon.
- šŗšøUnited States tjmoyer
I ran into this issue and found that there were errors in the logs to indicated this was related to issue 3424724 š Search API Schema reverts back to 4.2 after deploys or randomly Active where the solr schema had reverted to 4.2.x from 4.3.x. I tried re-posting using drush, but ran into a different an error there. I was able to patch for that error, re-post schema using drush, and then could access the Search API Pantheon admin page. Details on this here: https://www.drupal.org/project/search_api_pantheon/issues/3424724#commen... š Search API Schema reverts back to 4.2 after deploys or randomly Active .
- Assigned to sumitmadan
- Merge request !11Added query parameter to fetch json formatted response from solr. ā (Closed) created by sumitmadan
- Issue was unassigned.
- Status changed to Needs review
26 days ago 11:27am 1 September 2024 - Status changed to Fixed
17 days ago 4:10am 10 September 2024 - š®š³India sivamallareddy Bengaluru
I have upgraded to 8.1.10, but I am still encountering the same issue.
- š®š³India sumitmadan Chandigarh
I am unable to reproduce. Can you please confirm looking into the logs that it is the same error you are facing?
- šŗšøUnited States Daniel Korte Brooklyn, NY
Pantheon has already fixed my Solr schema (was 4.2 and now it is 4.3). When I was on 4.2, I can confirm that when I updated to the latest version of this module I was hoping to fix the WSOD. I tried clearing the cache, running the updates, etc. but the error above still occurred. The only difference is Iām on PHP 8.3 and Drupal 10.3.5
- šŗšøUnited States JasonSafro
@sumitmadan We are also experiencing this issue.
How to reproduce?
Please re-read comment #4. TJMoyer did a good job explaining the situation that triggers this error.
How to fix
This is a PHP type error. See
protected function getViewSolrFile(string $filename, string $contents, bool $open = FALSE)
in .../search_api_pantheon/modules/search_api_pantheon_admin/src/Form/PantheonSolrAdminForm.php
The function is expecting the 2nd parameter to be a string. But, on line 77, you are feeding it at array. You need to:
- Change the function definition to accept either an array or a string for $contents.
- Enhance the function to handle the case where $contents is an array.
- Status changed to Needs work
7 days ago 9:22am 20 September 2024