Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Page 2 of 8
Can’t login to admin after installation. 
 
artproduct
Jr. Member
 
Total Posts:  8
Joined:  2008-04-30
 
kirederf - 18 March 2008 12:24 AM

Same issue here on OSX with MAMP. Adding a “.local” to my vhosts fixed the problem. Thanks guys smile

Can I get a little more direction on how to do this? I’d love an example.
Which file do I edit, and where does the .local go?

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mexx
Member
 
Avatar
Total Posts:  35
Joined:  2007-09-04
Germany
 

thanks for the 127.0.01 tip. worked great for me!

 
Magento Community Magento Community
Magento Community
Magento Community
 
freshwebs
Sr. Member
 
Total Posts:  153
Joined:  2008-05-27
Leicestershire, UK
 

Thanks also for the 127.0.0.1 tip - worked for me on a clean install of 1.3.0. I haven’t had to do this before on 1.2.2 - perhaps they’ve changed something to secure the admin?

Eddie

 
Magento Community Magento Community
Magento Community
Magento Community
 
Ernazar_WP
Jr. Member
 
Total Posts:  1
Joined:  2009-05-02
 

I found another solution for this.

The problem is in Session, magento can not set session and always create it again, that is why logination does not work.

so In the class Mage_Core_Model_Session_Abstract_Varien
there are following lines, which defines some session params

session_set_cookie_params(
            
$this->getCookie()->getLifetime(),
            
$this->getCookie()->getPath(),
            
$this->getCookie()->getDomain(),
            
$this->getCookie()->isSecure(),
            
$this->getCookie()->getHttponly()
        );
In this function params - the problem is. I have just commented this code and it started to work.
Someone can try to play with preferences, for example $this->getCookie()->getDomain() - woudl be localhost, may be because of this it can not be saved.
 
Magento Community Magento Community
Magento Community
Magento Community
 
BrettGrant
Jr. Member
 
Total Posts:  1
Joined:  2008-09-07
 

After a clean install of Magento...from here

http://208.75.148.78/~blinqcoz/magento/index.php/admin

I am not able to log in, can any one advise? I am running it as a test…

I am also not able to login to the Magento Demo page? I have disabled Cookies , deleted, refreshed and searched..

http://demo-admin.magentocommerce.com/index.php/admin/

Using FF 3, ran server check with the magento check.php file all 100%

No problems during the install as all.

Please help...many thanks..

 
Magento Community Magento Community
Magento Community
Magento Community
 
johnh
Jr. Member
 
Total Posts:  1
Joined:  2008-03-13
 

-Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.

-Find the code,

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);

-Replace above code by,

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);

-Save it and try to login to your magento admin panel.

if u only comment the lines instead of replacing text take a good look at commas !!!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
snowball
Jr. Member
 
Total Posts:  1
Joined:  2009-02-25
 

Thx, 127.0.0.1 instead of localhost worked.
But when you use MAMP on Mac OSX, you better use Safari, cause FF redirects http://127.0.0.1 to http://localhost ...

Don’t forget your port number: http://127.0.0.1:8888/ wink

 
Magento Community Magento Community
Magento Community
Magento Community
 
JasonLee
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2008-12-18
San Francisco, CA
 
snowball - 01 June 2009 04:46 AM

But when you use MAMP on Mac OSX, you better use Safari, cause FF redirects http://127.0.0.1 to http://localhost ...

My FireFox (v3.0.6) does not redirect 127.0.0.1 to localhost.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Rick5150
Jr. Member
 
Total Posts:  6
Joined:  2009-06-12
 

I have installed Magento on a slave drive labelled as J:

How would I access Magento and the Admin function in this case?

 
Magento Community Magento Community
Magento Community
Magento Community
 
JasonLee
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2008-12-18
San Francisco, CA
 
Rick5150 - 13 June 2009 01:30 AM

I have installed Magento on a slave drive labelled as J:

How would I access Magento and the Admin function in this case?

You’re going to have to be a little more specific than that.  Is your *AMP setup correctly? Can you access the default pages in the install?

Where in the “J:” drive are your files?

 
Magento Community Magento Community
Magento Community
Magento Community
 
JasonLee
Jr. Member
 
Avatar
Total Posts:  21
Joined:  2008-12-18
San Francisco, CA
 

I just had this issue after pulling down the LIVE MySQL database to my local dev environment.

Make sure you change the following value
TABLE: core_config_data
PATH: web/cookie/cookie_domain
VALUE: 127.0.0.1

This value only works if you are running it locally on your machine.  If you move to another server, update the value to be “.domainname.com” or whatever it is.  the “.” before the domainname allows the cookies to work on any subdomains you may have as well.

 
Magento Community Magento Community
Magento Community
Magento Community
 
ecr
Jr. Member
 
Total Posts:  16
Joined:  2009-03-01
 

Hi all,

I have the same issue : unable to log on admin after a brand new & fresh install of last version.

I just applied the patch indicated by Ernazar_WP about Mage_Core_Model_Session_Abstract_Varien class.

Now the admin login screen is no longer displayed and I’m directly working in admin area.

So it’s a good patch to test but not for prod.

Any idea to make things work as they should?

Regards

 
Magento Community Magento Community
Magento Community
Magento Community
 
PipiS
Jr. Member
 
Total Posts:  12
Joined:  2009-06-20
 
johnh - 29 May 2009 11:49 PM

-Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.

-Find the code,

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);

-Replace above code by,

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);

-Save it and try to login to your magento admin panel.


if u only comment the lines instead of replacing text take a good look at commas !!!!!

thanks for the solution works very good

 
Magento Community Magento Community
Magento Community
Magento Community
 
rabidsheika
Jr. Member
 
Total Posts:  1
Joined:  2009-07-07
 

I’m somewhat knowledgeable with php, and my install went fine, but I still cannot log in to my admin panel! I have installed on a localhost, php is up to date, I have tried everything mentioned in all the google universe! 127.0.0.1, does not work, and when I comment the lines mentioned earlier in the varien file I cannot access my Magento install at all, I get this error:

Parse error: parse error in C:\xampp\htdocs\magento\app\code\core\Mage\Core\Model\Session\Abstract\Varien.php on line 84

I know I’m probably missing something obvious, perhaps I skipped a step during my install… I’m getting a little frustrated after 3 days of working on this, I’m considering switching to zen cart at this point.

Any advice would be greatly appreciated.

 
Magento Community Magento Community
Magento Community
Magento Community
 
Joffff
Jr. Member
 
Total Posts:  6
Joined:  2009-07-09
 
johnh - 29 May 2009 11:49 PM

-Go to app/code/core/Mage/Core/Model/Session/Abstract/Varien.php file within your magento directory.

-Find the code,

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath(),
$this->getCookie()->getDomain(),
$this->getCookie()->isSecure(),
$this->getCookie()->getHttponly()
);

-Replace above code by,

session_set_cookie_params(
$this->getCookie()->getLifetime(),
$this->getCookie()->getPath()
//$this->getCookie()->getDomain(),
//$this->getCookie()->isSecure(),
//$this->getCookie()->getHttponly()
);

-Save it and try to login to your magento admin panel.


if u only comment the lines instead of replacing text take a good look at commas !!!!!

Works for me too.  Fresh install, WAMP, using Firefox and I can now log in using localhost. Thanks!

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top
Page 2 of 8