简体   繁体   English

登录 Magento 时出错 2:开源管理面板

[英]Error Logging Into Magento 2: Open Source admin panel

SO I followed instructions here: https://www.thecoachsmb.com/6-steps-to-install-magento2-4-2-on-xampp-windows-using-composer/所以我在这里按照说明进行操作: https://www.thecoachsmb.com/6-steps-to-install-magento2-4-2-on-xampp-windows-using-composer/

to install Magento 2 into a fresh install of xammppv3.3.0 running Php7.将 Magento 2 安装到运行 Php7 的全新安装的 xammppv3.3.0 中。 Once its time to get into the Admin account, It first said the information was incorrect or locked.一旦进入管理员帐户,它首先说信息不正确或被锁定。 I ran the commands我运行了命令

(php bin/magento admin:user:unlock <username>)
and
SET @salt = MD5(UNIX_TIMESTAMP());
UPDATE admin_user SET password = CONCAT(SHA2(CONCAT(@salt, 'NewP@ssword'), 256), ':', @salt, ':1') WHERE username = 'adminusername';

So i look into the log and see the following message:所以我查看日志并看到以下消息:

main.CRITICAL: This is not implemented, as it is not possible to implement Argon2i with acceptable performance in pure-PHP {"report_id":"33485650bd9de85e8178e26a25bd0f1347c7c9d625b14c2b7167b732b909c9b0","exception":"[object] (SodiumException(code: 0): This is not implemented, as it is not possible to implement Argon2i with acceptable performance in pure-PHP at D:\xammp\htdocs\magento\vendor\paragonie\sodium_compat\src\Compat.php:1939)"} [] main.CRITICAL:这没有实现,因为在纯 PHP {"report_id":"33485650bd9de85e8178e26a25bd0f1347c7c9d625b14c2b7167b732b909c9b0","exception":"[object] (SodiumException(code: 0): This未实现,因为在 D:\xammp\htdocs\magento\vendor\paragonie\sodium_compat\src\Compat.php:1939)"} [] 的纯 PHP 中无法实现具有可接受性能的 Argon2i

According to all searches ive done, this is due to sodium not being used in my PHP, but it is:根据我所做的所有搜索,这是由于我的 PHP 中没有使用钠,但它是:

php -m

the ';'这 ';' in front of sodium in my php.ini is removed, but I still cant get into magento admin.在我的 php.ini 中的钠前面被删除,但我仍然无法进入 magento 管理员。 Any help?有什么帮助吗?

Are you running php 7.4?您正在运行 php 7.4 吗?

Also, you've removed the ";"此外,您还删除了“;” from sodium in your php.ini, but have you got the extension installed in XAMPP?来自 php.ini 中的钠,但是您是否在 XAMPP 中安装了扩展程序?

Edit: apologies I've just spotted you have checked the extension is installed.编辑:抱歉,我刚刚发现您已经检查了扩展程序是否已安装。 Are you running PHP 7.4 or later?您运行的是 PHP 7.4 或更高版本吗?

If you are using PHP version 7.4 please switch to PHP version 7.3.如果您使用的是 PHP 7.4 版,请切换到 PHP 7.3 版。 For version 7.3 the stability will be higher with the versions of Magento (it is true for the current latest Magento versions)对于 7.3 版本,Magento 版本的稳定性会更高(当前最新的 Magento 版本也是如此)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM