Function mcyrpt_module_open() is deprecated in Magento 2 and PHP 7.1- Solution

MAGENTO 2 & PHP 7.1 FIX: FUNCTION MCYRPT_MODULE_OPEN() IS DEPRECATED

While migrating my website to a new server running Magento 2 and PHP 7.1. I ran into this issue: Function mcyrpt_module_open() is deprecated
And I tried this solution, it worked!!!
I needed to do this in about 7 places in the file below to add @ symbol to sort this out.
Magento/Framework/Encryption/Crypt.php

Dont know the line number of the code? Dont worry. Just use the command below:

php bin/magento cache:flush

That gives the exact line number to fix the code.

For Example:

[Exception]
Deprecated Functionality: Function mcrypt_module_open() is deprecated in
/home/mageext1/public_html/lib/internal/Magento/Framework/Encryption/Crypt.php on line 54

Deprecated Functionality: Function mcrypt_generic_deinit() is deprecated in
/home/mageext1/public_html/lib/internal/Magento/Framework/Encryption/Crypt.php on line 93

Helpful solution when you are migrating the site to a new server or upgrading Magento.



Magento Commerce Magento Enterprise Edition Magento Community Edition best magento gift wrap plugin top rated magento gift wrap extension magento 2.x magento migration from 1.x to magento 2.x magento upgrade magento 2 magento2 increase conversion rate magento extensions magento store checkout product search tyre search tire search make model year search one page checkout magento extensions xmas offer for magento gift wrap one page checkout year make model search tyre search tire search product selector custom shipping rate Magento Events Magento Live UK 2016 Imagine 2017 Halloween Day Offer Magento Extensions Gift wrap One Page Checkout Product Selector Year Make Model magento extensions offer for magento extensions gift wrap quick one page checkout year make model product selector custom stock status Easter Offer Magento Extensions Gift wrap One Page Checkout Product Selector Year Make Model magento 2.0 features magento 2.0 highlights magento 2.0 technical improvements Valentine Day Offer Magento Extensions Gift wrap One Page Checkout Product Selector Year Make Model Halloween Day Offer Magento Extensions Gift wrap One Page Checkout Product Selector Year Make Model Friednship Day Offer Magento Extensions Gift wrap One Page Checkout Product Selector Year Make Model FIFA Offer Magento Extensions Gift wrap One Page Checkout Product Selector Year Make Model magento extensions magento new releases what is magento? magento extensions magento extension indian it industry magento products software marketting software selling magento magento ebay conversion shopping cart ecommerce online selling magento ebay extensions magento ebay extensions ebay magento xcommerce magento extensions ecommerce ebusiness online shopping magento extensions why magento what is magento?

Related Products

We can't find products matching the selection.