500 error when saving ‘Payment Methods’

Please LogIn to Reply!

Post By: admin | 26-01-2012 06:35 Reply



I am getting a 500 server error when saving ‘Payment Methods’ in magento backend, and it’s making me tear my hair out!

Server error
The website encountered an error while retrieving http://www.mysite.co.uk/index.php/admin/system_config/save/section/payment/key/c4ede3049935c32a9d441578fa7ee195/. It may be down for maintenance or configured incorrectly.
Here are some suggestions:
Reload this web page later.
HTTP Error 500 (Internal Server Error): An unexpected condition was encountered while the server was attempting to fulfil the request.

Here is the error log:

2012-09-01T10:51:12+00:00 ERR (3): Notice: Use of undefined constant MCRYPT_BLOWFISH assumed 'MCRYPT_BLOWFISH'  in /var/www/vhosts/mysite.co.uk/httpdocs/lib/Varien/Crypt/Mcrypt.php on line 56

-09-01T10:51:12+00:00 ERR (3): Notice: Use of undefined constant MCRYPT_MODE_ECB assumed 'MCRYPT_MODE_ECB'  in /var/www/vhosts/mysite.co.uk/httpdocs/lib/Varien/Crypt/Mcrypt.php on line 60

-09-01T10:53:18+00:00 ERR (3): Notice: Use of undefined constant MCRYPT_BLOWFISH assumed 'MCRYPT_BLOWFISH'  in /var/www/vhosts/mysite.co.uk/httpdocs/lib/Varien/Crypt/Mcrypt.php on line 56

-09-01T10:53:18+00:00 ERR (3): Notice: Use of undefined constant MCRYPT_MODE_ECB assumed 'MCRYPT_MODE_ECB'  in /var/www/vhosts/mysite.co.uk/httpdocs/lib/Varien/Crypt/Mcrypt.php on line 60

I have tried the 500 error guide as per http://www.techjam.gr/2012/magento/solve-magento-500-internal-server-errors/ but this has not helped.

Thanks in advance for your help!


EDIT: I have recently moved my site from shared hosting to a VPS, maybe this is relevant?



I have run the magento-check.php and the following is returned:

Your server does not meet the requirements for Magento.The following requirements failed:


It would therefore appear that my VPS does not have mycrypt installed. Could someone please talk me through mycrypt installation? I have a linux VPS running plesk.

Many thanks,


`Reply Or Comment!
Please LogIn to Reply!