• Resolved pbik

    (@pbik)


    Hey Rene,

    using your plugin for two weeks now and helped me greatly in safely moving my site to WP 5.5, thank you!

    Now my next goal would be to get PHP 7.3, but first I wanted to check up with you, since my preliminary tests threw a couple of errors and warnings. I’m using the following plugin for the checkup:

    https://wordpress.org/plugins/php-compatibility-checker/

    The report I get is:

    FILE: ../wp-staging/Core/Utils/MySQL.php
    ------------------------------------------------------------------------------------------------------------
    FOUND 9 ERRORS AFFECTING 9 LINES
    ------------------------------------------------------------------------------------------------------------
      24 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      34 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      43 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      52 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      61 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      71 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      81 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
      91 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
     101 | ERROR | Extension 'mysql_' is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ------------------------------------------------------------------------------------------------------------
    
    FILE: ../wp-staging/Backend/Administrator.php
    --------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    --------------------------------------------------------------------------------------------------------
     398 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
    --------------------------------------------------------------------------------------------------------
    
    FILE: ../wp-staging/Backend/Modules/SystemInfo.php
    -------------------------------------------------------------------------------------------------------------
    FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
    -------------------------------------------------------------------------------------------------------------
     492 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4
    -------------------------------------------------------------------------------------------------------------

    Could you please look into it and resolve the errors?

    I’m looking forward to keep using your awesome plugin after the PHP update.

    Thanks,
    pbik

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor alaasalama

    (@alaasalama)

    Hi @pbik
    Thanks for reaching out!

    These warnings and errors you are seeing within “php-compatibility-checker” plugin’s report are reflecting a genuine code we use for backward compatibility, we added these snippets there for the purpose of backward compatibility, because not all users are running a recent version of PHP, some are still on an old version (5.3, 5.4, 5.5. etc…) so to make sure that WP Staging works on these sites, we must use these lines of codes.

    For your information, WP Staging is fully compatible with PHP 7.3 that you are planning to use on your server.

    Let me know if you have any further question,
    Thanks.

    – Alaa

    Thread Starter pbik

    (@pbik)

    Hi @alaasalama
    it’s good to know, thanks for the confirmation.

    FYI: I’ve seen some topics that suggest there is a whitelist (in the PHP Compatibility Checker plugin) for plugins that maintain backwards compatibility like yours.

    Not sure how to get on the whitelist, but getting on it might save time for others like me wanting to upgrade their PHP version.

    Thanks again,
    pbik

    Plugin Contributor alaasalama

    (@alaasalama)

    Indeed! Here’s the whitelist. We can definitely consider contacting the plugin’s author to add these warnings/errors to the whitelist, with that said the plugin seems not be maintained regularly, it hasn’t been updated for more than a year!

    Plugin Author Rene Hermenau

    (@renehermi)

    Hi @pbik

    I want to make more clear what my colleague already explained in detail for other visitors as well:

    Please don’t rely on the PHP Compatibility Checker plugin any longer and get rid of it as a tool that can do any reliable checking of your plugins, server, website.

    That is an outdated plugin that has not been confirmed to work with the latest WordPress version, either. It shows false positives all the time, and we, as plugin developers, can nothing do against it except telling other users not to use it.

    Please trust the developer of the plugin you use, instead of counting on a third-party, unmaintained plugin that claims that your plugin does not work!

    When a plugin developer says his plugins work with a specific PHP version, then please trust him. This applies to all other plugin developers, not only to us.

    I have to say it that clear because we are getting this same question periodically.

    Cheers,
    René

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP errors’ is closed to new replies.