Title: Plugin is using PHP deprecated functions
Last modified: December 26, 2020

---

# Plugin is using PHP deprecated functions

 *  Resolved [Manni02](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-using-php-deprecated-functions/)
 * Hi there,
 * Great plugin, I’m considering buying the premium version, but it looks like the
   plugin is using many deprecated PHP functions, which might explain some issues
   I’m experiencing with PHP 7.3.
 * Here is the full report from PHP compatibility checker:
 * FILE: /homepages/41/d355863502/htdocs/wp-content/plugins/two-factor-authentication/
   includes/class-simba-tfa.php
    ——————————————————————————————————————————————————-
   FOUND 30 ERRORS AFFECTING 4 LINES ——————————————————————————————————————————————————-
   723 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 723 | 
   ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use OpenSSL instead 723 | ERROR | The constant “MCRYPT_RIJNDAEL_128”
   is deprecated since PHP 7.1 and removed since PHP 7.2 723 | ERROR | The constant“
   MCRYPT_MODE_CBC” is deprecated since PHP 7.1 and removed since PHP 7.2 723 | 
   ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 723 | ERROR
   | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use OpenSSL instead 723 | ERROR | The constant “MCRYPT_RIJNDAEL_128”
   is deprecated since PHP 7.1 and removed since PHP 7.2 723 | ERROR | The constant“
   MCRYPT_MODE_CBC” is deprecated since PHP 7.1 and removed since PHP 7.2 741 | 
   ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP 
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 741 | ERROR
   | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP
   7.2; Use random_bytes() or OpenSSL instead 741 | ERROR | The constant “MCRYPT_RAND”
   is deprecated since PHP 7.1 and removed since PHP 7.2 741 | ERROR | Extension‘
   mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred)
   or pecl/mcrypt once available instead 741 | ERROR | Function mcrypt_create_iv()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or 
   OpenSSL instead 741 | ERROR | The constant “MCRYPT_RAND” is deprecated since 
   PHP 7.1 and removed since PHP 7.2 753 | ERROR | Extension ‘mcrypt’ is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 753 | ERROR | Function mcrypt_encrypt() is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 753 | ERROR | The
   constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed since 
   PHP 7.2 753 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 
   7.1 and removed since PHP 7.2 753 | ERROR | Extension ‘mcrypt’ is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 753 | ERROR | Function mcrypt_encrypt() is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 753 | ERROR | The
   constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed since 
   PHP 7.2 753 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 
   7.1 and removed since PHP 7.2 761 | ERROR | Extension ‘mcrypt’ is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 761 | ERROR | Function mcrypt_decrypt() is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 761 | ERROR | The
   constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed since 
   PHP 7.2 761 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 
   7.1 and removed since PHP 7.2 761 | ERROR | Extension ‘mcrypt’ is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 761 | ERROR | Function mcrypt_decrypt() is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 761 | ERROR | The
   constant “MCRYPT_RIJNDAEL_128” is deprecated since PHP 7.1 and removed since 
   PHP 7.2 761 | ERROR | The constant “MCRYPT_MODE_CBC” is deprecated since PHP 
   7.1 and removed since PHP 7.2 ——————————————————————————————————————————————————-

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

 *  Plugin Author [David Anderson / Team Updraft](https://wordpress.org/support/users/davidanderson/)
 * (@davidanderson)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-using-php-deprecated-functions/#post-13841438)
 * Hi manni02,
 * Please refer to the stuck topic answering this question listed at the top of 
   the support forum: [https://wordpress.org/support/plugin/two-factor-authentication/](https://wordpress.org/support/plugin/two-factor-authentication/)
 * Thank you,
    David
 *  Thread Starter [Manni02](https://wordpress.org/support/users/manni02/)
 * (@manni02)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-using-php-deprecated-functions/#post-13841759)
 * Hi David,
 * Thanks for the reply.
 * So I guess the warnings are thrown because the plugin supports older PHP version
   with deprecated functions.
 * I guess the errors I’m seeing come from another source, possibly a conflict with
   another plugin.
 * Good to know the plugin supports PHP 7.3 and beyond.

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

The topic ‘Plugin is using PHP deprecated functions’ 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 compatibility](https://wordpress.org/support/topic-tag/php-compatibility/)

 * 2 replies
 * 2 participants
 * Last reply from: [Manni02](https://wordpress.org/support/users/manni02/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/plugin-is-using-php-deprecated-functions/#post-13841759)
 * Status: resolved