Call to undefined function mcrypt_module_open() in lib/Varien/Crypt/Mcrypt.php on line 63

My checkout suddenly goes to a white page, it never used to do this!

The error I am getting is

Call to undefined function mcrypt_module_open() in /var/www/vhosts/ on line 63

PLEASE HELP! Thank you very much


In most of the cases, this issue comes in php updated version i.e. php7 and if mcrypt is not installed -

to install it, follow the below steps:

sudo apt-get update
sudo apt-get install mcrypt php7.0-mcrypt
sudo apt-get upgrade
sudo service apache2 restart

This could be caused by a recent upgrade to PHP and you are missing PHP Mcrypt module.

To install it's usually a simple apt-get install php5-mcrypt on Ubuntu/Debian. A Google search should turn up the correct instructions for your PHP and OS version.

Tags: Checkout / Error

Similar questions

Magento Fatal error: include(): Cannot redeclare class varien_profiler in /lib/Varien/Autoload.php on line 93
I just copied over our files and database. Everything seems to be there with the right permissions and linked up to the right database and the right database pointing to the right path. Any ideas why I get this error?
Function name must be a string in .../lib/Varien/File/Uploader.php:259 when I try to upload an image
I get this error: ,when I try to upload an image. The media directory has been set to writable with chmod -R 777 media . What can be the cause for this?
Call to a member function rewrite() on a non-object in app/code/core/Mage/Core/Controller/Varien/Front.php on line 165
My site is not loading, as I get this error message when type in the URL: Fatal error: Call to a member function rewrite() on a non-object in app/code/core/Mage/Core/Controller/Varien/Front.php on line 165 Does any one familiar with what could be wrong here?
Why does Magento does not include /lib/mcrypt_compat/mcrypt.php
Magento released a patch for magento 1.9.3.x to be able to support php7.2. The patch includes /lib/mcrypt_compat/mcrypt.php so that php7.2 which does not have the mcrypt module (at least officially), can run without problems. However i just notice that Magento actually does not include this mcrypt lib, which means you either have to instal...
I edit lib varien file Multiselect.php working perfect in local not working in live
I recently edited Multiselect file. its working fine in localhost but doesn't work on live. Is there any other Multiselect which is used in magento. Also I debug the code ( Multiselect ). I added exit in localhost, but its not exit-ing on live. There is some ambiguity.
invalid method in /lib/Varien/Object.php after update, causing maintenance mode
I just updated some modules and now my webshop keeps showing the maintenance page, whilst there is not maintenance.flag file in the root folder. I checked the /var/log and in the exception.log it keeps showing this error: When I check the Object.php file I indeed notice that the callParentToHTML method does not exist. And according to the documenta...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.