Can’t login to magento admin after installation.
If the domain is not a true domain then this problem occurs. Its like if you use your localhost to run magento store,then you will face this problem.
You can overcome this by browsing using ur ip address or you can remove these three line from the following page.
app\code\core\Mage\Core\Model\Session\Abstract\varien.php
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
Comment these lines line (may be at line 78…);
Hope magento admin will work now on your localhost with the following url.
http://localhost/magento/admin/
Just try out and play with your stores……
51 Comments »
Leave a comment
-
Archives
- September 2009 (1)
- August 2009 (2)
- July 2009 (3)
- June 2009 (2)
- May 2009 (3)
- April 2009 (2)
- March 2009 (11)
- February 2009 (6)
- August 2008 (1)
- May 2008 (2)
- March 2008 (1)
-
Categories
-
RSS
Entries RSS
Comments RSS
Hey thanks, have been struggling these two days to get the solution. It finally worked! cheers
HI milansaha,
Thanks a lot buddy.. its working now… i hv struggled past 3 days in this problem.. feel very happy..
Thank u so much
Hi….
thank you so much…..
Thanks a bunch.
It now works correctly (though it is slow as hell locally)
This should really be mentioned in guides on how to install Magento on Wampserver
hi
dear
How are you. I want to talk you
regards
nasir
@ nasir….u can leave your queries here and i will reply you.
You can also reach me : milan.saha@gmail.com
You are the man!
Thanks a lot to give me my login problem sonve. 12 hours trying
Hello…all of u are welcome !
@ nasir….u can leave your queries here and i will reply you.
You can also reach me : milan.saha@gmail.com
Hey, thanks for this. I found safari worked fine with no modification, but firefox would not work without altering the session_set_cookie_params as suggested.
In 1.3.2.2 I had to comment all lines of those params from line 77 to 84. If I comment just the (3) suggested I got a blank screen. Just a heads up.
Thanks for adding to the community. I am new to this so you are my saving grace.
Ok, In 1.3.2.2 I had just comment out those three lines that you have told me and it’s worked for me. Thanks for your suggestion. Oh, by the way I am using xampp, Windows XP
thank youy very much for your nice & working solution.
simply a awosome solution.
again thanks a lot.
Nice to know. You are welcome.
Thanks, I tried to replace localhost by 127.0.0.1 and it’s now working.
I just installed: 1.3.2.3 in WAMP and if you change the locahost “name” then you will be able to log in Admin Zone.
Yes…that is also possible because the default IP to browse the apache server on a localhost.
Many thanks…!!!
Thankx Man
It works
Thanks a lot milansaha !! Its saved my time..
Many tanks !
if i this 3 line off then ,the following error shown
“There has been an error processing your request.”
you might forgot to remove a coma before these line.
thankssssssss
Hello brother
I got another solution for installation in local PC and access admin panel.
For access admin panel only replace
http://localhost/magento ->http://192.168.0.1[Local IP]/magento .
thanks
That might be working if that IP is assigned to your pc.
On the other hand by default the IP for any apache server has an IP and that it is 127.0.0.1
So you can also try with http://127.0.0.1/magento
Fucking a, thank you so much, what a stupid bug.
Thanks… had me stumped for ages!
HI milansaha,
Thanks a lot….. its working now… i hv struggled 2 hours in this problem.. feel very happy..keep in touch
Thank u so much
{{base_url}} is not recommended to use in a production environment to declare the Base Unsecure Url / Base Secure Url. It is highly recommended to change this value in your Magento configuration.
What will do ?
If you are working on a true hosting i.e. if you have a domain name(www.abc.com) for your site then you just enter that url in this field instead of {{base_url}} .
Thats it.
Thank u very very much.It works finally.It saves me lots of headache.
Thank you very much…..Are u from the magento team?
You are welcome. I am not from magento team.
I am just a developer from Dhaka,Bangladesh.
Thanks a lot, man.
hi,one more help is needed.
When we add new files/modules in magento,it is not detecting the changes.How to overcome this problem.
It depends on changing to many files. So tough to guess what the exact problem is there.
hi.. great man… simply super…
one more help milan..
how can i integrate hellopod themes..
here i downloaded full version of hellopod themes..
they gave instruction also..
regards that instruction we need to replace app and skin folders within the root folder..
i replaced that folder.. but it showing error to me..
can u help me pls
I guess it should work if you place the files properly.
Then you have to write the theme name form admin area for your store to see in action.
If you still face problems then i think there are problems with the xml file for the theme to make the proper template structure in magento layout.
Thanks for imm reply…
let me check again properly… thanks
Thanks my friend
Thanks man, i battled with this stuff for 2days.
Hey, Thanks a lot, I tried it by setting a enter 127.0.0.1 http://www.localhost.com it also works but if you click on any link it automatically redirects to http://localhost/magento instead of http://www.localhost.com/magento.
But your solution is perfect
Hi, I have one problem, I need to integrate Indian payment gateway (times of money) in Magento. could you please guide me in how to create module for this? or please tell me where I can find the files of authorized or paypals payment gateway file it may help me to create new module.
Thanks for you tips. Its very useful for new user.
Really useful.
I am havin this issue, that I did add the modern theme. But now i cannot change back to default theme, i did get when I first installed magento. How can I get it? Even I cannot change to another theme. It gives errors in the front end view.
Why is it? I did change Default in Design to default get the default theme. (For modern theme I changed it to Modern) after adding the extension.
I guess the problem may occur due to improper configuration from the admin area or for any other error in the page.xml file.Firstly you need to make sure that you placed all the files for the new theme in the proper directories and then you have to enter the theme name from the admin area.
Thats it. Your theme should be in action.
Thanks a lot.. It worked.. had to change the page setup and after deleting the cache it worked.
Good one, this fixed the issue in a jiffy
These are precisely the lines one needs to comment in the file varien.php (the ones starting with // are commented). Also remember to take out the comma from the end of the line $this->getCookie()->getPath()
session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);
Thanks
Work, thanks!
Wow its work
thanks alot
[...] Vía [...]
Pingback by Error en instalación de magento: No se puede iniciar sesión como administrador después de la instalación | Teofilo Israel | November 8, 2009 |