1 exception(s): Exception #0 (Exception): Notice: Undefined offset: 2 in /var/www/html/Registration/vendor/magento/framework/Encryption/Encryptor.php on line 588

  • what is your php version? Commented Aug 6, 2019 at 6:26
  • Is that comes after upgrading or after installation of new Magento? Which Magento version you are using? Commented Aug 6, 2019 at 6:28
  • @ShoaibMunir php version is 7.2
    – usman
    Commented Aug 6, 2019 at 6:29
  • @HarshJayswal i am using magento 2.3. i am working on Extension devolpment. when i install magento 2.3 everything is working fine. but now admin login is not working but admin login page is displayed but when i enter login credential it gave me exception of undefined index .i have also tried it on php version 7.1 but facing the same exception
    – usman
    Commented Aug 6, 2019 at 6:31

2 Answers 2


ok got your problem just create a new admin user using the following command

bin/magento admin:user:create

after that login with new admin id it will solve your problem.

  • it does not solve my problem
    – usman
    Commented Aug 6, 2019 at 9:18
  • i have Migrated My Site from Magneto Cloud to AWS Server and this Solution Helped me Thank You
    – Waqar Ali
    Commented Dec 9, 2021 at 5:24

Your environment is using ARGON2ID13 instead of SHA256 for hashing.

Check if you have 'sodium' php extension enabled.

If you disable the libsodium php extension, it will fallback on SHA-256 and won't break Magento.

In the Docker php-fpm image you can comment it out in /usr/local/etc/php/conf.d/docker-php-ext-sodium.ini:

  • the senerio is i devolped extension on magento 2.3 and for testing of extension i insall magento 2.2.9 and extension behave excellent but after tesing when i want to login on magento 2.3 admin pannel it gave me this exception.does it resolved by installing sodium extension?
    – usman
    Commented Aug 6, 2019 at 6:40
  • not install, you need to disable sodium extension Commented Aug 6, 2019 at 6:47
  • Check this one: github.com/magento/magento2/issues/23511#issuecomment-507033705 Commented Aug 6, 2019 at 6:48
  • How to check this extension is enable?
    – usman
    Commented Aug 6, 2019 at 9:07
  • i have read this issue on provided link but here only describe its a PHP version issue but its not a PHP issue because i have have checked it by change PHP version
    – usman
    Commented Aug 6, 2019 at 9:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.