Guest Posted March 15, 2006 Posted March 15, 2006 Shop went live two nights ago. First night all worked well (teted logging in, signing up etc). Two people signed up and purchased items, so sign up and log in pages were apparently all working well. Last night nothing - partner was checking who's online regularly and no-one at all was logged in. He's tried to log in himself this morning and it won't work - logging in returns you to the homepage, still with the welcome "guest" text. Plus there's script error gobblegook at the foot of both the sign up and log in pages: "1062 - Duplicate entry '936a5a7a79358dc56da3f1818dca4c2b' for key 1 insert into sessions values ('936a5a7a79358dc56da3f1818dca4c2b?osCAdminID=96f0d033c2e4a4400c1b3fc777b54eca', '1142430643', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"GBP\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:9:\"login.php\";s:4:\"mode\";s:6:\"NONSSL\";s:3:\"get\";a:1:{s:6:\"osCsid\";s:76:\"936a5a7a79358dc56da3f1818dca4c2b?osCAdminID=96f0d033c2e4a4400c1b3fc777b54eca\";}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:0:{}}') [TEP STOP] 1062 - Duplicate entry '936a5a7a79358dc56da3f1818dca4c2b' for key 1 insert into sessions values ('936a5a7a79358dc56da3f1818dca4c2b?osCAdminID=96f0d033c2e4a4400c1b3fc777b54eca', '1142430643', 'cart|O:12:\"shoppingcart\":4:{s:8:\"contents\";a:0:{}s:5:\"total\";i:0;s:6:\"weight\";i:0;s:12:\"content_type\";b:0;}language|s:7:\"english\";languages_id|s:1:\"1\";currency|s:3:\"GBP\";navigation|O:17:\"navigationhistory\":2:{s:4:\"path\";a:1:{i:0;a:4:{s:4:\"page\";s:9:\"login.php\";s:4:\"mode\";s:6:\"NONSSL\";s:3:\"get\";a:1:{s:6:\"osCsid\";s:76:\"936a5a7a79358dc56da3f1818dca4c2b?osCAdminID=96f0d033c2e4a4400c1b3fc777b54eca\";}s:4:\"post\";a:0:{}}}s:8:\"snapshot\";a:0:{}}') [TEP STOP] Warning: Unknown(): A session is active. You cannot change the session module's ini settings at this time. in Unknown on line 0" Can anyone shed any light on what has happened and how to fix this? If anyone wants to see the pages for themselves the URl is www.fast-lad.co.uk/shop/
mattgagnon Posted March 15, 2006 Posted March 15, 2006 Post the contents of the file: catalog/includes/configure.php (minus the database and password settings at the bottom) and also go into your adminstrative section->configuration->sessions and post those setings here. It looks like you have a sessions configuration problem. Matt
Guest Posted March 15, 2006 Posted March 15, 2006 configure.php as follows: <?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ 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', 'http://fast-lad.co.uk'); define('HTTPS_SERVER', 'https://fast-lad.co.uk'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://fast-lad.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'https://fast-lad.co.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); define('DIR_WS_IMAGES', '/shop/images/'); define('DIR_WS_ICONS', '/shop/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection *********** ?> Sessions settings from admin: Sessions Title Value Action Session Directory /tmp Force Cookie Use False Check SSL Session ID False Check User Agent False Check IP Address False Prevent Spider Sessions False Recreate Session False
Guest Posted March 16, 2006 Posted March 16, 2006 I have a similar issue where I can log in and do all the things I want, including a purchase right through to the checkout, but then another customer keeps getting 'please log in' back at them after logging in and getting to the same stage and then bounced back to the homepage.
mattgagnon Posted March 16, 2006 Posted March 16, 2006 configure.php as follows:<?php /* $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $ 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', 'http://fast-lad.co.uk'); define('HTTPS_SERVER', 'https://fast-lad.co.uk'); define('ENABLE_SSL', false); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'http://fast-lad.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'https://fast-lad.co.uk'); define('HTTP_COOKIE_PATH', '/'); define('HTTPS_COOKIE_PATH', '/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); define('DIR_WS_IMAGES', '/shop/images/'); define('DIR_WS_ICONS', '/shop/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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection *********** ?> Sessions settings from admin: Sessions Title Value Action Session Directory /tmp Force Cookie Use False Check SSL Session ID False Check User Agent False Check IP Address False Prevent Spider Sessions False Recreate Session False It looks to me like you need to change your cookie domains from this: define('HTTP_COOKIE_DOMAIN', 'http://fast-lad.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'https://fast-lad.co.uk'); to this: define('HTTP_COOKIE_DOMAIN', 'fast-lad.co.uk'); define('HTTPS_COOKIE_DOMAIN', 'fast-lad.co.uk'); At least that is my understanding from searching the forums, and these settings have worked for me. Do you have a secure certificate? If so, you must also set: define('ENABLE_SSL', false); // secure webserver for checkout procedure? to define('ENABLE_SSL', 'true'); // secure webserver for checkout procedure? (notice the quotes around 'true') Also, I would set Prevent Spider Sessions to True, because this will prevent search engines from creating infinite copies of your pages (they'll all be different with session ids in the url), but even more importantly, it will prevent many people from then using those indexed links to be able log in to one another's accounts and see private information. Very Important! That's all I can see. Hope this helps, Matt
Recommended Posts
Archived
This topic is now archived and is closed to further replies.