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

New install, live (test) server : “Invalid Username or Password.”
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

As the subject says: We’ve done a clean install on a clean server several times in a row now.
Every install results in being locked out of the Backend.

The message we get every time is:
“Invalid Username or Password.”

Anyone have any ideas why this is happening?

We have installed previous versions of Magento many many times and never had this problem before.

Thanks!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

After searching the forums the only solutions we can find relate to “localhost” installs.

Since we are running it on a live server these solutions are not relevant.

Still searching…

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelixcom
Enthusiast
 
Avatar
Total Posts:  906
Joined:  2007-08-31
Huntsville, AL
 

One thing you can try is checking the database’s ‘admin_user’ table to see if it even created an admin.

Next, check ‘core_config_data’ to make sure it has a base URL set. Make sure it does not have a ‘cookie_domain’ set.

The third thing to check is the session data - try setting ‘app/etc/local.xml’ to store sessions to ‘db’ not ‘files’.

Good luck!

 
Magento Community Magento Community
Magento Community
Magento Community
 
hippoglollum
Sr. Member
 
Total Posts:  97
Joined:  2010-04-07
 
SimpleHelix.com - 19 February 2011 11:11 AM

The third thing to check is the session data - try setting ‘app/etc/local.xml’ to store sessions to ‘db’ not ‘files’.

Maybe OT

@SimpleHelix.com
do you think store session data to db is better then in files or is only a solution at this problem?
Magento has so much db interaction…

tnx

 
Magento Community Magento Community
Magento Community
Magento Community
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

After another re-install, I have managed to login from Firefox, Chrome and Safari for Leopard.

But Safari Snow Leopard is still locking me out, and is also not allowing users to put items in their cart. When adding an item to the cart it forwards to the \"allow cookies\” page. However I can see in the cache that the cookies is set and has not expired.

Being able to login through Firefox is no inconvenience for me.
But users must be able to put items in their carts. So I am still trying things get it to work.

@SimpleHelix
Admin user is created.
Base URL is set.
Tried setting ‘app/etc/local.xml’ to store sessions to ‘db’.
Still no go.

@hippoglollum:
I would be curious to get opinions on this as well.

 
Magento Community Magento Community
Magento Community
Magento Community
 
seudo
Guru
 
Avatar
Total Posts:  344
Joined:  2008-04-21
 

We were having similar issues with Snow Leopard for Safari in our recent upgrade to 1.5.0.1 from 1.4.2.
Firefox worked but Safari didn’t.

I know you may have already done this so please forgive me ahead of time but I thought I would throw it out there anyways because it worked for us.

We got the “Invalid . . .” error when trying to login via Safari but were able to login with Firefox.
We were logged into Magento via Safari before the upgrade.

We ended up deleting all the cookies in Safari for the domain and cleared the cache. After that we were able to login via Safari.

Another login issue we have experienced with previous versions of Magento was with Admin secure urls.

Within Firefox we went to Magento Admin > System > Configuration > Admin > Security > Add Secret Key to URLs and set it to No.

Then made sure “Login is Case Sensitive” was set to no.

Once we were able to log in we re-enabled the security feature.

Hopefully this might shed some light.

 
Magento Community Magento Community
Magento Community
Magento Community
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

Thanks for the reply. I tried the solution you suggested and still nothing.

Safari Snow Leopard users cannot put anything in their baskets.
And Safari Snow Leopard cannot login to admin area.

Seems we’ve tried almost everything.

 
Magento Community Magento Community
Magento Community
Magento Community
 
skicrave
Member
 
Total Posts:  51
Joined:  2007-12-02
 

We are experiencing the same issue with a store that is about to launch.  All other browsers work fine, but Safari on 10.6.7 can not get past the admin screen or add products to shopping cart.

Did you ever find a solution?

 
Magento Community Magento Community
Magento Community
Magento Community
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

Unfortunately, no we have not found the solution yet.

And for this reason have not made the jump to the new version, because we cannot get this glitch ironed out on the test server.
I have not worked on the issue this week, but am planning to attack it again in the coming weeks, because we need to upgrade soon.

 
Magento Community Magento Community
Magento Community
Magento Community
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

After reading up some more about similar problems, it seemed that it could be related to cookies expiring prematurely.

So we set the “Cookie Lifetime” to increasingly greater values.
This did not solve the issue. I can see the cookie in the cookie cache of safari and the expiry date is several days in the future.
So to cookie is set and seems valid.

But safari won’t recognise it? Or won’t retrieve it?

(EDIT)
I just realised that this thread title is no longer accurate description of the problem.
Upon attempted login, there is no longer the alert saying, “Invalid Username or Password”.
Instead the 2 most main symptoms are:
1. Safari (Snow Leopard) users cannot add products to their baskets.
2. Attempts to login to backend using Safari (Snow Leopard) simply returns to login page, with no alert or error and the URL has a generated key added to the end.

These symptoms have been produced on multiple machines.

 
Magento Community Magento Community
Magento Community
Magento Community
 
SimpleHelixcom
Enthusiast
 
Avatar
Total Posts:  906
Joined:  2007-08-31
Huntsville, AL
 

Hello,

Can you try setting some of the cookie options - perhaps have it bind to the user agent? That may help cookies persist.

 
Magento Community Magento Community
Magento Community
Magento Community
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

If you mean “Validate HTTP_USER_AGENT”, yes we’ve tried it both ways.

 
Magento Community Magento Community
Magento Community
Magento Community
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

OK. A little progress. We’re narrowing down the problem, with a partial solution.

I tried the steps on this site: http://www.voodish.co.uk/articles/magento-cookie-problem-in-ie-chrome-opera-fixed/

Step 1 did not work.
Step 2 did not work.
However step 3 did!

The site now works like it should, except the solution is not a proper one.
If you look at the article it step 3 requires modifying CORE.
And as was famously said, Core should not be modified.

So… anyone know the right way to fix this?

 
Magento Community Magento Community
Magento Community
Magento Community
 
indigo
Jr. Member
 
Avatar
Total Posts:  28
Joined:  2007-08-31
 

Good news! I tracked it down to the HttpOnly flag. (Use HTTP Only)
I set this to ‘No’ and Safari and Opera work as expected, like Chrome and Firefox.

So, it seems to have nothing to do with cookie life-span in this instance.

Now, as I mentioned earlier this is a test server. Our live server has always had HTTP Only set to ‘Yes’ and we’ve never run into this problem.
Does anyone know what may account for the difference?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top