Title: PHP 7.2 Errors
Last modified: January 25, 2018

---

# PHP 7.2 Errors

 *  Resolved [jrthor2](https://wordpress.org/support/users/jrthor2/)
 * (@jrthor2)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-errors-2/)
 * Wordpress 4.9.2 suggests to run on PHP 7.2. I upgraded Wordfence this morning
   and ran the PHP Compatibility check plugin on my site, and it came back with 
   the below issues with Wordfence and PHP 7.2
 * FILE: /home/lsselca5/public_html/beta/wp-content/plugins/wordfence/vendor/wordfence/
   wf-waf/src/lib/utils.php
    ———————————————————————————————————————————————————
   FOUND 7 ERRORS AND 2 WARNINGS AFFECTING 7 LINES ———————————————————————————————————————————————————
   293 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 293 | 
   ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use random_bytes() or OpenSSL instead 293 | ERROR | The constant “MCRYPT_DEV_URANDOM”
   is deprecated since PHP 7.1 and removed since PHP 7.2 347 | WARNING | INI directive‘
   magic_quotes_sybase’ is deprecated since PHP 5.3 and removed since PHP 5.4 404
   | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP 7.2
   842 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6
   and removed since PHP 7.0; Use php://input instead 843 | ERROR | Global variable‘
   $HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use
   php://input instead 848 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated
   since PHP 5.6 and removed since PHP 7.0; Use php://input instead 851 | ERROR 
   | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed
   since PHP 7.0; Use php://input instead ———————————————————————————————————————————————————
 * FILE: /home/lsselca5/public_html/beta/wp-content/plugins/wordfence/lib/wfConfig.
   php
    ———————————————————————————————————— FOUND 1 ERROR AFFECTING 1 LINE ————————————————————————————————————
   649 | ERROR | Extension ‘mysql_’ is deprecated since PHP 5.5 and removed since
   PHP 7.0; Use mysqli instead ————————————————————————————————————
 * FILE: /home/lsselca5/public_html/beta/wp-content/plugins/wordfence/lib/wfUtils.
   php
    ————————————————————————————- FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE————————————————————————————-
   2073 | WARNING | INI directive ‘mbstring.func_overload’ is deprecated since PHP
   7.2 ————————————————————————————-
 * Can this be fixed?

Viewing 1 replies (of 1 total)

 *  [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * (@wfalaa)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-errors-2/#post-9907176)
 * Hi [@jrthor2](https://wordpress.org/support/users/jrthor2/)
    These referenced
   lines of the code are being used for backwards compatibility, I mean these are
   false-positive warnings, you don’t have to worry about that.
 * I’m quoting this text from the [PHP Compatibility Checker](https://wordpress.org/plugins/php-compatibility-checker/)
   page:
 * > Please note that linting code is not perfect. This plugin cannot detect unused
   > code-paths that might be used for backwards compatibility, and thus might show
   > false positives. We maintain a whitelist of plugins that can cause false positives.
   > We are continuously working to ensure the checker provides the most accurate
   > results possible.
 * Thanks.

Viewing 1 replies (of 1 total)

The topic ‘PHP 7.2 Errors’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [wfalaa](https://wordpress.org/support/users/wfalaa/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-errors-2/#post-9907176)
 * Status: resolved