renix Posted February 17, 2006 Posted February 17, 2006 Okay folks. I realize that this topic has been gone over ad nauseum in many forums, but I still haven't been able to come up with a solution that works for me. After installing this contribution, I was able to place a test order. Since then, customers are unable to add many products to their shopping cart. From what I can ascertain, it's a cookie/cookie domain problem. I have an SSL cert that was set up as www.fxsails.com. My store is in a catalog directory, not in the root. In my config, force cookies is set to false. My config file. I have tried www.fxsails.com, .fxsails.com and fxsails.com for the http and https cookie domains. What could I possibly be missing? The store was fully operational before adding Ultimate SEO URLs and the Oscommerce-2.2ms2-051113 update. I've gone over the installations a few times and can't locate any mistakes. I could really use some help with this one. Any ideas would be greatly appreciated. Thanks. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.fxsails.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.fxsails.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.fxsails.com'); define('HTTPS_COOKIE_DOMAIN', 'www.fxsails.com'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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/airfx/public_html/fxsails/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); Quote
boxtel Posted February 17, 2006 Posted February 17, 2006 Okay folks. I realize that this topic has been gone over ad nauseum in many forums, but I still haven't been able to come up with a solution that works for me. After installing this contribution, I was able to place a test order. Since then, customers are unable to add many products to their shopping cart. From what I can ascertain, it's a cookie/cookie domain problem. I have an SSL cert that was set up as www.fxsails.com. My store is in a catalog directory, not in the root. In my config, force cookies is set to false. My config file. I have tried www.fxsails.com, .fxsails.com and fxsails.com for the http and https cookie domains. What could I possibly be missing? The store was fully operational before adding Ultimate SEO URLs and the Oscommerce-2.2ms2-051113 update. I've gone over the installations a few times and can't locate any mistakes. I could really use some help with this one. Any ideas would be greatly appreciated. Thanks. // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.fxsails.com'); // eg, http://localhost - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.fxsails.com'); // eg, https://localhost - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.fxsails.com'); define('HTTPS_COOKIE_DOMAIN', 'www.fxsails.com'); define('HTTP_COOKIE_PATH', '/catalog/'); define('HTTPS_COOKIE_PATH', '/catalog/'); define('DIR_WS_HTTP_CATALOG', '/catalog/'); define('DIR_WS_HTTPS_CATALOG', '/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/airfx/public_html/fxsails/catalog/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); unable to add many products to their shopping cart? what does that mean? Quote Treasurer MFC
renix Posted February 17, 2006 Author Posted February 17, 2006 unable to add many products to their shopping cart? what does that mean? Examples: 1)I can add a sunfish sail to the shopping cart and proceed all the way through checkout. 2) If I try to add a catalina sail, or J22 sail to an empty cart, I get the "Your Shopping Cart is Empty" message. 3) If I try to add a catalina sail to a cart that already contains a sunfish sail, the catalina sail doesn't get added to the cart. Does that help? Quote
renix Posted February 17, 2006 Author Posted February 17, 2006 Examples: 1)I can add a sunfish sail to the shopping cart and proceed all the way through checkout. 2) If I try to add a catalina sail, or J22 sail to an empty cart, I get the "Your Shopping Cart is Empty" message. 3) If I try to add a catalina sail to a cart that already contains a sunfish sail, the catalina sail doesn't get added to the cart. Does that help? Discovered this error in the logs when I try to add an item to the cart: [Fri Feb 17 15:05:58 2006] [error] (2)No such file or directory: mod_define: Variable 'Id:' not defined: file /home/airfx/public_html/fxsails/catalog/.htaccess, line 1 .htaccess is as follows: # $Id: .htaccess,v 1.3 2003/06/12 10:53:20 hpdl Exp $ # # This is used with Apache WebServers # # For this to work, you must include the parameter 'Options' to # the AllowOverride configuration # # Example: # # <Directory "/usr/local/apache/htdocs"> # AllowOverride Options # </Directory> # # 'All' with also work. (This configuration is in the # apache/conf/httpd.conf file) # The following makes adjustments to the SSL protocol for Internet # Explorer browsers <IfModule mod_setenvif.c> <IfDefine SSL> SetEnvIf User-Agent ".*MSIE.*" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 </IfDefine> </IfModule> # Fix certain PHP values # (commented out by default to prevent errors occuring on certain # servers) #<IfModule mod_php4.c> # php_value session.use_trans_sid 0 # php_value register_globals 1 #</IfModule> RewriteEngine On RewriteBase /catalog/ RewriteRule ^(.*)-p-(.*).html$ product_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-c-(.*).html$ index.php?cPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-m-([0-9]+).html$ index.php?manufacturers_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pi-([0-9]+).html$ popup_image.php?pID=$2&%{QUERY_STRING} RewriteRule ^(.*)-t-([0-9]+).html$ articles.php?tPath=$2&%{QUERY_STRING} RewriteRule ^(.*)-a-([0-9]+).html$ article_info.php?articles_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pr-([0-9]+).html$ product_reviews.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-pri-([0-9]+).html$ product_reviews_info.php?products_id=$2&%{QUERY_STRING} RewriteRule ^(.*)-i-([0-9]+).html$ information.php?info_id=$2&%{QUERY_STRING} I don't know what's wrong, though. The only thing I added to this is from the RewriteEngine On down to the bottom, which is how it's supposed to be according to the Ultimate SEO Urls contribution. Anyone have any ideas. I'm absolutely stumped - that's what happens when designers attempt to become programmers! Thanks, Mike Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.