• Contactic is causing some issues to show up in the new WordPress feature “Site Health”. When this plugin (or Contact Form DB, to be clear) are active, the following two critical errors appear:

    The REST API encountered an error
    Your site could not complete a loopback request

    Additionally, under the “Recommended Improvement” section:

    Background updates may not be working properly.
    – Could not confirm that the wp_version_check() filter is available.

    These do not appear on other sites using the same hosting / config and on this test site when Contactic / Contact Form DB are not installed and/or disabled. The issues seem directly related to the plugin.

    Additionally, the PHP Compatibility Checker plugin for v7.2 finds many issues with Contactic, which I’ve pasted below, with a PATH redaction. I realize that some of the mysqli related warnings could be due to backward compatibility code.

    FILE: /home/PATH/public_html/wp-content/plugins/contactic/CTC_QueryResultIterator.php
    ————————————————————————————————————
    FOUND 13 ERRORS AFFECTING 13 LINES
    ————————————————————————————————————
    47 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    59 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    85 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    87 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    114 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    121 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    122 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    132 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    136 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    138 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    146 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    150 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    152 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ————————————————————————————————————

    FILE: /home/PATH/public_html/wp-content/plugins/contactic/CTC_WpdbUnbufferedResultIterator.php
    ————————————————————————————————————
    FOUND 6 ERRORS AFFECTING 6 LINES
    ————————————————————————————————————
    72 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    74 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    97 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    100 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    122 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    124 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since PHP 7.0; Use mysqli instead
    ————————————————————————————————————

    FILE: /home/PATH/public_html/wp-content/plugins/contactic/CTC_Deobfuscate.php
    ——————————————————————————————————————————————————
    FOUND 3 ERRORS AFFECTING 1 LINE
    ——————————————————————————————————————————————————
    43 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
    43 | ERROR | Function mcrypt_decrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead
    43 | ERROR | The constant “MCRYPT_3DES” is deprecated since PHP 7.1 and removed since PHP 7.2
    ——————————————————————————————————————————————————

    Thank you for looking into these things.

Viewing 1 replies (of 1 total)
  • Anonymous User 16766577

    (@anonymized-16766577)

    Hi,
    thank you for your feedback, mysql related messages are indeed due to backward compatibility code, it’s not executed when mysqli is available so no error will really happen.
    We work on the other issues I’ll keep you informed.

Viewing 1 replies (of 1 total)
  • The topic ‘Site Health Issues & PHP legacy code’ is closed to new replies.