• Register
0 votes
361 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

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.

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

Related questions

0 votes
1 answer 11 views
11 views
Problem: I get error like this: There has been an error processing your request Exception printing is disabled by default for security reasons. Error log record number: 673618173351
asked Mar 19 ummesalma 29.2k points
1 vote
1 answer 52 views
52 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
1 answer 9 views
9 views
Problem: What are my options for dealing with this issue “Exception printing is disabled by default for security reasons. magento 2”?
asked Mar 29 tuhin1 48.9k points
0 votes
2 answers 4 views
4 views
PROBLEM : Please help me on > 'magento exception printing is disabled by default for security reasons' ?
asked Mar 17 Samiur1 38.4k points
0 votes
2 answers 394 views
394 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 5 views
5 views
Problem: What is actually the error here? > There has been an error processing your request magento 1.9
asked 5 days ago Irenka Kiri 17.9k points
0 votes
1 answer 7 views
7 views
Problem: While I tried to install the Module Creator by using magento-community/Netz98_ModuleCreator and I get the Couldn't resolve host 'magento-community' error. I then used a website to download the extension and install it that way, and I get this ... Invalid version, should be like: x.x.x Invalid stability Invalid channel URL Empty authors section Empty package contents section Please help!
asked Apr 17 Yeamin 22k points
0 votes
1 answer 11 views
11 views
Problem : Someone help me to fix this Please on > 'magento invalid form key please refresh the page' ?
asked Mar 17 sadi1982 36.3k points
0 votes
1 answer 276 views
276 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
0 votes
1 answer 25 views
25 views
Problem: I need someone’s help to fix it .. no compatible jdk was found netbeans 8.2
asked Apr 6 Ifra 37.2k points