After migration I can't log in to the admin panel. After i enter the username and password, the same page reloads.
I have tried:
Magento: Can't log into admin [duplicate]
Magento admin login not working
Magento can't login in admin with right username and password
But nothing works
I have tried to comment out the code lines in
app/code/core/Mage/Core/Model/Session/Abstract/Varien.php.
and nothing!
And I changed the core_config_data
web/unsecure/base_ur
l and web/secure/base_url
.
I am running out of ideas,
Thank you for any help!
EDIT:
I checked the cookies on the old server, and when on the login page i get an adminhtml
cookie, but not on the new i get an hz_amChecked
cookie.
EDIT 2:
The new server is on siteground, maybe something I am missing on the settings there
I tried to put a die()
in app/code/core/Mage/Core/Model/Session/Abstract/Varien.php
but nothing happens.
Best Answer
I found the problem, it was in the
/app/etc/local.xml
in:I didn't think that the time of the installation was important, but i changed the +0000 to the same value as the new magento installation had and
to
cleared the files
var/cache
,var/session
and removed all cookies from my site in the browser and it worked! Finally i can rest a little :) Thank you all anyway for the help!