Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Admin login doesn't work


Puntje

Recommended Posts

Hello everyone,

 

I have a weird problem and I couldn't find a solution anywhere, so I'll try here. :)

 

The problem is that, after a clean install of osCommerce v2.3.1, the admin login just doesn't work. There are 2 problems here:

 

1. When I go to http://domain.com/admin/ I directly get an error: Error: Invalid administrator login attempt. I solved this by going directly to http://domain.com/admin/login.php instead of http://domain.com/admin/. But it's still weird since this error should not occur.

 

2. I can't log in with the proper account details I entered during the installation procedure. Again the same error occurs.

 

I tested it on two different webhosting providers and I even tried to install osCommerce through Installatron. No results. So I assume I am doing something wrong here, but I wouldn't know what it is. I read the (pre-)installation guide to install it.

 

The strange thing is, the very first time I installed it, I could log in a few times but after that it didn't work at all. Now I re-installed it like 10 times on two different webhosting providers.

 

I hope somebody has an idea what is going on here. Thanks in advance!

Link to comment
Share on other sites

I found something and it seems to work:

 

@Uwe ok, in your admin/includes/application_top.php comment out these 2 lines and try it.

 

$redirect_origin['auth_user'] = $HTTP_SERVER_VARS['PHP_AUTH_USER'];

$redirect_origin['auth_pw'] = $HTTP_SERVER_VARS['PHP_AUTH_PW'];

 

This is something I could not replicate earlier, basically the default code will not process the login form if it sees there is authorization by other means, like .htaccess in place. See after commenting out the code you can login.

 

Comment by enigma1 — November 21, 2010 @ 9:34 am

 

Link to comment
Share on other sites

I found something and it seems to work:

 

 

This didn't work for me? Does is anyone else having this problem?

 

A clean install of v2.3.1 everything was going smoothly, i had lunch and now can't login to Admin?

I have reset the password by deleting the UN and PW in phpMyadmin, Admin login then asks for a new UN &PW but i get 'Error Invalid administrator Login attempt' with the new details?

Link to comment
Share on other sites

This didn't work for me? Does is anyone else having this problem?

 

A clean install of v2.3.1 everything was going smoothly, i had lunch and now can't login to Admin?

I have reset the password by deleting the UN and PW in phpMyadmin, Admin login then asks for a new UN &PW but i get 'Error Invalid administrator Login attempt' with the new details?

 

Ok after more searching i found the answer here! I went for option 2 and deleted my recent browser history to delete cookies:

http://www.oscommerce.com/forums/topic/369402-cant-login-to-new-231-install/page__p__1584560#entry1584560

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...