Title: Error 500 when updating
Last modified: August 29, 2018

---

# Error 500 when updating

 *  Resolved [idealocity](https://wordpress.org/support/users/idealocity22/)
 * (@idealocity22)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-updating/)
 * 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)

 *  [sebastiankro](https://wordpress.org/support/users/sebastiankro/)
 * (@sebastiankro)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-updating/#post-10638949)
 * 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](https://secure.php.net/supported-versions.php)
 *  Thread Starter [idealocity](https://wordpress.org/support/users/idealocity22/)
 * (@idealocity22)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-updating/#post-10640234)
 * 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.

 * ![](https://ps.w.org/cache-enabler/assets/icon.svg?rev=2442383)
 * [Cache Enabler](https://wordpress.org/plugins/cache-enabler/)
 * [Support Threads](https://wordpress.org/support/plugin/cache-enabler/)
 * [Active Topics](https://wordpress.org/support/plugin/cache-enabler/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cache-enabler/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cache-enabler/reviews/)

 * 2 replies
 * 0 participants
 * Last reply from: [idealocity](https://wordpress.org/support/users/idealocity22/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/error-500-when-updating/#post-10640234)
 * Status: resolved