Title: Parse error: syntax error, unexpected &#8216;[&#8216; in CoolClock 4.0
Last modified: March 16, 2018

---

# Parse error: syntax error, unexpected ‘[‘ in CoolClock 4.0

 *  Resolved [gdesfeux](https://wordpress.org/support/users/gdesfeux/)
 * (@gdesfeux)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-221/)
 * Hi there,
 * I have updated all plugins on one of my personal blogs this morning and I ran
   into this error after upgrading to the last version of the plugin (4.0). I cannot
   activate the plugin anymore.
 * Parse error: syntax error, unexpected ‘[‘ in …/wp-content/plugins/coolclock/includes/
   class-coolclock.php on line 46
 * I’m running WordPress 4.9.4-en_GB on a French hosting provider (OVH). I can provide
   further details if needed.
 * phpinfo report is available here: [https://www.dedef.info/phpinfo.php](https://www.dedef.info/phpinfo.php)
 * Any idea on what I should do with this?
 * Cheers,
 * G.
    -  This topic was modified 8 years, 2 months ago by [gdesfeux](https://wordpress.org/support/users/gdesfeux/).

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

 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-221/#post-10083381)
 * Hi G, sorry to hear you are having troubles. They are related to the PHP version.
   The square bracket is not supported by any PHP version below 5.4. Please note
   that PHP 5.5 and below are no longer supported and even PHP 5.6 will no longer
   get security updates by the end of this year… the recommended PHP version for
   WordPress is 7+
 * You can log into your OVH Manager and open the Hosting section on the left. Choose
   your hosting (by domain name) and find on the General Information tab the section
   Configuration. You’ll see there the Global PHP version setting. Click the button
   to change the configuration and “Modify current config”, then set the Environment
   to Stable and the PHP version to anything above 5.5 preferably 7.0 or higher.
   If you find the site is not working with a high PHP version, then downgrade one
   step and test again.
 * Note that from 7.0 and up, your site will be faster 🙂
 *  Plugin Author [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-221/#post-10083397)
 * Oh, and make sure under Advanced the “Motor” setting is “php” not phpcgi, and
   Mode is “production”…
 *  Thread Starter [gdesfeux](https://wordpress.org/support/users/gdesfeux/)
 * (@gdesfeux)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-221/#post-10126786)
 * Thanks a million, it works now 😉
 * Cheers,
 * G.

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

The topic ‘Parse error: syntax error, unexpected ‘[‘ in CoolClock 4.0’ is closed
to new replies.

 * ![](https://ps.w.org/coolclock/assets/icon-128x128.png?rev=1112137)
 * [CoolClock - a Javascript Analog Clock](https://wordpress.org/plugins/coolclock/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/coolclock/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/coolclock/)
 * [Active Topics](https://wordpress.org/support/plugin/coolclock/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/coolclock/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/coolclock/reviews/)

## Tags

 * [Unexpected](https://wordpress.org/support/topic-tag/unexpected/)
 * [upgrade](https://wordpress.org/support/topic-tag/upgrade/)

 * 3 replies
 * 2 participants
 * Last reply from: [gdesfeux](https://wordpress.org/support/users/gdesfeux/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/parse-error-syntax-error-unexpected-221/#post-10126786)
 * Status: resolved