Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

STRANGE admin problem - Probably easy solution


MattCardly

Recommended Posts

Hi,

 

Can anyone help -- I have created a backup of my website and installed it onto Xampp on Mac OSX. Everything seems to be fine, although I when I go to the admin age on local host, I can't login using the default user-name and password. It doesn't give me an (password or user) error message, it just brings me straight back to the login screen and the browser asks me if I want to remember the password. I would normally expect to see the dashboard of the admin side. However this isn;t happening.

 

I have also removed the .htaccess files from the public_html folder

 

Is there a redirect somewhere in the code.

 

Any help would be VERY VERY much appreciated.

Thank you

Matt

Link to comment
Share on other sites

Jan,

 

Thank you for the reply. I changed the following from localhost to 127.0.0.1 and still seem to be getting the same issue as before

 

File: admin/includes/configure.php

 

 

define('HTTP_SERVER', 'http://127.0.0.1/xampp/homedir/public_html');

define('HTTP_CATALOG_SERVER', 'http://127.0.0.1/xampp/homedir/public_html');

 

define('DB_SERVER', '127.0.0.1');

 

Do you have any other suggestions? or have I changed something I shouldn't?

 

Any feedback is very grateful.

 

Cheers,

Matt

Link to comment
Share on other sites

Do you have any other suggestions? or have I changed something I shouldn't?

You could have left the DB_SERVER at localhost but since it is apparently working it is no problem apparently.

 

- Is the url in the form action of the login OK (it could point to https or something strange - do a "view source" in your browser.)

- Check if you get admin cookies for 127.0.0.1 (if so delete it and see if you get a new one.)

- Start up "Terminal" and use curl to go your admin:

 

curl -v http://127.0.0.1/catalog/admin/login.php

From the headers you get (and you don't see those in your browser) you can sometimes also get information about redirects, not getting cookies etc.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...