• Resolved kkpp

    (@kkpp)


    5.3 broke my site. Helpful info from WordPress:

    WordPress version 5.8.2
    Current theme: Vega (version 3.0.0)
    Current plugin: Ivory Search (version 5.3) PHP version 5.6.40 (ya, I know; we’ll be updating in January)

    Error Details
    =============
    An error of type E_PARSE was caused in line 639 of the file (I removed file location) plugins/add-search-to-menu/includes/class-is-index-helper.php. Error message: syntax error, unexpected ‘:’, expecting ‘;’ or ‘{‘

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    Sorry to hear about the problem you are having.

    The WordPress minimum PHP requirement is version 7.4 or greater but you are using 5.6 version therefore this is happening.

    The plugin uses return type on the below line that is generating an error as this syntax is introduced in PHP version 7.

    https://plugins.trac.www.ads-software.com/browser/add-search-to-menu/trunk/includes/class-is-index-helper.php#L639

    The issue will be resolved for you after upgrading the PHP version.

    Best regards,

    Thread Starter kkpp

    (@kkpp)

    Ok, thanks for looking into this. You should probably change your description in the right-hand column on your WordPress plugin page to read “PHP Version: 7.4 or higher”. It says 5.2.4 or higher. ??

    That’s correct @kkpp

    A kind note to plugin developer:
    The minimum requirements for PHP of that plugin should be updated to 7.3 as opposed to 5.2.

    All PHP versions prior to PHP 7.3 reached end of life (EOL) and even though WP may still operate with many legacy themes most of the plugins I’m testing on my site keeps crashing as well. It’s high time to rebuild WP with latest PHP (which is reporting speed optimizations of up to 47%)

    Thanks and HNY to all

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I will update the minimum PHP version in the next version of the plugin.

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    The issue is resolved in the latest released plugin version 5.4 so please update the plugin to the latest version on your website.

    Thread Starter kkpp

    (@kkpp)

    Very kind of you to look into this. However, it still breaks the site, different message this time:

    WordPress version 5.8.2
    Current theme: Vega (version 3.0.0)
    Current plugin: Ivory Search (version 5.4) PHP version 5.6.40

    Error Details
    =============
    An error of type E_COMPILE_ERROR was caused in line 660 of the file (I removed path)/wp-content/plugins/add-search-to-menu/includes/class-is-index-helper.php. Error message: Default value for parameters with a class type hint can only be NULL`

    (We still do plan to update php, but now it’s been pushed out to early March.)

    Version 5.3 broke my site as well, also running PHP 5.6. The plugin site still says only PHP “5.2.4 or higher” is required.

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    I have updated the plugin version to 5.4.1 containing fix for the new error so could you please try using it?

    Thread Starter kkpp

    (@kkpp)

    Works great now! Thank you very much! (It’s a great plugin, by the way – exactly what we needed.)

    Plugin Author Vinod Dalvi

    (@vinod-dalvi)

    Glad to hear that and thank you for the confirmation.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Version 5.3 broke my site’ is closed to new replies.