• Resolved suniltemabhare

    (@suniltemabhare)


    Hi Support,
    We are using add PHP 7.4, and why is this error showing with the ElasticPress plugin? Please check.

    Error –
    “PHP message: PHP Parse error: syntax error, unexpected ‘|’, expecting ‘;’ or ‘{‘ in /var/www/cosmetara.co.uk/wp-content/plugins/elasticpress/includes/classes/Feature/WooCommerce/Products.php on line 1038” while reading response header from upstream

    this string: public function get_orderby_meta_mapping( $meta_key ): string|array {

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Contributor Felipe Elia

    (@felipeelia)

    Hey there! Unfortunately, that is an error related to the PHP version in use. That happens on PHP 7.4, but does not happen on PHP 8 and later.

    A new ElasticPress 5.3.1 will be released addressing this problem, but in the meantime, I recommend that you upgrade your PHP version, as PHP 7.4 hit its end of life back in November 2022 (see here).

    Also worth mentioning is that we don’t provide support here. For this specific error, we already have a GitHub issue, but if you see anything else, please open a GitHub issue instead. Thanks!

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.