Use of undefined constant MCRYPT_BLOWFISH

六眼飞鱼酱① 提交于 2019-12-03 11:26:09
phazei

No sooner do I speak do I find a solution, heh.

This worked for me: mCrypt not present after Ubuntu upgrade to 13.10

needed to go: sudo php5enmod mcrypt

even though it appeared to already be enabled, that fixed it.

John Yin

When I try to enable Express Paypal method, I came across this error.

Error: Use of undefined constant MCRYPT_BLOWFISH - assumed MCRYPT_BLOWFISH in /var/www/.../lib/Varien/Crypt/Mcrypt.php on line 56

Firstly, we can run this cmd to check the mcrypt is running or not:

php --ri mcrypt

If mcrypt is not enabled, we can use following to enable it like others mentioned

sudo php5enmod mcrypt

As well, we had better to check php5-mcrypt package is installed or not

dpkg -l | grep php5-mcrypt

While if you install fastcgi and php-fpm like us, we have to restart the php-fpm service, and apache2 service as well.

sudo service apache2 restart
sudo service php-fpm restart
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!