• Resolved idealocity

    (@idealocity22)


    I have tried updating to all 3 versions released after 1.2.2 and the upgrade takes place but I then get an error 500. I’ve tried on several sites while the plugin has been ACTIVE. All sites using PHP version 5.3.17

    I also tried to DEACTIVATE the cache enabler plugin and then upgrade it. When I try to enable the plugin I get the following error:
    Parse error: syntax error, unexpected ‘[‘ in /…/wp-content/plugins/cache-enabler/inc/cache_enabler_disk.class.php on line 528

Viewing 2 replies - 1 through 2 (of 2 total)
  • We haven’t been supporting PHP version older than 5.4 even with 1.2.2 so this is likely the issue here.
    (In the latest release we also upped the minimum supported version to PHP 5.6)

    If you feel up to some hacking, line 528 reads:
    return [];

    I haven’t tested this but believe if you replaced this with return array(); it would work in your version of PHP.
    You would have to replace two instances in inc/cache_enabler_disk.class.php and two in advanced-cache.php. (there is also a copy of advanced-cache.php in wp-content/ that will need updating)

    Let us know if that does the trick. 1.2.3 brought a lot of changes so there might be other issues creeping up after that but if it’s only these few lines we could change that with reasonable effort.

    I guess you are using the PHP provided by some older distribution here? Make sure it still receives security updates by that distribution vendor. 5.3.17 is from 2012 and hasn’t been receiving official security updates for 4 years:
    https://secure.php.net/supported-versions.php

    Thread Starter idealocity

    (@idealocity22)

    Thanks a lot for the explanation. We are going to keep using 1.2.2 version until we upgrade the PHP version.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error 500 when updating’ is closed to new replies.