cancel
Showing results for 
Search instead for 
Did you mean: 

magento 2.2.0 - cannot login- "An unspecified error occurred"

magento 2.2.0 - cannot login- "An unspecified error occurred"

Hi,

 

we are experiencing issues with end-users trying to log in to the website and cannot.

 

they receive the error "An unspecified error occurred"

 

is there anything that can be done to resolve this I have 250 users affected. Smiley Frustrated 

1 REPLY 1

Re: magento 2.2.0 - cannot login- "An unspecified error occurred"

Hello @harjinder_mahey 

 

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

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

just before lines-

$this->messageManager->addError(
                        __('An unspecified error occurred. Please contact us for assistance.')
                    );
Manish Mittal
https://www.manishmittal.com/