Can't log in to Magento Admin

后端 未结 23 1882
花落未央
花落未央 2020-12-01 02:49

I\'m having troubles logging into Magento\'s admin panel on one of our staging sites (it works 100% on our webdev servers and was working just fine not too long ago on the s

相关标签:
23条回答
  • 2020-12-01 03:28

    Just clear cookies and cache in web browser. It works for me perfectly.

    0 讨论(0)
  • 2020-12-01 03:30

    Our site was running fine for months, then today no one could log into admin, nor could our users log into their frontend accounts. We run on a linux server.

    Solution: the /magento/var/session directory was full of sess_* session files, so many in fact that attempting to execute rm * failed. After a tedious whacking of session files piecemeal (rm sess_1*, rm sess_2*, . . . rm sess_a*, rm sess_b*, . . . rm sess_v*) all of a sudden I could log into Magento again. Actually, I was able to log in after whacking just a few batches.

    Theory: when the session directory has too many files, Magento may not be able to create new session files in a timely fashion, or maybe not at all.

    0 讨论(0)
  • 2020-12-01 03:30

    I have been to the bottom of page 2 of gogole search results to try and solve this problem. I did everything I could find that was suggested. My friend then suggested this command line tool n98-magerun. Running php n98-magerun.phar cache:flush solved it. I could then log in. There's loads of commands though, so if that doesn't work, maybe another will.

    0 讨论(0)
  • 2020-12-01 03:31

    In new Magento Installation, do the following ->

    Open the file

    app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.

    and change the code at line 87 to this ->

        $cookieParams = array(
            'lifetime' => $cookie->getLifetime(),
            'path'     => $cookie->getPath(),
          //  'domain'   => $cookie->getConfigDomain(),
          //  'secure'   => $cookie->isSecure(),
          //  'httponly' => $cookie->getHttponly()
        );
    
    0 讨论(0)
  • 2020-12-01 03:31

    I solved just by cache clearing (execute php mage clear-cache from your Magento base directory

    0 讨论(0)
  • 2020-12-01 03:32

    I can´t access to backend!

    (Solution for me):

    app/etc/local.xml line 55

        <session_save><![CDATA[files]]></session_save>
    

    replace

        <session_save><![CDATA[db]]></session_save>
    
    0 讨论(0)
提交回复
热议问题