0

My site is working fine but existing customer can’t login. Is ther any way to resolve this isssue??

  • Which migration technique have you employed? – Raj Mohan R May 14 at 11:19
0

Magento 1 used MD5 Algorithm to store customer passwords whereas in Magento 2, SHA256 Algorithm is made use. So try running this command to upgrade customer' s hash according to the latest algorithm

php bin/magento customer:hash:upgrade
  • after run this command, I got error: Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given??? – gill May 15 at 13:01
  • Can you please share the exact error here – Raj Mohan R May 15 at 13:04
  • After run php bin/magento customer:hash:upgrade, I got an error: ----Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given in /vendor/magento/framework/Encryption/Encryptor.php:247 ----/vendor/symfony/console/Command/Command.php(255): Magento\Customer\Console\Command\UpgradeHashAlgorithmCommand->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput)) – gill May 15 at 13:25
0

You need to manually upgrade your password_hash using md5 to sha256, Once you are done with migration, run below command:

php -f bin/magento customer:hash:upgrade
  • I am done with migration. – gill May 14 at 12:17
  • have you run the above command? after this run indexing. – Saphal Jha May 14 at 12:21
  • after run this command, I got error: Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, null given – gill May 14 at 15:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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