Title: Compatibility issues with PHP 7
Last modified: March 29, 2019

---

# Compatibility issues with PHP 7

 *  Resolved [seanking2919](https://wordpress.org/support/users/seanking2919/)
 * (@seanking2919)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/compatibility-issues-with-php-7/)
 * Hi guys,
 * So I’m looking to upgrade to PHP 7 on all my sites soon. And I did a compatibility
   issues test and here’s the errors I got for this plugin:
 * In the file plugins/two-factor-authentication/includes/class-simba-tfa.php
    ——————————————————————————————————————————————————-
   FOUND 30 ERRORS AFFECTING 4 LINES ——————————————————————————————————————————————————-
   657 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 657 | 
   ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use OpenSSL instead 657 | ERROR | The constant “MCRYPT_RIJNDAEL_128”
   is deprecated since PHP 7.1 and removed since PHP 7.2 657 | ERROR | The constant“
   MCRYPT_MODE_CBC” is deprecated since PHP 7.1 and removed since PHP 7.2 657 | 
   ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 657 | ERROR
   | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use OpenSSL instead 657 | ERROR | The constant “MCRYPT_RIJNDAEL_128”
   is deprecated since PHP 7.1 and removed since PHP 7.2 657 | ERROR | The constant“
   MCRYPT_MODE_CBC” is deprecated since PHP 7.1 and removed since PHP 7.2 675 | 
   ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 675 | ERROR
   | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP
   7.2; Use random_bytes() or OpenSSL instead 675 | ERROR | The constant “MCRYPT_RAND”
   is deprecated since PHP 7.1 and removed since PHP 7.2 675 | ERROR | Extension‘
   mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred)
   or pecl/mcrypt once available instead 675 | ERROR | Function mcrypt_create_iv()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or 
   OpenSSL instead 675 | ERROR | The constant “MCRYPT_RAND” is deprecated since 
   PHP 7.1 and removed since PHP 7.2 687 | ERROR | Extension ‘mcrypt’ is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 687 | ERROR | Function mcrypt_encrypt() is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 687 | ERROR | The
   constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed since 
   PHP 7.2 687 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 
   7.1 and removed since PHP 7.2 687 | ERROR | Extension ‘mcrypt’ is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 687 | ERROR | Function mcrypt_encrypt() is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 687 | ERROR | The
   constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed since 
   PHP 7.2 687 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 
   7.1 and removed since PHP 7.2 695 | ERROR | Extension ‘mcrypt’ is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 695 | ERROR | Function mcrypt_decrypt() is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 695 | ERROR | The
   constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed since 
   PHP 7.2 695 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 
   7.1 and removed since PHP 7.2 695 | ERROR | Extension ‘mcrypt’ is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 695 | ERROR | Function mcrypt_decrypt() is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 695 | ERROR | The
   constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed since 
   PHP 7.2 695 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 
   7.1 and removed since PHP 7.2 ——————————————————————————————————————————————————-

Viewing 1 replies (of 1 total)

 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/compatibility-issues-with-php-7/#post-11369733)
 * Hi,
 * That’s not a compatibility test; it’s a report of what code exists within the
   plugin. The plugin is compatible with PHP 5.3 up to 7.3, but not all that code
   is run on any specific version. So, you’ll be fine.
 * N.B. “Deprecated” means “still works in this version, but won’t work in a future
   version”.
 * David

Viewing 1 replies (of 1 total)

The topic ‘Compatibility issues with PHP 7’ 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-7](https://wordpress.org/support/topic-tag/php-7/)

 * 1 reply
 * 2 participants
 * Last reply from: [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/compatibility-issues-with-php-7/#post-11369733)
 * Status: resolved