magento2 QA

6.77K 浏览M2安装设置

magento2 QA

遇到的一些错误整理

1,执行bin/magento setup:upgrade 报错:

[Exception] Warning: file_get_contents(/mnt/home/iggo/magento/mage.com/public_html/var/di/setup.ser): failed to open stream: No such file o r directory in /mnt/home/iggo/magento/sgn10sport.mage.fenzsoft.com/public_html/vendor/magento/framework/App/ObjectManager/ConfigLoader/Compiled.php on line 28

解决办法:

删除var/generation, var/cache and var/di

sudo rm generation/* var/generation/* var/cache/* var/di/* -rf

2,后台admin登陆报错

You did not sign in correctly or your account is temporarily disabled.

解决办法:

Go to this file path and vendorzendframeworkzend-cryptsrcUtils.php and echo $expected and $actual variable and check both are same or not if both variable are not match then change line no 35

if (function_exists('hash_equals')) { return hash_equals($expected, $actual); }

To

if (function_exists('hash_equals')) { return true; }

for direct access to magento admin with any password and then change password and revert back code changes

0