- 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
4 months ago 11:27am 1 September 2024 - Status changed to Fixed
3 months 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
3 months ago 9:22am 20 September 2024 - š®š³India sumitmadan Chandigarh
@jsonsafro
$this->pantheonGuzzle->getQueryResult()
is a generic method for all kind of calls. The returned result is either `json_decoded` array or the string.The following piece of code returns a file and result is read as a string.
$file_contents = $this->pantheonGuzzle->getQueryResult('admin/file', [ 'query' => [ 'action' => 'VIEW', 'file' => $filename, ], ]);
I did follow the steps from #4 but couldn't reproduce.
If you are using 8.1.10 version of the module, then can you please help me figure out the issue?
My configuration as follows:
- Detected Solr Version: 8.11.2
- Schema Version: 4.3.5 (was 4.2 after I upgraded to solr 8 but updated it as per 3424724#comment-15742180 š Search API Schema reverts back to 4.2 after deploys or randomly Active )
I am using default schema. All the files loaded on the admin form are text files or xml files and both are returned as string from the `getQueryResult` call.
Can you please confirm if this is the same configuration on your end? Or is there any particular case or schema that is causing this error? Or if you figured out the issue, please feel free to raise a pull request at https://github.com/pantheon-systems/search_api_pantheon.
- š§š¾Belarus kachinsky
I have the same problem, and updating the schema version to 4.3.5 didn't help either.
In my case, the problem seems to be related to the lang directory. - šØš¦Canada RobLoach Earth
I believe this was fixed in the upstream github repo at https://github.com/pantheon-systems/search_api_pantheon/pull/197 .
If you're on composer, you can use that instead of the Drupal repo...
``` json
"pantheon-systems/search_api_pantheon": "^8",
``` - Status changed to RTBC
26 days ago 2:20pm 26 November 2024 - miiimooo Europe
I can confirm this bug, after switching to the dev version.
I used the patch mentioned in #19 like this
"drupal/search_api_pantheon": { "3467907 - Use patch from #19": "https://patch-diff.githubusercontent.com/raw/pantheon-systems/search_api_pantheon/pull/197.patch" },
The Pantheon Solr Admin Form loads again