Jump to content



Latest News: (loading..)

- - - - -

STRANGE admin problem - Probably easy solution

admin login on backup

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1   MattCardly

MattCardly
  • Members
  • 7 posts

Posted 10 December 2011 - 09:14 AM

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

#2 ONLINE   Jan Zonjee

Jan Zonjee

    Governor of Peace

  • Core Team
  • 7,045 posts

Posted 10 December 2011 - 09:30 AM

Instead of using localhost for the server name in the config, use 127.0.0.1
Might be an issue of not being to set a cookie (domain name needs dots in it)
(For the MySQL entry you can use localhost though)

Edited by Jan Zonjee, 10 December 2011 - 09:31 AM.


#3   MattCardly

MattCardly
  • Members
  • 7 posts

Posted 11 December 2011 - 12:52 PM

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

#4 ONLINE   Jan Zonjee

Jan Zonjee

    Governor of Peace

  • Core Team
  • 7,045 posts

Posted 11 December 2011 - 02:08 PM

View PostMattCardly, on 11 December 2011 - 12:52 PM, said:

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.