Guest Posted July 19, 2004 Posted July 19, 2004 Hi, anybody know why I would suddenly be needing to log in twice to access the admin area... First login takes me to the main admin page that shows the different areas, if I try to click on any link I'm prompted to login in agian :blink: Thanks.
Guest Posted July 20, 2004 Posted July 20, 2004 I'm not exactly sure... I used 'Fantastico' on my server to install it.
TomThumb Posted July 20, 2004 Posted July 20, 2004 Are you using SSL? Are you connecting to the admin the first time as http://www.yoursite.com/catalog/admin and after you login it changes to https://www.yoursite.com/catalog/admin If so just connect to https://www.yoursite.com/catalog/admin the first time. while (!succeed) {try()}; GMT -6:00
kngrnr Posted July 20, 2004 Posted July 20, 2004 good point! let us know if TomThumb's idea worked K Groner
Guest Posted July 20, 2004 Posted July 20, 2004 When installing via fantastico and using SSL for your site you need to change the setting in your catalog/admin/includes/configure.php to something like this: // * DIR_FS_* = Filesystem directories (local/physical)// * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'https://secure.yourdomain.net'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'https://secure.yourdomain.net/'); define('HTTPS_CATALOG_SERVER', 'https://secure.yourdomain.net'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/yourusername/public_html/yourcatalogdirectory/'); // where the pages are located on the If you don't do this you will also get problems showing inserted pictures in the admin section while still logged in under SSL. The only thing that this then screws up is when you click the link to go to your own catalog store at the top of your admin sections. It opens the store in SSL mode. So ultimately I just editted the relevent files in the admin section to direct urls instead of using the insert tags. It was much easier at the end of the day.
Guest Posted July 20, 2004 Posted July 20, 2004 Thanks for all the replies... No, I'm not using SSL :(
Guest Posted July 23, 2004 Posted July 23, 2004 Nothing else would be causing this? Possibly. Have another look at your configure.php file in admin/includes and check it is set correctly. Its sound as though it's not.
Guest Posted July 23, 2004 Posted July 23, 2004 It appears to be OK to me, I'm really not sure though. Here are the lines dealing with my ssl. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://amillionlittlethings.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://amillionlittlethings.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', false); // secure webserver for checkout procedure?
TomThumb Posted July 23, 2004 Posted July 23, 2004 These lines are from the catalog configure file. Please post the ones from the admin configure file. Normally under /catalog/admin/includes/ while (!succeed) {try()}; GMT -6:00
Guest Posted July 24, 2004 Posted July 24, 2004 Oh... whoops. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://amillionlittlethings.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://amillionlittlethings.com'); define('HTTPS_CATALOG_SERVER', 'https://amillionlittlethings.com'); define('ENABLE_SSL_CATALOG', 'false'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/amlt/public_html/shopping/'); // where the pages are located on the server Thanks
Guest Posted July 24, 2004 Posted July 24, 2004 When you login to the admin what address exactly do you use? EG: http://www.amillionlittlethings.com/shopping/admin or http://amillionlittlethings.com/shopping/admin
Guest Posted July 24, 2004 Posted July 24, 2004 Hmmm... that's strange. If I try http://amillionlittlethings.com/shopping/admin first, it immediatly prompts me to log in again for http://www.amillionlittlethings.com/shopping/admin But if I try http://www.amillionlittlethings.com/shopping/admin first, it logs me into the first options screen... and then when I try to click on an option it prompts me to login for http://amillionlittlethings.com/shopping/admin :(
Guest Posted July 25, 2004 Posted July 25, 2004 Redroy OK I'm going to take a bit of a stab here. This could be something to do with the way hosting domain is setup. So, for the sake of the argument at the moment in you admin configure.php file add the "www." in these lines and see what happens define('HTTP_SERVER', 'http://amillionlittlethings.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://amillionlittlethings.com'); So it would then look like this: define('HTTP_SERVER', 'http://www.amillionlittlethings.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.amillionlittlethings.com'); Let me know how that goes.
Guest Posted July 25, 2004 Posted July 25, 2004 Excellent! That did it! Should I do the same with my shopping/includes/configure.php file? Thanks.
Guest Posted July 25, 2004 Posted July 25, 2004 Excellent! That did it! Should I do the same with my shopping/includes/configure.php file? Thanks. By the sound of things, yes. It certainly is not likely to cause any problems. Just remember if you find a fault/s especially if you add SSL to your store and any problems occur try altering the settings again to what works for you.
Guest Posted July 25, 2004 Posted July 25, 2004 Great... thanks for all the help. :D Not a problem glad to help. :D and thanks for taking the time to thank me, much appreciated also. Cheers
Recommended Posts
Archived
This topic is now archived and is closed to further replies.