I’m trying to develop a new plugin for Magento2. I have tried to follow this article in order to install Magento on my local machine. The problem is after installing it, I couldn’t login to the admin panel.
It sometimes redirects me to the login page immediately after clicking the login button, or it says the account sign-in was incorrect or your account disabled temporarily. Please wait and try again later), i have tried this solutions so far but nothing works:
- Deleting the value of the web/cookies/cookie_admin, web/cookies/cookie_httponly, web/cookies/cookie_lifetime, and web/cookies/cookie_path configs from core_config_data table. (actually i didn’t find these keys in the table, so i couldn’t try the solution)
- Executing php bin/magento config:set web/secure/use_in_adminhtml 1
- Setting the value of ‘web/secure/base_url’ and ‘web/unsecure/base_url’ to here is located in my
- localhost ‘http://127.0.0.1/magento/pub/’
- Switching to developer mode
- Unlocking admin account (btw, it wasn’t locked)
- Creating a new admin account
- Changing the password of existing admin account
- Disabling Magento_TwoFactoryAuth module
- Increasing max_input_vars value to 10,000, memory_limit to 4G, and max_execution_time to 18,000
- Changing the host in env.php from localhost to 127.0.0.1
- Enabling Soap, Sockets, Sodium, and Xsl extensions
- Deleting var and generated folders
- failures_num is 0 and first_failure is NULL in admin_user table
- Changing the part of the code that responsible for comparing received password with actual password in the compareStrings function in vendor/laminas/laminas-crypt/src/Utils.php class
if (function_exists('hash_equals')) { return hash_equals($expected, $actual); }
with
if (function_exists('hash_equals')) { return true; }
I’m using php v8.1.10
Any suggestions?