Title: PHP 5.3 or higher
Last modified: August 22, 2016

---

# PHP 5.3 or higher

 *  Resolved [pg-fun](https://wordpress.org/support/users/pg-fun/)
 * (@pg-fun)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-53-or-higher/)
 * Just wondered what the likely “error” would be if the PHP is not 5.3 or higher?
 * Would this be a likely message
    “The Events Calendar Category Colors could not
   run as it’s minimum requirements were not met.”
 * therefore v5.3.6 should be good
 * [https://wordpress.org/plugins/the-events-calendar-category-colors/](https://wordpress.org/plugins/the-events-calendar-category-colors/)

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

 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-53-or-higher/#post-5880392)
 * [@pg-fun](https://wordpress.org/support/users/pg-fun/), yes PHP 5.3.6 should 
   be fine. But the line it’s failing on is as follows.
 *     ```
       // Check for PHP 5.3 compatibility
       	if ( version_compare( PHP_VERSION, '5.3', '<' ) ) {
       		add_action( 'admin_notices', 'teccc_load_failure' );
       		return;
       	}
       ```
   
 * That should **only** fail if PHP is less than version 5.3
 * Are you getting this error running PHP 5.3.6 on your server?
 *  Thread Starter [pg-fun](https://wordpress.org/support/users/pg-fun/)
 * (@pg-fun)
 * [11 years, 4 months ago](https://wordpress.org/support/topic/php-53-or-higher/#post-5880407)
 * its fine once my wordpress sites running Event Category Colors were updated to
   PHP 5.3.6
 * Colors returned!!
 * examples:
    [http://www.paulgriffiths.info/events](http://www.paulgriffiths.info/events)
   [http://www.tadworthcricketclub.co.uk/events](http://www.tadworthcricketclub.co.uk/events)

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

The topic ‘PHP 5.3 or higher’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/the-events-calendar-category-colors_52b1d1.
   svg)
 * [The Events Calendar: Category Colors](https://wordpress.org/plugins/the-events-calendar-category-colors/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar-category-colors/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar-category-colors/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar-category-colors/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar-category-colors/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar-category-colors/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [pg-fun](https://wordpress.org/support/users/pg-fun/)
 * Last activity: [11 years, 4 months ago](https://wordpress.org/support/topic/php-53-or-higher/#post-5880407)
 * Status: resolved