Error Details
Solution
> INSERT INTO authorization_role (role_id, parent_id, tree_level, sort_order, role_type, user_id, user_type, role_name) VALUES (1, 0, 1, 1, 'G', 0, '2', 'Administrators');
> INSERT INTO authorization_role (role_id, parent_id, tree_level, sort_order, role_type, user_id, user_type, role_name) VALUES (1, 0, 1, 1, 'G', 0, '2', 'Administrators');
for fix this problem, change the code to be able to print the error
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
change this code
$this->messageManager->addError(
__('An unspecified error occurred. Please contact us for assistance.')
);
to
$message = $e->getMessage();
$this->messageManager->addError($message);
https://community.magento.com/t5/Magento-2-x-Technical-Issues/magento-2-2-0-cannot-login-quot-An-unspecified-error-occurred/td-p/447788
The account sign-in was incorrect or your account is disabled temporarily. Please wait and try again later
1. Create new account by command line
php bin/magento admin:user:create --admin-user='magento243' --admin-password='magento243' --admin-email='magento243@gmail.com' --admin-firstname='Firstname' --admin-lastname='Lastname'
2. Now login with the new created username and then change the password of previous user which was causing issue in loginfor 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);