0

I made an upgrade from Magento 1.4.2 to 1.9.3.2 and everything worked fine.

My frontend and backend worked properly. I can log in into the admin panel without issues until a few hours later when I clicked on log out from the admin panel, I am not redirected to the admin login page and instead, I get the following error.

Fatal error: Call to a member function getUsername() on null in C:\MAMP\htdocs\magento\app\design\adminhtml\default\default\template\page\header.phtml on line 33

I cannot show the admin login page anymore and I cannot log in into the admin panel. The frontend works fine. My guess is that the admin session did not close properly, I tried to clean the var/cache + var/locks + var/session + cookies from my browser + try different browsers => did not work

I tried every solution suggested in this topic, but nothing worked : Magento 1.9 Can’t login to admin panel!

For information, this is a local environment. All the third party modules are disabled and I removed all local devs. I also tried an upgrade from 1.4.2 to 1.7.0.2, the upgrade worked fine, frontend and backend are working and I get the exact same issue in the admin after a few hours (I was logged in the admin but could not log out / re-login).

I also have a local installation of Magento 1.4.2 and here everything works fine I can log in/ log out / re-login from the admin without any problem.

Do you know how I can solve this issue?

Utsav Gupta
1,2431 gold badge20 silver badges52 bronze badges
asked Mar 16, 2017 at 9:43

1 Answer 1

3

It turns out that I left a customized version of this file

app\design\adminhtml\default\[mytemplate]\layout\main.xml

I just removed this file in order to let magento get the original one (from the 1.9.3.2 install) :

app\design\adminhtml\default\default\layout\main.xml

And everything is fine again. Now i can login / logout properly in the admin panel.

Teja Bhagavan Kollepara
3,8275 gold badges33 silver badges69 bronze badges
answered Mar 17, 2017 at 18:34

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.