Support » Plugin: Pardot » PHP 7.2 Compatability

  • Resolved drosenfeld

    (@drosenfeld)


    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

    (@cliffseal)

    Hey @drosenfeld,

    I think you’ll find this previous ticket helpful: 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.

    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.