Title: Site Health Issues &amp; PHP legacy code
Last modified: May 23, 2019

---

# Site Health Issues & PHP legacy code

 *  [WSO.host](https://wordpress.org/support/users/buzznot99/)
 * (@buzznot99)
 * [7 years ago](https://wordpress.org/support/topic/site-health-issues-php-legacy-code/)
 * 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)
 * [7 years ago](https://wordpress.org/support/topic/site-health-issues-php-legacy-code/#post-11602743)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/contactic_a6b3bf.svg)
 * [Contact Form 7 Database + | CFDB+](https://wordpress.org/plugins/contactic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contactic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contactic/)
 * [Active Topics](https://wordpress.org/support/plugin/contactic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contactic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contactic/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: Anonymous User 16766577
 * Last activity: [7 years ago](https://wordpress.org/support/topic/site-health-issues-php-legacy-code/#post-11602743)
 * Status: not resolved