我有一个完美的好的和运行的magento 2.0.2 ce,但在我从php5.6更新php版本后,所有停止工作,我都会在var /报告/ errornumberfile中获得掉落输出:

a:4:{i:0;s:168:"Notice: Use of undefined constant MCRYPT_BLOWFISH - assumed 'MCRYPT_BLOWFISH' in /magento_server_dir/vendor/magento/framework/Encryption/Encryptor.php on line 397";i:1;s:3415:"#0 /magento_server_dir/vendor/magento/framework/Encryption/Encryptor.php(397): Magento\Framework\App\ErrorHandler->handler(8, 'Use of undefine...', '/var/www/html/m...', 397, Array)
#1 /magento_server_dir/vendor/magento/framework/Encryption/Encryptor.php(313): Magento\Framework\Encryption\Encryptor->getCrypt('ee4e3ea10ae0cdd...', 0, false)
#2 /magento_server_dir/vendor/magento/module-config/Model/Config/Backend/Encrypted.php(107): Magento\Framework\Encryption\Encryptor->decrypt('PayPal')
#3 /magento_server_dir/vendor/magento/framework/App/Config/MetadataProcessor.php(86): Magento\Config\Model\Config\Backend\Encrypted->processValue('PayPal')
#4 /magento_server_dir/vendor/magento/framework/App/Config/Data.php(32): Magento\Framework\App\Config\MetadataProcessor->process(Array)
#5 /magento_server_dir/vendor/magento/framework/ObjectManager/Factory/AbstractFactory.php(99): Magento\Framework\App\Config\Data->__construct(Object(Magento\Framework\App\Config\MetadataProcessor), Array)
#6 /magento_server_dir/vendor/magento/framework/ObjectManager/Factory/Dynamic/Developer.php(89): Magento\Framework\ObjectManager\Factory\AbstractFactory->createObject('Magento\\Framewo...', Array)
#7 /magento_server_dir/vendor/magento/framework/ObjectManager/ObjectManager.php(57): Magento\Framework\ObjectManager\Factory\Dynamic\Developer->create('Magento\\Framewo...', Array)
#8 /magento_server_dir/vendor/magento/framework/App/Config/DataFactory.php(46): Magento\Framework\ObjectManager\ObjectManager->create('Magento\\Framewo...', Array)
#9 /magento_server_dir/vendor/magento/framework/App/Config/ScopePool.php(90): Magento\Framework\App\Config\DataFactory->create(Array)
#10 /magento_server_dir/vendor/magento/module-backend/App/Config.php(41): Magento\Framework\App\Config\ScopePool->getScope('default', NULL)
#11 /magento_server_dir/vendor/magento/module-backend/App/Area/FrontNameResolver.php(82): Magento\Backend\App\Config->getValue('admin/url/use_c...')
#12 /magento_server_dir/vendor/magento/module-backend/Helper/Data.php(206): Magento\Backend\App\Area\FrontNameResolver->getFrontName(false)
#13 /magento_server_dir/vendor/magento/module-backend/App/Request/PathInfoProcessor.php(46): Magento\Backend\Helper\Data->getAreaFrontName()
#14 /magento_server_dir/var/generation/Magento/Backend/App/Request/PathInfoProcessor/Proxy.php(95): Magento\Backend\App\Request\PathInfoProcessor->process(Object(Magento\Framework\App\Request\Http), '/index.login.ac...')
#15 /magento_server_dir/vendor/magento/framework/App/Request/Http.php(161): Magento\Backend\App\Request\PathInfoProcessor\Proxy->process(Object(Magento\Framework\App\Request\Http), '/index.login.ac...')
#16 /magento_server_dir/vendor/magento/framework/HTTP/PhpEnvironment/Request.php(194): Magento\Framework\App\Request\Http->setPathInfo()
#17 /magento_server_dir/vendor/magento/framework/App/Request/Http.php(204): Magento\Framework\HTTP\PhpEnvironment\Request->getPathInfo()
#18 /magento_server_dir/vendor/magento/framework/App/Http.php(110): Magento\Framework\App\Request\Http->getFrontName()
#19 /magento_server_dir/vendor/magento/framework/App/Bootstrap.php(258): Magento\Framework\App\Http->launch()
#20 /magento_server_dir/pub/index.php(37): Magento\Framework\App\Bootstrap->run(Object(Magento\Framework\App\Http))
#21 {main}";s:3:"url";s:19:"/index.login.action";s:11:"script_name";s:10:"/index.php";}
.

有人知道解决这个问题吗?任何帮助都得到了赞赏。谢谢!!

有帮助吗?

解决方案

你是如何安装php7的?你在运行什么操作系统?您是否使用php-mod或php-fpm?

如果您正在运行Ubuntu并且您使用PPA安装,则尝试此

检查mcrypt模块是否存在:

php -m | grep mcrypt 
.

如果不是,请安装mcrypt:

sudo apt-get install php7.0-mcrypt
. 然后启用模块:

phpenmod mcrypt
. 然后重新启动PHP。

许可以下: CC-BY-SA归因
scroll top