lfkiter Posted July 22, 2006 Posted July 22, 2006 Hi there, My installation of OSC was working perfect a couple days ago. Now when I click on Add to Cart, I'm getting Your Shopping Cart is empty! message. I have it setup with SSL, and I can't figure out why it can't add the products. Here is how I have the sessions setup: Session Directory /usr/local/psa/home/vhosts/emeraldcoastkiteboarding.com/httpdocs/oscommerce/tmp Force Cookie Use False Check SSL Session ID True Check User Agent False Check IP Address False Prevent Spider Sessions True Recreate Session True Shop url: http://emeraldcoastkiteboarding.com/oscommerce/ Now i had to place a copy of /oscommerce under my https directory, so I could get the SSL to work. Any help is greatly appreciated. Thanks, Wayne
Guest Posted July 22, 2006 Posted July 22, 2006 you should check your includes\configure.php file. If you post it here exclude the dbase sensitive info. Your sessions change continuously so did you make any changes session related files or application_top.php?
lfkiter Posted July 22, 2006 Author Posted July 22, 2006 you should check your includes\configure.php file. If you post it here exclude the dbase sensitive info. Your sessions change continuously so did you make any changes session related files or application_top.php? here it is, hope this helps..i can't figure it out. i haven't made any changes to my site lately. <?php // Please, note that all changes in this file will be lost // after reconfiguring application by Plesk define('HTTP_SERVER', 'http://emeraldcoastkiteboarding.com'); define('HTTPS_SERVER', 'https://emeraldcoastkiteboarding.com'); define('ENABLE_SSL', 'true'); define('HTTP_COOKIE_DOMAIN', 'http://emeraldcoastkiteboarding.com'); define('HTTPS_COOKIE_DOMAIN', 'https://emeraldcoastkiteboarding.com'); define('HTTP_COOKIE_PATH', '/oscommerce/'); define('HTTPS_COOKIE_PATH', '/oscommerce/'); define('DIR_WS_HTTP_CATALOG', '/oscommerce/'); define('DIR_WS_HTTPS_CATALOG', '/oscommerce/'); 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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME'])); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
Guest Posted July 22, 2006 Posted July 22, 2006 the cart works on the secure area. Are both secure/non-secure folders synchronized? Or you have different files? As for the configure.php has mistakes with the cookies you should have: define('HTTP_COOKIE_DOMAIN', 'emeraldcoastkiteboarding.com'); define('HTTPS_COOKIE_DOMAIN', 'emeraldcoastkiteboarding.com');
lfkiter Posted July 22, 2006 Author Posted July 22, 2006 the cart works on the secure area. Are both secure/non-secure folders synchronized? Or you have different files? As for the configure.php has mistakes with the cookies you should have: define('HTTP_COOKIE_DOMAIN', 'emeraldcoastkiteboarding.com'); define('HTTPS_COOKIE_DOMAIN', 'emeraldcoastkiteboarding.com'); Thanks, that fixed it ! the sec/non secure folders are synced... Thanks for the help.
Guest Posted July 23, 2006 Posted July 23, 2006 this fixed my problem also, I have different cookie domains, define('HTTP_COOKIE_DOMAIN', 'store.warheads.ca'); define('HTTPS_COOKIE_DOMAIN', 'store.c3.hostexcellence.com'); but as soon as I removed the http, and https it worked fine.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.