Robi Posted May 20, 2004 Posted May 20, 2004 New install, SSL not enabled. Registered Globals are ON Sessions are using mysql. Shared Server Apache on FreeBSD Everything is fine until you click on checkout or continue shopping, then the shopping cart empties. User is logged on. I can log off and log back on and the items are in the shopping cart again, but same result when trying to checkout. I've read many of the posts regarding this problem and while most relate to SSL I have tried the suggestions not relating to SSL. I tried forcing cookies, checked permissions /tmp , paths, .htaccess I'm not sure what else to do. Most of the settings are from the default setup. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://shop.compmore.net'); // 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', 'shop.compmore.net'); define('HTTPS_COOKIE_DOMAIN', ''); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', ''); define('DIR_WS_HTTP_CATALOG', '/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', '/usr/home/compshop/public_html/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'apache.compmore.net'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'shopping'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
Guest Posted May 20, 2004 Posted May 20, 2004 What happens sometimes is that the ISP you use may be changing the IP address I know AOL does this alot....so you may try and goto admin/configuation/sessions and set Check IP Address to false may fix your problem Let me know If this fixes it please.... Mike Spires
Robi Posted May 20, 2004 Author Posted May 20, 2004 Shop Computers & More Ip address is fixed Check IP Address is False (default)
Robi Posted May 25, 2004 Author Posted May 25, 2004 Have reinstalled twice. Same problem. Not one to give up, but I've wasted too much time with this. :angry:
♥Vger Posted May 25, 2004 Posted May 25, 2004 Normally, when installed on a full domain, this line in your config files would read like so define('HTTP_COOKIE_DOMAIN', 'www.compmore.net'); Now, your install is in a subdomain (no www), so there may be a problem with this setting define('HTTP_COOKIE_DOMAIN', 'shop.compmore.net'); try this instead and see if it works define('HTTP_COOKIE_DOMAIN', 'http://shop.compmore.net'); normally you wouldn't use the prefix 'http', but as it's a subdomain without a 'www' prefix you may need to include the 'http' to get the cookies working - and without the cookies working properly you'll get just the sort of problem you're describing. Also, as you've installed to a subdomain called 'shop', why have you also installed to a directory called 'catalog'. It would have been a lot easier to install it in the root of the subdomain. You know your servers' configuration better than me, but this line looks to be an odd definition define('DB_SERVER', 'apache.compmore.net'); Are you sure that it's not something like define('DB_SERVER', 'localhost'); or define('DB_SERVER', '127.0.0.1'); Also, and finally, even if this is correct it places your database server in the full domain and not the subdomain, which could cause problems with file pathways and permissions. Hope this helps - Vger
♥Vger Posted May 25, 2004 Posted May 25, 2004 Just tried to follow the url you supllied, and this is what shows 403 Forbidden "You don't have permission to access / on this server"
Robi Posted May 25, 2004 Author Posted May 25, 2004 Thanks, I will start over using your suggestions. I had removed the site so the link I had provided obviously won't work.
Robi Posted May 25, 2004 Author Posted May 25, 2004 Still not working, I guess I should try installing it using the ip address and not a sub domain of our main site. Here is the new config file. I have another sub domain called webmail.compmore.net (web based e-mail) which uses PHP and sessions without any problems. Not using mysql though. On the same server though. I just dont know what else to try. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://shop.compmore.net'); // 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', 'http://shop.compmore.net'); 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', '/usr/home/compshop/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 empty for productive servers define('DB_SERVER_USERNAME', '****'); define('DB_SERVER_PASSWORD', '*****'); define('DB_DATABASE', 'shopping'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' ?>
Robi Posted May 25, 2004 Author Posted May 25, 2004 Have installed at a new domain. My Webpage Same problem. So we can rule out the subdomain problem. If someone can go to my admin page and check out the server info, and see if there is a problem with the mysql, PHP or Session info on the server. admin is no longer pass protected, at least for now. Any help would be appreciated.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.