• 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://www.ads-software.com/plugins/wordpress-popular-posts/

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    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

    (@wandriska)

    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

    (@hcabrera)

    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

    (@wandriska)

    I appear to have
    FirePHP (Firefox Firebug addon).

    Will that suffice..?

    Plugin Author Hector Cabrera

    (@hcabrera)

    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

    (@wandriska)

    Yeah, I wish I could. I can’t find any mention of that WP_DEBUG in my config file

    Plugin Author Hector Cabrera

    (@hcabrera)

    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, 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

    (@wandriska)

    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

    (@hcabrera)

    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.