cancel
Showing results for 
Search instead for 
Did you mean: 

magento version 2.3. Admin login showing this error. how can i solve it?

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

magento version 2.3. Admin login showing this error. how can i solve it?

magento 2.3 installed succesfully. when i try to login admin, this error occurs. how can i solve it?
Fatal error: Uncaught TypeError: explode() expects parameter 2 to be string, integer given in C:\xampp\htdocs\magento\vendor\magento\framework\Encryption\Encryptor.php:274 Stack trace: #0 C:\xampp\htdocs\magento\vendor\magento\framework\Encryption\Encryptor.php(274): explode(':', 1) #1 C:\xampp\htdocs\magento\vendor\magento\framework\Encryption\Encryptor.php(207): Magento\Framework\Encryption\Encryptor->getPasswordVersion() #2 C:\xampp\htdocs\magento\vendor\magento\framework\Encryption\Encryptor.php(197): Magento\Framework\Encryption\Encryptor->isValidHash('adminuser', '4f5cec75c744bd3...') #3 C:\xampp\htdocs\magento\vendor\magento\module-user\Model\User.php(605): Magento\Framework\Encryption\Encryptor->validateHash('adminuser', '4f5cec75c744bd3...') #4 C:\xampp\htdocs\magento\generated\code\Magento\User\Model\User\Interceptor.php(206): Magento\User\Model\User->verifyIdentity('adminuser') #5 C:\xampp\htdocs\magento\vendor\magento\module-user\Model\User.php(577): Magento\User\Model\User\Interceptor->verifyIdentity('adminus in C:\xampp\htdocs\magento\vendor\magento\framework\Encryption\Encryptor.php on line 274


line 274~
/**
     * Get password version
     *
     * @return array
     */
    private function getPasswordVersion()
    {
        return array_map('intval', explode(self:Smiley Very HappyELIMITER, $this->passwordHashMap[self:Smiley TongueASSWORD_VERSION]));
    }

any idea what i should do?

2 REPLIES 2

Re: magento version 2.3. Admin login showing this error. how can i solve it?

Hi @vishnu_haridas2,

Sometimes it would be because of permission (read/write/execute) to var and pub directory.

sudo chmod -R 777 var/ pub/ generated/

 

Also try clearing the cache

sudo rm -rf var/cache/* var/generation/*

 

However it might be something to do with the di folder, this might also work:

Delete the di folder from the var directory
sudo php bin/magento setup:di:compile


Reset file permissions.

Prema M

Re: magento version 2.3. Admin login showing this error. how can i solve it?

Hi, prema_mani1, I have the same error. Can You more detalizes explain how to consider it? I'm installing Magento first time on OS Windows 10. Thank You!