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/mywebsite.co.uk/httpdocs/lib/Varien/Crypt/Mcrypt.php on line 63

PLEASE HELP! Thank you very much


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.


| improve this answer | |
  • Thanks so much for your reply, is there a command I can install this with on Ubuntu server 12? – Ben Anderson Sep 15 '14 at 15:23
  • See my updated answer – philwinkle Sep 15 '14 at 15:31
  • i have face same issue in few days ago. its php5-mcrypt missing issue – Amit Bera Sep 15 '14 at 17:43
  • 7
    TIL you may need to run php5enmod mcrypt on some systems after installing mcrypt via the system's package manager. – kojiro Nov 18 '14 at 0:18
  • If apt-get install php5-mcrypt doesn't work, you can try apt-get install php53-mcrypt. – Adarsh Khatri Oct 13 '15 at 23:17

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
| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.