Wednesday, April 20, 2022

cannot login "An unspecified error occurred"

Fix the Problem

for fix the problem change the code

Can you check logs for specific error of Magento? var/log folder or any reports in var/report folder.

Apart from that you can just check by printing error message.

vendor/magento/module-customer/Controller/Account/LoginPost.php and put these lines

ubah kode ini


$this->messageManager->addError( __('An unspecified error occurred. Please contact us for assistance.') );

menjadi

$message = $e->getMessage(); $this->messageManager->addError($message);


References

https://community.magento.com/t5/Magento-2-x-Technical-Issues/magento-2-2-0-cannot-login-quot-An-unspecified-error-occurred/td-p/447788 

0 comments:

Post a Comment