Hot answers tagged

13

How did you installed php7 ? What OS are you running? Are you using php-mod or php-fpm? If you are running ubuntu and you installed using PPA, then try this Check if mcrypt module is there: php -m | grep mcrypt If not then install mcrypt: sudo apt-get install php7.0-mcrypt Then enable the module: phpenmod mcrypt Then restart php.


4

I recommend to restart the web server. Run php file with: <?php phpinfo(); and check whether there is a mcrypt extension, if no check path for right php.ini file.


3

MCrypt is not used for password and URL key hashing but for encrypting and decrypting sensitive data such as API passwords, e.g. stored in / retrieved from the system configuration. All MCrypt functionality is encapsulated in Varien_Crypt_Mcrypt. This class again is accessed via Mage_Core_Model_Encryption. The encryption model that should be used throughout ...


2

It looks like you are missing the mcrypt php extension. I've read in various places that it's not that straight forward to install mcrypt on php 7.2. But you can follow this tutorial on how to do it: https://www.techrepublic.com/article/how-to-install-mcrypt-for-php-7-2/


1

Warning : This feature was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0. Alternatives to this feature include: Sodium (available as of PHP 7.2.0) OpenSSL https://www.php.net/manual/en/intro.mcrypt.php


1

You could patch the Magento code (for example via the app/local codepool) and replace the mcrypt functionality by those from PHPSecLib which offer an implementation of the functionality in pure PHP http://phpseclib.sourceforge.net/


1

According to Inchoo (they guys that created the Magento patch for PHP 7), the PHP 7.2 patch was created before the 1.9.3.10 version but not included. However, Magento 1.9.4.0 will include a revised core with the PHP 7.2 patch built in. Source: Link to github


1

Magento 2.1 isn't made for php7.2 … It looks like you're using php7.2. so just switch back to php7.1 oder php7.0 and it should work fine :-)


1

sudo apt-get install php5.6-mcrypt sudo service apache2 graceful Try above commands if it's still not working.


1

IF you have access to SSH for your server install php5-mcrypt $ sudo apt-get install php5-mcrypt or $ yum install php5-mcrypt depends of your linux ditribution.


Only top voted, non community-wiki answers of a minimum length are eligible