Title: PHP 5.5 compatibility
Last modified: August 21, 2016

---

# PHP 5.5 compatibility

 *  [wandriska](https://wordpress.org/support/users/wandriska/)
 * (@wandriska)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/)
 * Hi there,
    Hostgator is requiring its users to upgrade their sites to PHP 5.5
   compatibility ( one can elect to stay on 5.2, but they are suggesting best to
   upgrade). I tested my site with 5.5 and found that the only problem was this 
   plugin.
 * Is this to do with the coding of this plugin or to do with something on my site
   that is talking to this plug in.
 * thanks,
    Andrew
 * [https://wordpress.org/plugins/wordpress-popular-posts/](https://wordpress.org/plugins/wordpress-popular-posts/)

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

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4889885)
 * Hi Andrew,
 * Couldn’t know for sure without seeing the errors. Please post the error messages
   so I can take a look.
 *  Thread Starter [wandriska](https://wordpress.org/support/users/wandriska/)
 * (@wandriska)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4890040)
 * Hi Hector,
 * There is no error when I run the site with PhP 5.5 but the plg in does not load,
   just the heading
 * ta
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4890042)
 * Do you have _WP\_DEBUG_ (see config.php) set to _true_? Otherwise, WordPress 
   will hide all PHP warning / error messages.
 * Could you please verify?
 *  Thread Starter [wandriska](https://wordpress.org/support/users/wandriska/)
 * (@wandriska)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4890067)
 * I appear to have
    FirePHP (Firefox Firebug addon).
 * Will that suffice..?
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4890083)
 * No, unfortunately that won’t help.
 * To avoid displaying warning / errors messages on your site, try this:
 * 1. On _config.php_, set WP_DEBUG to true. It should look like this: `define('
   WP_DEBUG', true);`.
 * 2. Add the following two lines of code right after `define('WP_DEBUG', true);`:
 *     ```
       define('WP_DEBUG_LOG', true); // Saves error messages to wp_content/debug.log
       define('WP_DEBUG_DISPLAY', false); // Disables the output of error messages on screen
       ```
   
 * 3. Enable the plugin again, browse a couple of pages and then post here the contents
   of _wp\_content/debug.log_ (or upload the file somewhere so I can download it).
 *  Thread Starter [wandriska](https://wordpress.org/support/users/wandriska/)
 * (@wandriska)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4890103)
 * Yeah, I wish I could. I can’t find any mention of that WP_DEBUG in my config 
   file
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4890104)
 * You mean _wp-config.php_, correct?
 * It should be right after:
 * > /**
   >  * For developers: WordPress debugging mode. * * Change this to true to
   > enable the display of notices during development. * It is strongly recommended
   > that plugin and theme developers use WP_DEBUG * in their development environments.*/
 * If it’s not, which would be odd since [it’s been included by default in wp-config.php since WordPress version 2.3.1](http://codex.wordpress.org/Editing_wp-config.php#Debug),
   you can add it like this:
 *     ```
       define('WP_DEBUG', true); // Enables PHP debugging
       define('WP_DEBUG_LOG', true); // Saves error messages to wp_content/debug.log
       define('WP_DEBUG_DISPLAY', false); // Disables the output of error messages on screen
       ```
   
 * Place this block of code right before:
 * > /* That’s all, stop editing! Happy blogging. */
 *  Thread Starter [wandriska](https://wordpress.org/support/users/wandriska/)
 * (@wandriska)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4890113)
 * Huh, you were right.. I just didn’t get to the end!
 * The one I had was a simple one liner…I actually tried to install yours as it 
   looked more comprehensive, but it ended up giving the site issues (wouldn’t load)
   so I just changed the one I had to “true”
 * Doing this threw up error messages for another plugin (even with PHP 5.2) but
   nothing came up for yours….
 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4890131)
 * > The one I had was a simple one liner…I actually tried to install yours as it
   > looked more comprehensive, but it ended up giving the site issues (wouldn’t
   > load) so I just changed the one I had to “true”
 * Yes, by default only WP_DEBUG is present on wp-config.php. The other two (WP_DEBUG_LOG
   and WP_DEBUG_DISPLAY) are additional constants for developers to enable logging
   without outputting anything on screen.
 * > Doing this threw up error messages for another plugin (even with PHP 5.2) but
   > nothing came up for yours….
 * I see. That’s odd. Could it be another plugin causing the issue? Have you tried
   disabling all other plugins but WPP?
 * What’s your site’s URL, by the way?

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

The topic ‘PHP 5.5 compatibility’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

## Tags

 * [PHP compatibility](https://wordpress.org/support/topic-tag/php-compatibility/)

 * 9 replies
 * 2 participants
 * Last reply from: [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * Last activity: [12 years, 1 month ago](https://wordpress.org/support/topic/php-55-compatibility/#post-4890131)
 * Status: not resolved