nwweb Posted October 12, 2005 Share Posted October 12, 2005 Why does it take two login attempts to get into our Admin area? Any help is greatly appreciated. Link to comment Share on other sites More sharing options...
Guest Posted October 12, 2005 Share Posted October 12, 2005 I have this same problem. Link to comment Share on other sites More sharing options...
oldworldcharms Posted October 16, 2005 Share Posted October 16, 2005 Same problem here. any ideas how to fix this? thanks Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted October 17, 2005 Share Posted October 17, 2005 HTTP_SERVER variable should be set to 'https://yoururl.com' in admin/includes/local/configure.php to get rid of the problem. or just get rid of the second configure.php you have in that folder ;-) :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Guest Posted October 23, 2005 Share Posted October 23, 2005 Same problem here. any ideas how to fix this? thanks hi Monika! Well, I was all excited to fix this, until I went into the directory you mentioned and there was no configure.php. There were two files, a readme.txt and a .cvsignore file, which when opened under the edit feature, says configure.php. The configure.php file for some reason is in this directory: http://adirondacknutrition.com/admin/includes It does seem to be set how you mentioned:// Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.adirondacknutrition.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.adirondacknutrition.com'); and there is only 1 configure.php file in this directory. Any idea? vr, hi Monika! Well, I was all excited to fix this, until I went into the directory you mentioned and there was no configure.php. There were two files, a readme.txt and a .cvsignore file, which when opened under the edit feature, says configure.php. The configure.php file for some reason is in this directory: http://adirondacknutrition.com/admin/includes It does seem to be set how you mentioned:// Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.adirondacknutrition.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.adirondacknutrition.com'); and there is only 1 configure.php file in this directory. Any idea? vr, It hit me after I posted this... were you meaning that we have to move the configure.php from the /admin/includes/ to the /admin/includes/local/ dir? hi Monika! Well, I was all excited to fix this, until I went into the directory you mentioned and there was no configure.php. There were two files, a readme.txt and a .cvsignore file, which when opened under the edit feature, says configure.php. The configure.php file for some reason is in this directory: http://adirondacknutrition.com/admin/includes It does seem to be set how you mentioned:// Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.adirondacknutrition.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.adirondacknutrition.com'); and there is only 1 configure.php file in this directory. Any idea? vr, It hit me after I posted this... were you meaning that we have to move the configure.php from the /admin/includes/ to the /admin/includes/local/ dir? well, that didnt work. lol Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 23, 2005 Share Posted October 23, 2005 The standard location for configure.php is /includes/configure.php . I don't fully understand the reference to a second copy of it in /includes/local either. But reading the README, it appears that it can be used to modify settings from application_top.php. HTTP_SERVER variable should be set to 'https://yoururl.com' The key to what Monika was advising is "https://yoururl.com" Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted October 23, 2005 Share Posted October 23, 2005 The standard location for configure.php is /includes/configure.php . I don't fully understand the reference to a second copy of it in /includes/local either. But reading the README, it appears that it can be used to modify settings from application_top.php.The key to what Monika was advising is "https://yoururl.com" yup Mike got it right. Go check your fle for that S! the local folder is sometimes filled with a second configure.php. This can be so fun if you do not know about it and change all values correctly in admin/includes/configure.php and it still doesn't do what you want. Basically the local folder is there if you need values to override your regular configure file - for testing purposes etc. :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Guest Posted October 23, 2005 Share Posted October 23, 2005 yup Mike got it right. Go check your fle for that S! the local folder is sometimes filled with a second configure.php. This can be so fun if you do not know about it and change all values correctly in admin/includes/configure.php and it still doesn't do what you want. Basically the local folder is there if you need values to override your regular configure file - for testing purposes etc. I made the change as advised, but not only is it still asking me to log in twice, but now its asking me a third time when I click on "Orders". Here is what my code looks like: <?php /* osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'https://www.adirondacknutrition.com'); // eg, http://localhost - should not be empty for productive servers define('HTTP_CATALOG_SERVER', 'http://www.adirondacknutrition.com'); define('HTTPS_CATALOG_SERVER', 'https://www.adirondacknutrition.com'); define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module define('DIR_FS_DOCUMENT_ROOT', '/home/adironda/public_html/'); // where the pages are located on the server define('DIR_WS_ADMIN', '/admin/'); // absolute path required define('DIR_FS_ADMIN', '/home/adironda/public_html/admin/'); // absolute pate required define('DIR_WS_CATALOG', '/'); // absolute path required define('DIR_FS_CATALOG', '/home/adironda/public_html/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/'); define('DIR_WS_INCLUDES', 'includes/'); define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/'); define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/'); define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/'); define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/'); define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/'); define('DIR_WS_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/'); define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/'); define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/'); define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', 'myusername'); define('DB_SERVER_PASSWORD', 'mypassword'); define('DB_DATABASE', 'adironda_osc1'); define('USE_PCONNECT', 'false'); // use persisstent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted October 23, 2005 Share Posted October 23, 2005 I double checked my files that work fine, they have the same SSL url for the first 3 parameters. so please try to change your define('HTTP_CATALOG_SERVER', 'http://www.adirondacknutrition.com'); to define('HTTP_CATALOG_SERVER', 'https://www.adirondacknutrition.com'); :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 23, 2005 Share Posted October 23, 2005 Hmm. I just checked my working config and it looks like adirnonda's does now with HTTP_CATALOG_SERVER as http, not https. One thing comes to mind. Earlier you stated: It hit me after I posted this... were you meaning that we have to move the configure.php from the /admin/includes/ to the /admin/includes/local/ dir? Is there a chance that you did put a copy there and that it is still there? If none of that works, then I think it might be time to look elsewhere than the configure.php file. Which method did you use to secure admin? You might try removing the password protection and then reprotect it using the directory protection features in your web control panel (even if that is how it is now). Sometimes it gets fouled for no apparent reason and removing the password protection and replacing it cleans it up and makes it behave. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
Guest Posted October 23, 2005 Share Posted October 23, 2005 I double checked my files that work fine, they have the same SSL url for the first 3 parameters. so please try to change your define('HTTP_CATALOG_SERVER', 'http://www.adirondacknutrition.com'); to define('HTTP_CATALOG_SERVER', 'https://www.adirondacknutrition.com'); Hi Monika, I think its something to do with my website host. I had a password protect on my admin through my host, so I thought that was the problem. So for the heck of it, I removed the password protection through my host, which password protected that directory, but when I did, I found that my admin no longer had any password protection, so I added it back on. I think Ive about given up on this one... lol I greatly appreciate all the help! Thanks for taking the time! vr, Don Link to comment Share on other sites More sharing options...
GraphicsGuy Posted October 23, 2005 Share Posted October 23, 2005 Don, it looks like you posted at the same time as I did and had the same idea. I tend to agree that it is more related to the server setup than your osc config. I would recommend reproting it to your host and see what they say. Rule #1: Without exception, backup your database and files before making any changes to your files or database. Rule #2: Make sure there are no exceptions to Rule #1. Link to comment Share on other sites More sharing options...
♥Monika in Germany Posted October 23, 2005 Share Posted October 23, 2005 Don, it looks like you posted at the same time as I did and had the same idea. I tend to agree that it is more related to the server setup than your osc config. I would recommend reproting it to your host and see what they say. I'm so glad to hear it's working now! Was starting to get confused :-" :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.