‘PHP Parse error’ and ‘Solr HTTP error: Bad Request (400)’

Tagged:
  • software.licenses
    Participant
    3 months, 2 weeks 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.php

    ERROR
    [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 } }

    wpsolr
    Keymaster
    3 months, 2 weeks ago #37260

    Are you using PHP 7.x ?

    software.licenses
    Participant
    3 months, 2 weeks ago #37261

    When 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.licenses
    Participant
    3 months, 2 weeks ago #37262

    Yes, PHP version is 7.4.33

    wpsolr
    Keymaster
    3 months, 2 weeks ago #37263

    WPSOLR requires PHP 8.1. This is the explanation for your issues.

    software.licenses
    Participant
    3 months, 2 weeks ago #37264

    Thanks 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

    wpsolr
    Keymaster
    3 months, 2 weeks ago #37265

    Sorry, but we cannot provide older version of the plugin, for security and dependencies to many external PHP libraries.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.