‘PHP Parse error’ and ‘Solr HTTP error: Bad Request (400)’
- software.licensesParticipant1 year, 4 months ago #37259
Good morning,
we wanted to warn you about the following problem:
There is a comma at the end of the line 460, before the parenthesis, in the file
wpsolr-pro/wpsolr/core/classes/ui/class-wpsolr-data-facets.phpERROR
[Mon Nov 06 12:31:35.591663 2023] [proxy_fcgi:error] [pid 795446:tid 140022644668160] [client 172.25.11.62:57530] AH01071: Got error ‘PHP message: PHP Parse error: syntax error, unexpected ‘)’, expecting variable (T_VARIABLE) in /wpsite/wp-content/plugins/wpsolr-pro/wpsolr/core/classes/ui/class-wpsolr-data-facets.php on line 460′, referer: https://wpsite.com/After fixing this parse error, we get the following error thrown when using the search function to view results:
Solr HTTP error: Bad Request (400) { “response”:{ “numFound”:0, “start”:0, “numFoundExact”:true, “docs”:[ ] }, “error”:{ “metadata”:[“error-class”,”org.apache.solr.common.SolrException”,”root-error-class”,”org.apache.solr.common.SolrException”], “msg”:”undefined field comments”, “code”:400 } }software.licensesParticipant1 year, 4 months ago #37261When going into the “Data” section of the plugin, we get this error:
[Mon Nov 06 13:03:52.194939 2023] [proxy_fcgi:error] [pid 797260:tid 139861080127232] [client 172.44.10.188:41568] AH01071: Got error ‘PHP message: (WPSOLR) Attribute is different from escaped value: selected=’selected’ => selected='selected'’, referer:
https://wpsite.com/
[Mon Nov 06 13:03:52.195117 2023] [deflate:error] [pid 797260:tid 139861080127232] [client 172.44.10.188:41568] AH01386: Zlib error -2 deflating data ((null)), referer:
https://wpsite.com/
[Mon Nov 06 13:03:52.195124 2023] [proxy_fcgi:error] [pid 797260:tid 139861080127232] (20014)Internal error (specific information not available): [client 172.44.10.188:41568] AH01075: Error dispatching request to : (passing brigade to output filters), referer:
https://wpsite.com/software.licensesParticipant1 year, 4 months ago #37262Yes, PHP version is 7.4.33
wpsolrKeymaster1 year, 4 months ago #37263WPSOLR requires PHP 8.1. This is the explanation for your issues.
software.licensesParticipant1 year, 4 months ago #37264Thanks for the quick reply. For production needs we are not ready yet to move from the 7.4.x
Is it possible to have a rollback version of the plugin? We don’t have a deadline to move to PHP 8.1 and we need your plugin configured and running as soon as possible.
Many thanks again
You must be logged in to reply to this topic.