After login with correct credential, I cannot login into admin panel. Here is the error message I am getting:
1 exception(s):
Exception #0 (Exception): Notice: Undefined offset: 2 in D:XampphtdocsdemowebsesprojnamevendormagentoframeworkEncryptionEncryptor.php on line 588
6
Answers
Usually, it happens when you get a database from another environment with the different PHP version, and admin user has been created there. E.g. you have PHP 7.1 and the admin user has been created with PHP 7.2.
Just create the user in your environment or switch to the same PHP version.
I had the same issue. Resolved it by creating a new admin user using terminal and using that new user to login backend.
I installed the sodium extension for PHP and after restarting PHP and nginx this error no longer appeared. My version of PHP is PHP 7.1.30 and the command I ran was:
after upgrade magento 2.x.x to to any higher version you should first Make sure you run the upgrade command
php bin/magento setup:upgrade
php bin/magento setup:setup:static-content:deploy -f
php bin/magento setup:di:compile
if stile error exists check your php version it should be 7.2.x
hope it will solve your issue!
I had same issue and creating new user did not help me. However, updating the password and clearing cache worked for me. I used below SQL to update my password:
update admin password in admin_user table "6f92815f581710d238a9837aa079e722dd5bec27e6717cfa6c691f04b4993797:ZrBkBsjOa8M5izHd4qjhXsSG1uGZgPZY:1". this password is "admin123"