• Register
0 votes

Problem :

I have just upgrade from Magento (form key disabled) to the 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

Please log in or register to answer this question.

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.


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) {
            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) {


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


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.


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


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 2
3,890 points

Related questions

1 vote
1 answer 37 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, 2020 Martin K 6.6k points
0 votes
2 answers 339 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, 2020 jwilliam 3.9k points
0 votes
1 answer 223 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 49 views
Problem : I am very new to Magneto. Currently I have the Magento 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, 2020 morrisBson 3.2k points
0 votes
2 answers 332 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
0 votes
1 answer 262 views
1 vote
1 answer 52 views
Problem : I have very recently started earning PHP. Now I am facing below error if I try to run the script. Please find the error message as below for your reference. Warning: file_get_contents() [function.file-get-contents]: https:// wrapper is disabled in the server ... know this is the server related issue but still I am unaware of the steps those I need to take to fix above server error.
asked Apr 6, 2020 morrisBson 3.2k points
0 votes
1 answer 585 views
Problem : When I am trying to upload the csv file with zipcode it will convert and save the latitude and logitude. A error is occurring to convert a zipcode to lat,lng. In the localhost its working very fine. But when I am trying to upload it in the live server. I am ... the google api key also. I am unable to add php.ini file. If I try to upload php.ini file then it shows internal server error.
asked Jan 31, 2020 jwilliam 3.9k points
0 votes
1 answer 7 views
Problem: cara mengatasi you have an error in your sql syntax near ' '' at line 1
asked Feb 12 Dan phillip 1.9k points