• Register
0 votes
127 views

Problem :

I have just upgrade from Magento 1.9.3.3 (form key disabled) to the 1.9.3.7. Now I cannot login to a backend. My error message is 'You did not sign in correctly or your account is temporarily disabled.'

I tried to reset my cookie domain, clear a cache and session from both server and browser and still there was no luck.

There are many posts that are concerning magento 2, but far less talking about the magento 1. Does someone with magento 1 had and solved above issue?

7 5 2
3,870 points

2 Answers

0 votes

Solution :

Check the admin_role DB table data against the backup. The data in mine got erased due to the DB server crash.

This was a only way to resolve above issue for me.

OR

Magento admin panel login message shows which are set in the admin session. Magento 1.9.X Mage::throwException() not working for the login message. So if you want to just check a exact error(Event if the wrong username & password) change in the file app/code/core/Mage/Admin/Model/Session.php as shown below

public function mylogin($username, $password, $request = null)
{
    .....
    } catch (Mage_Core_Exception $e) {
        $e->setMessage(
            Mage::helper('adminhtml')->__('You did not sign in correctly or your account is temporarily disabled.')
        );
        .....
    }
    .....
}

Every time it will show above message so instead of that set the error message as below.

public function mylogin($username, $password, $request = null)
{
    .....
    } catch (Mage_Core_Exception $e) {
        $e->setMessage($e->getMessage());
        .....
    }
    .....
}

 

9 7 4
38,600 points
0 votes

This happens when the cookie domain in the following directory is different from the actual site domain

System -> configuration -> Web. The on the main content goes to “Session cookie management”.

All the above parameters can be tweaked according to the user needs

Solution:

There are three solutions to this problem;

Use commands:

Use these commands in PHPMyAdmin;

DELETE FROM core_config_data WHERE path=’web/cookie/cookie_domain’;

DELETE FROM core_config_data WHERE path=’web/cookie/cookie_path’;

Now try to log in.

Delete Var folder:

Delete everything from the var folder and then check whether it is working or not.

Replace .htaccess file:

Replace the .htaccess file with sample .htaccess file and try to log in to the admin folder.

Database table:

Check your admin role Database table against a backup. The data can be erased due to the database server crash.

Then as soon as you can log in to the system again. Set the correct cookie domain for each website or store.

Example:

For example; .example.com for example.com, www.example.com, and all other subdomains.

n98-magerun:

If you are using the n98-magerun, then the same functionality can be accomplished with;

n98-magerun config:delete web/cookie/cookie_domain

n98-magerun cache:clean config

I hope this will help to solve your problem.

 

11 5 1
3,890 points

Related questions

1 vote
1 answer 23 views
23 views
Problem: I have very fundamental knowledge of the Magneto. After I tried to migrate my Magento(CE 1.9.1) website from my existing Apache server to the new Nginx server. I am often facing below error in my frontend: DbModel read resource does not implement Zend_Db_Adapter_Abstract. ... did not work for me. I have also tried to change the DB setting in the local.xml but it did not work for me.
asked May 25 Martin K 6.6k points
0 votes
2 answers 220 views
220 views
Problem : I am new to the Magento. When I try to install the Magento to Localhost it gives me below Error- One or more indexers are invalid. Make sure your Magento cron job is running. I have also tried the following to re index a Indexer php bin/magento indexer:reindex I did not find any help from above command. Why is above Error happening? How can I fix the above error?
asked Jan 20 jwilliam 3.9k points
0 votes
1 answer 114 views
114 views
Problem : I am new to the PayPal. I have filled all the required credentials in Magento admin. But when i click pay-pal button it gives me following error message: PayPal gateway has rejected request. Security header is not valid (#10002: Security error i have tried a lot ... test again I have tried all those but still I am getting the same error. Please let me know how can I solve this issue?
asked Nov 21, 2019 peterlaw 6.9k points
1 vote
1 answer 22 views
22 views
Problem : I am very new to Magneto. Currently I have the Magento 1.7.0.2 properly installed and it is in running condition. But if I try to add any new product then in that case I am always facing below error: “Image type and information need to ... deleted a store view which I created earlier as current site needs only one store view. Can someone guide me in fixing above mentioned error?
asked Apr 7 morrisBson 3.2k points
0 votes
2 answers 216 views
216 views
Problem : Getting following wordpress error while tring to send the email the email could not be sent. possible reason: your host may have disabled the mail() function.
asked Nov 13, 2019 peterlaw 6.9k points