• Resolved mrkshrt

    (@mrkshrt)


    Latest version throwing this error
    /wp-content/plugins/woocommerce-predictive-search/admin/admin-ui.php
    PHP Parse error: syntax error, unexpected ‘.’, expecting ‘,’ or ‘;’ in /wp-content/plugins/woocommerce-predictive-search/admin/admin-ui.php on line 37

    These is lines 34-40
    public $framework_version = ‘2.0.2’;
    public $plugin_name = WOOPS_KEY;
    public $plugin_path = WOOPS_NAME;
    public $google_api_key_option = WOOPS_KEY . ‘_google_api_key’;
    public $toggle_box_open_option = WOOPS_KEY . ‘_toggle_box_open’;
    public $version_transient = WOOPS_KEY . ‘_licinfo’;
    public $is_free_plugin = true;

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter mrkshrt

    (@mrkshrt)

    It appears the syntax only works in 5.6 and this server is 5.59. Seems like kind of an odd thing to implement in a general purpose plugin at this point in time. Hopefully will revert it back and not require moving to probably PHP 7 server.

    Plugin Author Steve Truman

    (@a3rev)

    @mrkshrt

    Sorry just saw your ticket.

    Did you know that your host server is running an outdated and unsupported PHP Version? – this is bad.

    PHP stopped support for 5.5 in July 2016 and PHP themselves strongly recommend that it is not used due to security vulnerabilities – see here
    http://php.net/eol.php

    WordPress Requirements state that to run WordPress system config should be
    PHP version 7.2 or greater
    MySQL version 5.6 or greater OR MariaDB version 10.0 or greater
    HTTPS support

    You can read more about that here https://ww.wp.xz.cn/about/requirements/

    On that WordPress link there is a sample email that you can use to send to your host to upgrade your system. As soon as you upgrade to PHP 5.6 (which is a very easy thing for your to do) or higher (PHP 7.0+ will give you enhanced site performance) you will not have the issue and your server will be much more secure.

    Regards
    Steve

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘WooCommerce Predictive Search update has syntax error’ is closed to new replies.