Fatal error: Call to a member function getUsername() on a non-object in C:\wamp\www\magento-1.9\app\design\adminhtml\default\default\template\page\header.phtml on line 33

  • please source the header.phtml file and its block class if is custom
    – roomcayz
    Mar 16, 2016 at 13:48

1 Answer 1


This happens if the user for the logged in admin cannot be found but somehow you are still in the admin panel. It's usually a session problem, and deleting your cookies and logging in again should fix it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.