Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
magento 2全新安装后显示的url不正确,存在后端登录错误_Url_Wamp_Backend_Magento2_Magento 2.0 - Fatal编程技术网

magento 2全新安装后显示的url不正确,存在后端登录错误

magento 2全新安装后显示的url不正确,存在后端登录错误,url,wamp,backend,magento2,magento-2.0,Url,Wamp,Backend,Magento2,Magento 2.0,我已经在wamp环境中安装了最新版本的magento 2.0。启用了运行它所需的大量php和apache模块。比如重写模块和mcrypt.so。 我使用的是wamp,使用的php版本是5.5和Apache2.4。 在这个新安装中导航时,我仍然有不正确的url。 它们是: 示例后端登录 http://domain/admin_ping/admin/index/index/key/af9c4250635a6d9ff365d4f4eb65bffd75a032bac/ 忘记密码 http://doma

我已经在wamp环境中安装了最新版本的magento 2.0。启用了运行它所需的大量php和apache模块。比如重写模块和mcrypt.so。 我使用的是wamp,使用的php版本是5.5和Apache2.4。 在这个新安装中导航时,我仍然有不正确的url。 它们是: 示例后端登录

http://domain/admin_ping/admin/index/index/key/af9c4250635a6d9ff365d4f4eb65bffd75a032bac/
忘记密码

http://domain/admin_ping/admin/auth/forgotpassword/
虽然我确信我有正确的登录名/密码,但我无法登录到后端。我有以下错误:

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

第一次安装magento并设置密码和确认密码时,magento安装程序的问题在于它在数据库中存储了错误的密码

解决方案

http://domain/admin_ping/admin/index/index/key/af9c4250635a6d9ff365d4f4eb65bffd75a032bac/
编辑文件:
\vendor\zendframework\zend crypt\src\Utils.php

并回显变量
$expected
$actual
并检查它们是否具有相等的值

如果是,则不匹配;更改第35行:

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

if (function_exists('hash_equals')) {
    return true;
}
使用任何密码直接访问magento admin,然后更改密码并还原代码更改


这个解决方案对我很有效。

当您第一次安装magento并设置密码和确认密码时,magento安装程序的问题在于它在数据库中存储了错误的密码

解决方案

http://domain/admin_ping/admin/index/index/key/af9c4250635a6d9ff365d4f4eb65bffd75a032bac/
编辑文件:
\vendor\zendframework\zend crypt\src\Utils.php

并回显变量
$expected
$actual
并检查它们是否具有相等的值

如果是,则不匹配;更改第35行:

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

if (function_exists('hash_equals')) {
    return true;
}
使用任何密码直接访问magento admin,然后更改密码并还原代码更改

这个解决方案对我有效。

试试看我被重定向到此url试试看我被重定向到此url