Magento – Undefined index encrypter.php after admin login in magento 2

magento2PHP

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

Best Answer

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:

;extension=sodium.so
Related Topic