Title: PHP 7.2 Compatibility Errors Found
Last modified: November 6, 2018

---

# PHP 7.2 Compatibility Errors Found

 *  Resolved [electriceel33](https://wordpress.org/support/users/electriceel33/)
 * (@electriceel33)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-errors-found/)
 * Background: We’re running the latest version of WP on BlueHost VPS.
 * We’re looking to upgrade our PHP to 7.2 and ran the WordPress PHP Compatability
   Checker plugin to scan for any issues, and the Pardot plugin returned 22 warnings
   affecting 6 lines of code:
 * 879 | ERROR | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use OpenSSL instead
    879 | ERROR | Extension ‘mcrypt’ is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 879 | ERROR | The constant “MCRYPT_RIJNDAEL_256” is deprecated
   since PHP 7.1 and removed since PHP 7.2 879 | ERROR | The constant “MCRYPT_MODE_ECB”
   is deprecated since PHP 7.1 and removed since PHP 7.2 880 | ERROR | Function 
   mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP 7.2; Use
   random_bytes() or OpenSSL instead 880 | ERROR | Extension ‘mcrypt’ is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 880 | ERROR | The constant “MCRYPT_RAND” is deprecated
   since PHP 7.1 and removed since PHP 7.2 883 | ERROR | Function mcrypt_encrypt()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 883
   | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 883 | ERROR
   | The constant “MCRYPT_RIJNDAEL_256” is deprecated since PHP 7.1 and removed 
   since PHP 7.2 883 | ERROR | The constant “MCRYPT_MODE_ECB” is deprecated since
   PHP 7.1 and removed since PHP 7.2 915 | ERROR | Function mcrypt_get_iv_size()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 915
   | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 915 | ERROR
   | The constant “MCRYPT_RIJNDAEL_256” is deprecated since PHP 7.1 and removed 
   since PHP 7.2 915 | ERROR | The constant “MCRYPT_MODE_ECB” is deprecated since
   PHP 7.1 and removed since PHP 7.2 916 | ERROR | Function mcrypt_create_iv() is
   deprecated since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL
   instead 916 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 
   916 | ERROR | The constant “MCRYPT_RAND” is deprecated since PHP 7.1 and removed
   since PHP 7.2 919 | ERROR | Function mcrypt_decrypt() is deprecated since PHP
   7.1 and removed since PHP 7.2; Use OpenSSL instead 919 | ERROR | Extension ‘mcrypt’
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred)
   or pecl/mcrypt once available instead 919 | ERROR | The constant “MCRYPT_RIJNDAEL_256”
   is deprecated since PHP 7.1 and removed since PHP 7.2 919 | ERROR | The constant“
   MCRYPT_MODE_ECB” is deprecated since PHP 7.1 and removed since PHP 7.2
 * Is this a false positive? I’ve checked the forum for other PHP 7.2 compatibility
   issues and those look like they’ve been resolved. Any help or planned updates
   info for this would be much appreciated.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-7-2-compatibility-errors-found%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [zbrastudios](https://wordpress.org/support/users/zbrastudios/)
 * (@zbrastudios)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-errors-found/#post-10924104)
 * Our host is requiring that we update to PHP 7.2, and we’re running into similar
   compatibility errors. Are there any plans to make this plug-in compatible with
   PHP 7.2?
 *  [OrlandoWebDev](https://wordpress.org/support/users/orlandowebdev/)
 * (@orlandowebdev)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-errors-found/#post-10926614)
 * I haven’t tested this yet, but it appears the maintainer of the plugin is using
   mcrypt has a fallback. This is a false positive by the WP Engine PHP Compatibility
   checker.
 * [https://github.com/wpengine/phpcompat/issues/212](https://github.com/wpengine/phpcompat/issues/212)
 *  Thread Starter [electriceel33](https://wordpress.org/support/users/electriceel33/)
 * (@electriceel33)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-errors-found/#post-10934961)
 * [@zbrastudios](https://wordpress.org/support/users/zbrastudios/)
    I can confirm
   that it’s a false positive like [@orlandowebdev](https://wordpress.org/support/users/orlandowebdev/)
   mentioned. We just deployed our update to PHP 7.2 and didn’t have any compatibility
   issues with the plugin. Should be good to go, cheers!
 *  Plugin Author [Cliff Seal](https://wordpress.org/support/users/cliffseal/)
 * (@cliffseal)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-errors-found/#post-10935243)
 * Thanks for stepping in here, [@orlandowebdev](https://wordpress.org/support/users/orlandowebdev/)!

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

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

 * ![](https://ps.w.org/pardot/assets/icon-256x256.png?rev=2995205)
 * [Account Engagement](https://wordpress.org/plugins/pardot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/pardot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/pardot/)
 * [Active Topics](https://wordpress.org/support/plugin/pardot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/pardot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/pardot/reviews/)

## Tags

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

 * 4 replies
 * 4 participants
 * Last reply from: [Cliff Seal](https://wordpress.org/support/users/cliffseal/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/php-7-2-compatibility-errors-found/#post-10935243)
 * Status: resolved