• Resolved levdesign

    (@levdesign)


    Hi,

    I came across the errors below when I was scanning the plugin for compatibility with PHP 7.3. Could you please update the deprecated ‘mysql_’ to ‘mysqli’? Thank you.

    FILE: /home/animalch/public_html/wp-content/plugins/health-check/includes/class-health-check-site-status.php
    ————————————————————————————————————-
    FOUND 2 ERRORS AFFECTING 2 LINES
    ————————————————————————————————————-
    52 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    1097 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ————————————————————————————————————-

    FILE: /home/animalch/public_html/wp-content/plugins/health-check/includes/class-health-check-debug-data.php
    ————————————————————————————————————
    FOUND 1 ERROR AFFECTING 1 LINE

    ————————————————————————————————————
    766 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ————————————————————————————————————

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Marius L. J.

    (@clorith)

    Hiya,

    It looks like you’ve used a static code analyzer, unfortunately these do not give a proper picture of what is going on.

    The Health Check plugin is compatible with PHP 5.2 or later (it’s actively tested against every PHP version from 5.2 onwards).

    The code your analyzer is referencing is backwards compatible code that is only triggered if a version of PHP without the MySQLi extension is being used, so you can safely disregard the warnings here.

    Thread Starter levdesign

    (@levdesign)

    Hi @clorith, thanks for your reply and for the clarification. Just FYI, I used the PHP Compatibility Checker plugin by WP Engine to scan the plugins and check the PHP 7.3 compatibility.

    Plugin Author Marius L. J.

    (@clorith)

    Thanks for the info!

    They should’ve had an exception for the Health Check plugin (I know we’ve requested it), so it’s probably in their pipeline somewhere for a future release I hope ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘PHP errors in class-health-check-site-status.php : ‘mysql_’ is deprecated’ is closed to new replies.