Magento admin : Fatal error: Call to a member function getUsername() on null
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:MAMPhtdocsmagentoappdesignadminhtmldefaultdefaulttemplatepageheader.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?
magento-1.9 magento-1.7 admin session admin-panel
add a comment |
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:MAMPhtdocsmagentoappdesignadminhtmldefaultdefaulttemplatepageheader.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?
magento-1.9 magento-1.7 admin session admin-panel
add a comment |
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:MAMPhtdocsmagentoappdesignadminhtmldefaultdefaulttemplatepageheader.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?
magento-1.9 magento-1.7 admin session admin-panel
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:MAMPhtdocsmagentoappdesignadminhtmldefaultdefaulttemplatepageheader.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?
magento-1.9 magento-1.7 admin session admin-panel
magento-1.9 magento-1.7 admin session admin-panel
edited 1 min ago
Utsav Gupta
14612
14612
asked Mar 16 '17 at 9:43
RaphaelRaphael
314
314
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
It turns out that I left a customized version of this file
appdesignadminhtmldefault[mytemplate]layoutmain.xml
I just removed this file in order to let magento get the original one (from the 1.9.3.2 install) :
appdesignadminhtmldefaultdefaultlayoutmain.xml
And everything is fine again. Now i can login / logout properly in the admin panel.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "479"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f164648%2fmagento-admin-fatal-error-call-to-a-member-function-getusername-on-null%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It turns out that I left a customized version of this file
appdesignadminhtmldefault[mytemplate]layoutmain.xml
I just removed this file in order to let magento get the original one (from the 1.9.3.2 install) :
appdesignadminhtmldefaultdefaultlayoutmain.xml
And everything is fine again. Now i can login / logout properly in the admin panel.
add a comment |
It turns out that I left a customized version of this file
appdesignadminhtmldefault[mytemplate]layoutmain.xml
I just removed this file in order to let magento get the original one (from the 1.9.3.2 install) :
appdesignadminhtmldefaultdefaultlayoutmain.xml
And everything is fine again. Now i can login / logout properly in the admin panel.
add a comment |
It turns out that I left a customized version of this file
appdesignadminhtmldefault[mytemplate]layoutmain.xml
I just removed this file in order to let magento get the original one (from the 1.9.3.2 install) :
appdesignadminhtmldefaultdefaultlayoutmain.xml
And everything is fine again. Now i can login / logout properly in the admin panel.
It turns out that I left a customized version of this file
appdesignadminhtmldefault[mytemplate]layoutmain.xml
I just removed this file in order to let magento get the original one (from the 1.9.3.2 install) :
appdesignadminhtmldefaultdefaultlayoutmain.xml
And everything is fine again. Now i can login / logout properly in the admin panel.
edited Mar 18 '17 at 5:55
Teja Bhagavan Kollepara
2,94841847
2,94841847
answered Mar 17 '17 at 18:34
RaphaelRaphael
314
314
add a comment |
add a comment |
Thanks for contributing an answer to Magento Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f164648%2fmagento-admin-fatal-error-call-to-a-member-function-getusername-on-null%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown