Title: php 7.2 php warnings
Last modified: February 16, 2018

---

# php 7.2 php warnings

 *  Resolved [Amon](https://wordpress.org/support/users/justanothernoob/)
 * (@justanothernoob)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-php-warnings/)
 * i just ran WP php-compatibility-checker and got the following errors:
    FILE: /
   mnt/web117/b1/03/53373703/htdocs/blog.martin-riesner.de/wp-content/plugins/two-
   factor-authentication/includes/class.TFA.php ——————————————————————————————————————————————————-
   FOUND 30 ERRORS AFFECTING 4 LINES ——————————————————————————————————————————————————-
   503 | ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use OpenSSL instead 503 | ERROR | Extension ‘mcrypt’ is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 503 | ERROR | The constant “MCRYPT_RIJNDAEL_128” is deprecated
   since PHP 7.1 and removed since PHP 7.2 503 | ERROR | The constant “MCRYPT_MODE_CBC”
   is deprecated since PHP 7.1 and removed since PHP 7.2 503 | ERROR | Function 
   mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since PHP 7.2; Use
   OpenSSL instead 503 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 
   and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
   instead 503 | ERROR | The constant “MCRYPT_RIJNDAEL_128” is deprecated since 
   PHP 7.1 and removed since PHP 7.2 503 | ERROR | The constant “MCRYPT_MODE_CBC”
   is deprecated since PHP 7.1 and removed since PHP 7.2 512 | ERROR | Function 
   mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use
   random_bytes() or OpenSSL instead 512 | ERROR | Extension ‘mcrypt’ is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 512 | ERROR | The constant “MCRYPT_RAND” is deprecated
   since PHP 7.1 and removed since PHP 7.2 512 | ERROR | Function mcrypt_create_iv()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or 
   OpenSSL instead 512 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 
   and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available
   instead 512 | ERROR | The constant “MCRYPT_RAND” is deprecated since PHP 7.1 
   and removed since PHP 7.2 524 | ERROR | Function mcrypt_encrypt() is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 524 | ERROR | Extension‘
   mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred)
   or pecl/mcrypt once available instead 524 | ERROR | The constant “MCRYPT_RIJNDAEL_128”
   is deprecated since PHP 7.1 and removed since PHP 7.2 524 | ERROR | The constant“
   MCRYPT_MODE_CBC” is deprecated since PHP 7.1 and removed since PHP 7.2 524 | 
   ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use OpenSSL instead 524 | ERROR | Extension ‘mcrypt’ is deprecated since
   PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once
   available instead 524 | ERROR | The constant “MCRYPT_RIJNDAEL_128” is deprecated
   since PHP 7.1 and removed since PHP 7.2 524 | ERROR | The constant “MCRYPT_MODE_CBC”
   is deprecated since PHP 7.1 and removed since PHP 7.2 532 | ERROR | Function 
   mcrypt_decrypt() is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL
   instead 532 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 
   532 | ERROR | The constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 
   and removed since PHP 7.2 532 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated
   since PHP 7.1 and removed since PHP 7.2 532 | ERROR | Function mcrypt_decrypt()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 532
   | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 532 | ERROR
   | The constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed 
   since PHP 7.2 532 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since
   PHP 7.1 and removed since PHP 7.2 ——————————————————————————————————————————————————-
 * currently login on an old installation still works with php 7.2 enabled but i
   can only guess things might break if one set up a new 2fa login. is there any
   remedy planned?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-php-warnings/#post-9981952)
 * A static analysis tool only tells you what code *exists*, not what branches will
   be taken on a particular version. The plugin is already fully compatible with
   all current PHP versions, and ready for the future removal of mcrypt too.
 * David
 *  Thread Starter [Amon](https://wordpress.org/support/users/justanothernoob/)
 * (@justanothernoob)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-php-warnings/#post-9982001)
 * i see. thanks for clearing that up ^^

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘php 7.2 php warnings’ is closed to new replies.

 * ![](https://ps.w.org/two-factor-authentication/assets/icon-256x256.png?rev=1116775)
 * [Two Factor Authentication](https://wordpress.org/plugins/two-factor-authentication/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/two-factor-authentication/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/two-factor-authentication/)
 * [Active Topics](https://wordpress.org/support/plugin/two-factor-authentication/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/two-factor-authentication/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/two-factor-authentication/reviews/)

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [PHP 7.2](https://wordpress.org/support/topic-tag/php-7-2/)

 * 2 replies
 * 2 participants
 * Last reply from: [Amon](https://wordpress.org/support/users/justanothernoob/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-php-warnings/#post-9982001)
 * Status: resolved