Title: PHP 7 Errors
Last modified: March 12, 2019

---

# PHP 7 Errors

 *  Resolved [ChrisHPZ](https://wordpress.org/support/users/chrishpz/)
 * (@chrishpz)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-errors-9/)
 * Hi Ecwid. In preparation for PHP 7, I ran your plugin through PHP Compatibility
   Checker. Below are the errors it lists. I’m using the latest version of the plugin.
   Is there something that can be done?
 * 818 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead
    818 |
   ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use OpenSSL instead 851 | ERROR | Extension ‘mcrypt’ is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 851 | ERROR | Function mcrypt_generic_init() is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 854 | ERROR | Extension‘
   mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred)
   or pecl/mcrypt once available instead 854 | ERROR | Function mcrypt_generic()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 859
   | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 859 | ERROR
   | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP
   7.2; Use OpenSSL instead 868 | ERROR | Extension ‘mcrypt’ is deprecated since
   PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once
   available instead 868 | ERROR | Function mcrypt_generic() is deprecated since
   PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 878 | ERROR | Extension‘
   mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred)
   or pecl/mcrypt once available instead 878 | ERROR | Function mcrypt_generic()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 881
   | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 881 | ERROR
   | Function mcrypt_generic_init() is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use OpenSSL instead 1127 | ERROR | Extension ‘mcrypt’ is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 1127 | ERROR | Function mcrypt_generic_init() is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1155 | ERROR | Extension‘
   mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred)
   or pecl/mcrypt once available instead 1155 | ERROR | Function mcrypt_generic()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1160
   | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1160 | ERROR
   | Function mcrypt_generic() is deprecated since PHP 7.1 and removed since PHP
   7.2; Use OpenSSL instead 1169 | ERROR | Function mdecrypt_generic() is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1172 | ERROR | Extension‘
   mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred)
   or pecl/mcrypt once available instead 1172 | ERROR | Function mcrypt_generic_init()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1634
   | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1634 | ERROR
   | Function mcrypt_list_algorithms() is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use OpenSSL instead 1713 | ERROR | Extension ‘mcrypt’ is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 1713 | ERROR | Function mcrypt_module_close() is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1714 | ERROR | Extension‘
   mcrypt’ is deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred)
   or pecl/mcrypt once available instead 1714 | ERROR | Function mcrypt_module_close()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1719
   | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1719 | ERROR
   | Function mcrypt_module_close() is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use OpenSSL instead 1832 | ERROR | The constant “MCRYPT_MODE_ECB” is
   deprecated since PHP 7.1 and removed since PHP 7.2 1833 | ERROR | The constant“
   MCRYPT_MODE_CBC” is deprecated since PHP 7.1 and removed since PHP 7.2 1835 |
   ERROR | The constant “MCRYPT_MODE_NOFB” is deprecated since PHP 7.1 and removed
   since PHP 7.2 1836 | ERROR | The constant “MCRYPT_MODE_STREAM” is deprecated 
   since PHP 7.1 and removed since PHP 7.2 1839 | ERROR | Extension ‘mcrypt’ is 
   deprecated since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or
   pecl/mcrypt once available instead 1839 | ERROR | Function mcrypt_module_open()
   is deprecated since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1840
   | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed since PHP
   7.2; Use openssl (preferred) or pecl/mcrypt once available instead 1840 | ERROR
   | Function mcrypt_module_open() is deprecated since PHP 7.1 and removed since
   PHP 7.2; Use OpenSSL instead 1846 | ERROR | Extension ‘mcrypt’ is deprecated 
   since PHP 7.1 and removed since PHP 7.2; Use openssl (preferred) or pecl/mcrypt
   once available instead 1846 | ERROR | Function mcrypt_module_open() is deprecated
   since PHP 7.1 and removed since PHP 7.2; Use OpenSSL instead 1846 | ERROR | The
   constant “MCRYPT_MODE_ECB” is deprecated since PHP 7.1 and removed since PHP 
   7.2 1851 | ERROR | Extension ‘mcrypt’ is deprecated since PHP 7.1 and removed
   since PHP 7.2; Use openssl (preferred) or pecl/mcrypt once available instead 
   1851 | ERROR | Function mcrypt_generic_init() is deprecated since PHP 7.1 and
   removed since PHP 7.2; Use OpenSSL instead

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

 *  Plugin Author [Ecwid by Lightspeed Ecommerce Shopping Cart](https://wordpress.org/support/users/ecwid/)
 * (@ecwid)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-errors-9/#post-11307716)
 * Hi Chris,
 * Thanks for sending the report over to us. The Ecwid plugin works properly with
   the latest versions of PHP. All of the errors listed (even those marked with ‘
   ERROR’) are not actually affecting the plugin. We tested it on the newest PHP
   versions and made sure everything works fine.
 * The thing is the automatic validator you used made a static analysis — it just
   saw the outdated function in the code, but it doesn’t know whether that function
   is actually used or not. The functionality itself has fallbacks for the environments
   where those functions are not supported. So you can use it with PHP 7.1, 7.2,
   it works fine.
 * Anyway, it’s better to not see any warnings even during a check, so we will work
   on preventing those from appearing.
 * Thanks again,
    -  This reply was modified 7 years, 2 months ago by [Ecwid by Lightspeed Ecommerce Shopping Cart](https://wordpress.org/support/users/ecwid/).
 *  Thread Starter [ChrisHPZ](https://wordpress.org/support/users/chrishpz/)
 * (@chrishpz)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/php-7-errors-9/#post-11308271)
 * Yeah that’s what I was thinking too. I didn’t see anything being compromised 
   and certainly didn’t experience any fatal errors with the plugin. Many thanks
   for the reply. Marking as resolved.
 *  [makfruit](https://wordpress.org/support/users/makfruit/)
 * (@makfruit)
 * [7 years, 1 month ago](https://wordpress.org/support/topic/php-7-errors-9/#post-11433799)
 * Hi [@chrishpz](https://wordpress.org/support/users/chrishpz/),
 * A quick update here: we fixed it in the latest plugin update. Now the abovementioned
   notices should not appear in the automatic validators.
 * Thanks for reporting the issue,

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

The topic ‘PHP 7 Errors’ is closed to new replies.

 * ![](https://ps.w.org/ecwid-shopping-cart/assets/icon.svg?rev=3110860)
 * [Ecwid by Lightspeed Ecommerce Shopping Cart](https://wordpress.org/plugins/ecwid-shopping-cart/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ecwid-shopping-cart/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ecwid-shopping-cart/)
 * [Active Topics](https://wordpress.org/support/plugin/ecwid-shopping-cart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ecwid-shopping-cart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ecwid-shopping-cart/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [makfruit](https://wordpress.org/support/users/makfruit/)
 * Last activity: [7 years, 1 month ago](https://wordpress.org/support/topic/php-7-errors-9/#post-11433799)
 * Status: resolved