fatmcgav Posted April 11, 2005 Posted April 11, 2005 Hey there, I just switched my site from my testing server to the production server in prep of going live, and on testing found that the login is no longer working. The login box just refreshes the page, and the login.php page just goes back to the index page. I've had a quick search, but have found no definitive answers. On changing the files over, i ran the config part of the install again, to make sure everything was config'd correctly. My Config file now looks like this: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://mickie.fatmcgav.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', 'false'); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mickie.fatmcgav.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/fatmcgav/public_html/mickie/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); You can find my site here. This is very strange, and also very annoying, so any help is appreicated. Cheers Fatmcgav
cjohnson_uk Posted April 11, 2005 Posted April 11, 2005 Hey there, I just switched my site from my testing server to the production server in prep of going live, and on testing found that the login is no longer working. The login box just refreshes the page, and the login.php page just goes back to the index page. I've had a quick search, but have found no definitive answers. On changing the files over, i ran the config part of the install again, to make sure everything was config'd correctly. My Config file now looks like this: // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://mickie.fatmcgav.co.uk'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', 'false'); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'mickie.fatmcgav.co.uk'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/'); define('DIR_WS_HTTPS_CATALOG', ''); define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); 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_DOWNLOAD_PUBLIC', 'pub/'); define('DIR_FS_CATALOG', '/home/fatmcgav/public_html/mickie/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); You can find my site here. This is very strange, and also very annoying, so any help is appreicated. Cheers Fatmcgav <{POST_SNAPBACK}> Did you get this sorted as I've run into the same thing. Started install again from scratch on an identical web server account and it works fine so its not a server side issue but I can't work out why logins stopped!
♥Vger Posted April 11, 2005 Posted April 11, 2005 This looks wrong to me: '/home/fatmcgav/public_html/mickie/'); This would appear to be the pathway to a folder of that name and not to a subdomain. Vger
fatmcgav Posted April 11, 2005 Author Posted April 11, 2005 This looks wrong to me: '/home/fatmcgav/public_html/mickie/'); This would appear to be the pathway to a folder of that name and not to a subdomain. Vger <{POST_SNAPBACK}> As far as i know, that was set by the install file. I just looked at the config step of teh install, and it sets that as the Webserver Root Dir. The folder is the same as the sub-domain - the site can be accessed from both http://mickie.fatmcgav.co.uk and www.fatmcgav.co.uk/mickie. Any more ideas? Cheers Fatmcgav Edit: I just noticed something else. If I click on login, it redirects to index.php even if i enter no email address, invalid email address, valid email address and email address and password. It's almost as if the login routine has disappeared.
♥Vger Posted April 11, 2005 Posted April 11, 2005 I just looked at the config step of teh install, and it sets that as the Webserver Root Dir. Did you do the install via the subdomain e.g. http://mickie.fatmcgav.co.uk/install or via the root of the domain, in the folder 'mickie': http://fatmcgav.co.uk/mickie/install If you are installing in a subdomain you need to run the install from there. The fact that the subdomain is aliased to a folder makes no difference. Vger
fatmcgav Posted April 11, 2005 Author Posted April 11, 2005 Did you do the install via the subdomain e.g. http://mickie.fatmcgav.co.uk/install or via the root of the domain, in the folder 'mickie': http://fatmcgav.co.uk/mickie/install If you are installing in a subdomain you need to run the install from there. The fact that the subdomain is aliased to a folder makes no difference. Vger <{POST_SNAPBACK}> It was installed via http://mickie.fatmcgav.co.uk, hence why thats the address in the config file. Somebody must know how to fix this... Cheers Fatmcgav
♥Vger Posted April 11, 2005 Posted April 11, 2005 Try this. On the last line of both configure.php files make sure that it reads 'mysql' where indicated. If you have Use Cache set to 'true' set it to 'false' and see if those measures help. Delete your Temporary Internet Files, including all Offline Content and delete your History. Vger
fatmcgav Posted April 12, 2005 Author Posted April 12, 2005 Try this. On the last line of both configure.php files make sure that it reads 'mysql' where indicated. If you have Use Cache set to 'true' set it to 'false' and see if those measures help. Delete your Temporary Internet Files, including all Offline Content and delete your History. Vger <{POST_SNAPBACK}> Both files set to 'mysql' and Cache Use was set to 'false' already... Any more? Cheers Fatmcgav
boxtel Posted April 12, 2005 Posted April 12, 2005 Both files set to 'mysql' and Cache Use was set to 'false' already... Any more? Cheers Fatmcgav <{POST_SNAPBACK}> well, my guess is that there is something wrong in the top of your login.php file. Treasurer MFC
fatmcgav Posted April 12, 2005 Author Posted April 12, 2005 well, my guess is that there is something wrong in the top of your login.php file. <{POST_SNAPBACK}> I just looked at the login.php file and it's stock, no changes at all... Any more ideas? Cheers Fatmcgav
Winterchild Posted April 12, 2005 Posted April 12, 2005 I just looked at the login.php file and it's stock, no changes at all... You did change something. I don't think the "remember me" check box is stock. Could the problem originate from there? (I have no idea how to help, just typing the first thing that comes to mind, don't shoot me) Forum search Contributions search Documentation search (note: docs being adapted for MS3, may be different for MS2) 3 tips for better forum searching Want to post? Read this first: osCommerce for dummies Topic name etiquette Basics: Basics for design Right syntax to use near '-20, 20' Cannot re-assign $this Parse error
cjohnson_uk Posted April 12, 2005 Posted April 12, 2005 I just looked at the login.php file and it's stock, no changes at all... Any more ideas? Cheers Fatmcgav <{POST_SNAPBACK}> Admitedly I'm using thestorezone osc "fork" so things may be different but I turned off "force cookies" and its seemed OK. Changed my cookies folder to something other than "/" and made sure there was public write access to it. Not sure if that helps you though. Chris
fatmcgav Posted April 12, 2005 Author Posted April 12, 2005 You did change something. I don't think the "remember me" check box is stock. Could the problem originate from there? (I have no idea how to help, just typing the first thing that comes to mind, don't shoot me) <{POST_SNAPBACK}> Yeh, that was PWA - but i've now changed the login.php page back to the stock page, and it still does the same... Admitedly I'm using thestorezone osc "fork" so things may be different but I turned off "force cookies" and its seemed OK. Changed my cookies folder to something other than "/" and made sure there was public write access to it. Not sure if that helps you though. Chris <{POST_SNAPBACK}> Force cookies is set to false already, and there was no tmp dir, but i've just created one and made it world-writeable, and it still doesnt work. Any more ideas ppl - i really dont want to have to go back through and re-do ALL the changes i've made from scratch. Cheers Fatmcgav
boxtel Posted April 12, 2005 Posted April 12, 2005 Yeh, that was PWA - but i've now changed the login.php page back to the stock page, and it still does the same...Force cookies is set to false already, and there was no tmp dir, but i've just created one and made it world-writeable, and it still doesnt work. Any more ideas ppl - i really dont want to have to go back through and re-do ALL the changes i've made from scratch. Cheers Fatmcgav <{POST_SNAPBACK}> force cookies to false has nothing to do with it, the login should then still work via the session in the url if cookies are not accepted. you will simply have to trace what happens in the top of login.php after you press login. you can simply add code at the various locations like : if (tep_get_ip_address() == 'YOUR_IP_ADDRESS') { echo 'variable x = ' . variablex . '<br>'; echo 'variable y = ' . variabley . '<br>'; echo 'variable z = ' . variablez . '<br>'; } that way your customers will not see the variables on the screen, only you. Treasurer MFC
♥Vger Posted April 12, 2005 Posted April 12, 2005 It's the Best Login box you've added to your homepage that is causing the problem. If I type in www.yourdomain.com/login.php I get there without a problem. If I click Checkout I am directed to the Login/Create Account page. You need to go back through your install of this Contribution to find the source of your problem. Vger
fatmcgav Posted April 12, 2005 Author Posted April 12, 2005 It's the Best Login box you've added to your homepage that is causing the problem. If I type in www.yourdomain.com/login.php I get there without a problem. If I click Checkout I am directed to the Login/Create Account page. You need to go back through your install of this Contribution to find the source of your problem. Vger <{POST_SNAPBACK}> Getting to the login.php page isnt a problem, logining in is.... I just commented out the login box, and it still dosent work. I dont see why that should affect it, as it's just a drop in box with no actual code changes to login.php or anything related to it. As an example, go to login.php and try to login with uname: [email protected] and pass: testpass - I just created this account so it's valid - and you'll see what i mean. force cookies to false has nothing to do with it, the login should then still work via the session in the url if cookies are not accepted. you will simply have to trace what happens in the top of login.php after you press login. you can simply add code at the various locations like : if (tep_get_ip_address() == 'YOUR_IP_ADDRESS') { echo 'variable x = ' . variablex . '<br>'; echo 'variable y = ' . variabley . '<br>'; echo 'variable z = ' . variablez . '<br>'; } that way your customers will not see the variables on the screen, only you. <{POST_SNAPBACK}> Ok, i'll give this a go: do i simply replace 'YOUR_IP_ADDRESS' with my actual IP address? Do i just need to add it to the top of login.php? Keep em coming guys, i'm sure we'll get there eventually. Cheers Gavin
boxtel Posted April 12, 2005 Posted April 12, 2005 Getting to the login.php page isnt a problem, logining in is....I just commented out the login box, and it still dosent work. I dont see why that should affect it, as it's just a drop in box with no actual code changes to login.php or anything related to it. As an example, go to login.php and try to login with uname: [email protected] and pass: testpass - I just created this account so it's valid - and you'll see what i mean. Ok, i'll give this a go: do i simply replace 'YOUR_IP_ADDRESS' with my actual IP address? Do i just need to add it to the top of login.php? Keep em coming guys, i'm sure we'll get there eventually. Cheers Gavin <{POST_SNAPBACK}> ofcourse your ip address, and place copies of it everywhere in the code you wich to check. Treasurer MFC
♥Vger Posted April 12, 2005 Posted April 12, 2005 Looking at the code on that page you've got a real mix of addresses. Some appear with the full pathway including the domain, some appear with just the filename, some image links are relative but others appear with the full file name, and some file pathways start with a forward slash (which they shouldn't) - see '/advanced_search.php'. I'm sorry, but I don't think I (or anyone else) can help you here - because only you know what mods you have installed and which files have been impacted. You've definitely got STS installed, plus Meta Tags, plus Login Box, plus All Prods, plus a News feed, and goodness knows what else. One thing is for certain - your site doesn't hold a session id, and that's why you can't login or checkout. Vger
GothicPenguin Posted April 12, 2005 Posted April 12, 2005 I am having a similar problem, except that the store hangs in IE or give a 'transmission failure' in Opera when trying to log-in or checkout. (trying to access an "https://" url) I just moved to a new server. Here is my config if anyone has the time? // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://hdshirts.com'); // eg, http://localhost - should not be NULL for productive servers define('HTTPS_SERVER', 'https://hdshirts.com'); // eg, https://localhost - should not be NULL for productive servers define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? define('DIR_WS_CATALOG', '/shop/catalog/'); // absolute path required define('DIR_WS_IMAGES', 'images/'); define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname 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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); define('DIR_FS_DOCUMENT_ROOT', 'home/shirts/public_html/'); define('DIR_FS_CATALOG', 'home/shirts/public_html/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers define('DB_SERVER_USERNAME', '*****'); define('DB_SERVER_PASSWORD', '*****''); define('DB_DATABASE', '*****''); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
fatmcgav Posted April 12, 2005 Author Posted April 12, 2005 GET IN THERE!!!!!!!!!!!! Problem Found :D :D :D :D It was a problem in application_top.php, namely a clash between Wishlist Contrib and HideProductsFromGroups... so i think i'll ask in one of teh support threads for those contribs on how to fix it... Thanks for ure help guys. Cheers Fatmcgav
cjohnson_uk Posted April 12, 2005 Posted April 12, 2005 GET IN THERE!!!!!!!!!!!!Problem Found :D :D :D :D It was a problem in application_top.php, namely a clash between Wishlist Contrib and HideProductsFromGroups... so i think i'll ask in one of teh support threads for those contribs on how to fix it... Thanks for ure help guys. Cheers Fatmcgav <{POST_SNAPBACK}> Any chance of copying the soln back here when its found (or at least a link to the soln in the other thread? Chris
♥Vger Posted April 12, 2005 Posted April 12, 2005 Well, either that is not an osCommerce config file, or it's from a 'loaded' version, or half of it is just plain missing. There is no DIR_WS_CATALOG in includes/configure.php only in admin/includes/configure.php For includes/configure.php these entries are missing completely: define('HTTP_COOKIE_DOMAIN', 'www.yourdomain.com'); define('HTTPS_COOKIE_DOMAIN', 'www.yourdomain.com'); define('HTTP_COOKIE_PATH', '/shop/catalog/'); define('HTTPS_COOKIE_PATH', '/shop/catalog/'); define('DIR_WS_HTTP_CATALOG', '/shop/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/shop/catalog/'); Vger I am having a similar problem, except that the store hangs in IE or give a 'transmission failure' in Opera when trying to log-in or checkout. (trying to access an "https://" url) I just moved to a new server. Here is my config if anyone has the time? // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) ?define('HTTP_SERVER', 'http://hdshirts.com'); // eg, http://localhost - should not be NULL for productive servers ?define('HTTPS_SERVER', 'https://hdshirts.com'); // eg, https://localhost - should not be NULL for productive servers ?define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? ?define('DIR_WS_CATALOG', '/shop/catalog/'); // absolute path required ?define('DIR_WS_IMAGES', 'images/'); ?define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/'); ?define('DIR_WS_INCLUDES', 'includes/'); // If "URL fopen wrappers" are enabled in PHP (which they are in the default configuration), this can be a URL instead of a local pathname ?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_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/'); ?define('DIR_FS_DOCUMENT_ROOT', 'home/shirts/public_html/'); ?define('DIR_FS_CATALOG', 'home/shirts/public_html/'); ?define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); ?define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection ?define('DB_SERVER', 'localhost'); // eg, localhost - should not be NULL for productive servers ?define('DB_SERVER_USERNAME', '*****'); ?define('DB_SERVER_PASSWORD', '*****''); ?define('DB_DATABASE', '*****''); ?define('USE_PCONNECT', 'false'); // use persistent connections? ?define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?> <{POST_SNAPBACK}>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.