When i open admin url, I see this error

Fatal error: Call to a member function getUsername() on a non-object in /app/design/adminhtml/default/default/template/page/header.phtml on line 33 Any ideas?


if you use customer session than add session condition

$session = Mage::getSingleton('customer/session');
if($session->isLoggedIn()) {

  • can you please share header.phtml filde code here? – Dhaval Patel Feb 3 '16 at 6:36

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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