Title: PHP 7.2 Compatability
Last modified: February 25, 2019

---

# PHP 7.2 Compatability

 *  Resolved [drosenfeld](https://wordpress.org/support/users/drosenfeld/)
 * (@drosenfeld)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-compatability-2/)
 * Hi – Is there an ETA on updating this plugin for PHP 7.2 compatibility?
 * Our host is going to force us to upgrade our PHP and when running compatibility
   checks, we are receiving errors with this plugin which is forcing us to stay 
   on PHP 5.6.
 * We are using Pardot for lead capture so cannot afford any downtime. Can you please
   let us know how we should proceed?
 * Thank you
 * Errors below:
 * FILE: /nas/content/live/officialcm/wp-content/plugins/pardot/includes/pardot-
   settings-class.php
    ——————————————————————————————————————————————————- FOUND
   22 ERRORS AFFECTING 6 LINES ——————————————————————————————————————————————————-
   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 | Function mcrypt_get_iv_size() is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use OpenSSL 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 | 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
   | Function mcrypt_create_iv() is deprecated since PHP 7.1 and removed since PHP
   7.2; Use random_bytes() or OpenSSL instead 880 | ERROR | The constant “MCRYPT_RAND”
   is deprecated since PHP 7.1 and removed since PHP 7.2 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 | Function mcrypt_encrypt()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL 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 | 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 | Function mcrypt_get_iv_size() is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL 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 | 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 | Function mcrypt_create_iv() is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use random_bytes() or OpenSSL instead
   916 | ERROR | The constant “MCRYPT_RAND” is deprecated since PHP 7.1 and removed
   since PHP 7.2 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 | Function mcrypt_decrypt() is deprecated since PHP 7.1 and
   removed since PHP 7.2; Use OpenSSL 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

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

 *  Plugin Author [Cliff Seal](https://wordpress.org/support/users/cliffseal/)
 * (@cliffseal)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-7-2-compatability-2/#post-11252790)
 * Hey [@drosenfeld](https://wordpress.org/support/users/drosenfeld/),
 * I think you’ll find this previous ticket helpful: [https://wordpress.org/support/topic/php-7-2-compatibility-errors-found/](https://wordpress.org/support/topic/php-7-2-compatibility-errors-found/)
 * Assuming you’re running a test to determine compatibility (and not actually running
   it on 7.2), you may be seeing some false positives. The plugin checks for the
   existence of the mcrypt module before using any of these deprecated functions.
 * If that doesn’t solve it for you, please let me know.
 *  Thread Starter [drosenfeld](https://wordpress.org/support/users/drosenfeld/)
 * (@drosenfeld)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-2-compatability-2/#post-11379323)
 * Hi Cliff,
 * My apologies for the delay in getting back to you. It does appear that these 
   were false positives as we were hoping – we were able to successfully update 
   our PHP with no issues to our forms.
 * Thank you for the quick response!

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

The topic ‘PHP 7.2 Compatability’ 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/)

 * 2 replies
 * 2 participants
 * Last reply from: [drosenfeld](https://wordpress.org/support/users/drosenfeld/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-2-compatability-2/#post-11379323)
 * Status: resolved