Guest Posted January 19, 2005 Posted January 19, 2005 When I ry to add someting to my cart it takes me to my cart and says "your cart is empty" How can I fix this?
staykalm Posted January 24, 2005 Posted January 24, 2005 I am having the same problem, my site is ready to go live apart from this problem. I have looked all over these forums, followed various suggestions but to no avail. It worked once and I think that was by pure accident, even on the demo page before you modify anything the shopping cart didn't work. I shall keep looking and if I do find a solution I will be sure to let you know and hope you will do same. Good luck :thumbsup: Kaz If at first you don't succeed, GIVE UP!!!!!!
ozcsys Posted January 24, 2005 Posted January 24, 2005 Does it do this when you are a guest or signed in or both? Where are you saving your sessions info? The Knowledge Base is a wonderful thing. Do you have a problem? Have you checked out Common Problems? There are many very useful osC Contributions Are you having trouble with a installed contribution? Have you checked out the support thread found Here BACKUP BACKUP BACKUP!!! You did backup, right??
boxtel Posted January 24, 2005 Posted January 24, 2005 I am having the same problem, my site is ready to go live apart from this problem. I have looked all over these forums, followed various suggestions but to no avail. It worked once and I think that was by pure accident, even on the demo page before you modify anything the shopping cart didn't work. I shall keep looking and if I do find a solution I will be sure to let you know and hope you will do same. Good luck :thumbsup: Kaz <{POST_SNAPBACK}> you must be losing the session for that to happen. post your configure.php because it is likely there is the problem. Treasurer MFC
staykalm Posted January 24, 2005 Posted January 24, 2005 It happens both as guest and when logged in. Here is the config.php <?php // Please, note that all changes in this file will be lost // after reconfiguring application by Plesk define('HTTP_SERVER', 'http://silverstoneoriginals.com'); define('HTTPS_SERVER', 'http://silverstoneoriginals.com'); define('ENABLE_SSL', 'false'); define('HTTP_COOKIE_DOMAIN', 'silverstoneoriginals.com'); define('HTTPS_COOKIE_DOMAIN', 'silverstoneoriginals.com'); define('HTTP_COOKIE_PATH', '/shop/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); 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/'); // define our database connection define('DB_SERVER', 'xxxxx'); define('DB_SERVER_USERNAME', 'xxxxx'); define('DB_SERVER_PASSWORD', 'xxxxx'); define('DB_DATABASE', 'xxxxx'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Any help would be greatly appreciated. Thanks in advance Kaz If at first you don't succeed, GIVE UP!!!!!!
jamesepain Posted January 24, 2005 Posted January 24, 2005 can people sign up ok? its just you got SSL disabled You Can Win, But I Can't Lose. James
boxtel Posted January 24, 2005 Posted January 24, 2005 It happens both as guest and when logged in. Here is the config.php <?php // Please, note that all changes in this file will be lost // after reconfiguring application by Plesk define('HTTP_SERVER', 'http://silverstoneoriginals.com'); define('HTTPS_SERVER', 'http://silverstoneoriginals.com'); define('ENABLE_SSL', 'false'); define('HTTP_COOKIE_DOMAIN', 'silverstoneoriginals.com'); define('HTTPS_COOKIE_DOMAIN', 'silverstoneoriginals.com'); define('HTTP_COOKIE_PATH', '/shop/'); define('DIR_WS_HTTP_CATALOG', '/shop/'); define('DIR_WS_HTTPS_CATALOG', '/shop/'); 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/'); // define our database connection define('DB_SERVER', 'xxxxx'); define('DB_SERVER_USERNAME', 'xxxxx'); define('DB_SERVER_PASSWORD', 'xxxxx'); define('DB_DATABASE', 'xxxxx'); define('USE_PCONNECT', 'false'); define('STORE_SESSIONS', 'mysql'); ?> Any help would be greatly appreciated. Thanks in advance Kaz <{POST_SNAPBACK}> I am not sure but someone ones told me that a cookie domain needs 2 dots. please try to use .silverstoneoriginals.com and see if that helps. Treasurer MFC
jamesepain Posted January 24, 2005 Posted January 24, 2005 I am not sure but someone ones told me that a cookie domain needs 2 dots. please try to use .silverstoneoriginals.com and see if that helps. <{POST_SNAPBACK}> were did you hear that? no, that is in no way true You Can Win, But I Can't Lose. James
staykalm Posted January 24, 2005 Posted January 24, 2005 can people sign up ok? its just you got SSL disabled <{POST_SNAPBACK}> Yes, people can sign up ok. SSL is not available to me from my host. If at first you don't succeed, GIVE UP!!!!!!
staykalm Posted January 24, 2005 Posted January 24, 2005 I am not sure but someone ones told me that a cookie domain needs 2 dots. please try to use .silverstoneoriginals.com and see if that helps. <{POST_SNAPBACK}> I tried it but got errors, sorry. If at first you don't succeed, GIVE UP!!!!!!
boxtel Posted January 24, 2005 Posted January 24, 2005 were did you hear that? no, that is in no way true <{POST_SNAPBACK}> now I am quoting : Only hosts within the specified domain can set a cookie for a domain and domains must have at least two (2) or three (3) periods in them to prevent domains of the form: ".com", ".edu", and "va.us". Any domain that fails within one of the seven special top level domains listed below only require two periods. Any other domain requires at least three. The seven special top level domains are: "COM", "EDU", "NET", "ORG", "GOV", "MIL", and "INT". Treasurer MFC
boxtel Posted January 24, 2005 Posted January 24, 2005 now I am quoting : Only hosts within the specified domain can set a cookie for a domain and domains must have at least two (2) or three (3) periods in them to prevent domains of the form: ".com", ".edu", and "va.us". Any domain that fails within one of the seven special top level domains listed below only require two periods. Any other domain requires at least three. The seven special top level domains are: "COM", "EDU", "NET", "ORG", "GOV", "MIL", and "INT". <{POST_SNAPBACK}> and one more: The Novell iChain proxy server internal rewrites the cookie domain set by the origin web server from domain=.private.domain.com to domain=public.domain.com. The cookie domain "public.domain.com" does no have a leading dot and will be rejected by Netscape Communicator 4.77. This is based on the fact that Netscape Communicator 4.77 is based on RFC2109 (obsoleted by RFC2965) which defines: 4.3.2 Rejecting Cookies To prevent possible security or privacy violations, a user agent rejects a cookie (shall not store its information) if any of the following is true: * The value for the Domain attribute contains no embedded dots or does not start with a dot. Examples: "* A Set-Cookie with Domain=ajax.com will be rejected because the value for Domain does not begin with a dot." Treasurer MFC
boxtel Posted January 24, 2005 Posted January 24, 2005 I tried it but got errors, sorry. <{POST_SNAPBACK}> what errors? Treasurer MFC
staykalm Posted January 24, 2005 Posted January 24, 2005 what errors? <{POST_SNAPBACK}> Sorry I took no notice of the errors and put the file back without the dots, but I do remember it mentioned application_top and now I cannot recreate the errors. Plus the cart still doesn't work. If at first you don't succeed, GIVE UP!!!!!!
boxtel Posted January 24, 2005 Posted January 24, 2005 Sorry I took no notice of the errors and put the file back without the dots, but I do remember it mentioned application_top and now I cannot recreate the errors. <{POST_SNAPBACK}> you actually wrote this and got errors? define('HTTP_COOKIE_DOMAIN', '.silverstoneoriginals.com'); define('HTTPS_COOKIE_DOMAIN', '.silverstoneoriginals.com'); Treasurer MFC
staykalm Posted January 24, 2005 Posted January 24, 2005 you actually wrote this and got errors? define('HTTP_COOKIE_DOMAIN', '.silverstoneoriginals.com'); define('HTTPS_COOKIE_DOMAIN', '.silverstoneoriginals.com'); <{POST_SNAPBACK}> :blush: Sorry, I put the dot wrong site of quote mark, it just goes to show that a little dot in the wrong place can make things go belly up lol. It is now in 'right' place but still it has made no difference to the cart issue. If at first you don't succeed, GIVE UP!!!!!!
boxtel Posted January 24, 2005 Posted January 24, 2005 :blush: Sorry, I put the dot wrong site of quote mark, it just goes to show that a little dot in the wrong place can make things go belly up lol. It is now in 'right' place but still it has made no difference to the cart issue. <{POST_SNAPBACK}> well, you could set force cookie usage to false. That way you can check if it works without cookies and then you are certain it is the cookie domain. Treasurer MFC
staykalm Posted January 24, 2005 Posted January 24, 2005 well, you could set force cookie usage to false.That way you can check if it works without cookies and then you are certain it is the cookie domain. <{POST_SNAPBACK}> I set force cookie to false and the same thing happens, nothing. I am at a loss as to what to do next. :'( If at first you don't succeed, GIVE UP!!!!!!
boxtel Posted January 24, 2005 Posted January 24, 2005 I set force cookie to false and the same thing happens, nothing. I am at a loss as to what to do next. :'( <{POST_SNAPBACK}> I see it, so it are not the cookies but the sessions. what are the settings you have for sessions in your admin section ? Treasurer MFC
staykalm Posted January 24, 2005 Posted January 24, 2005 I see it, so it are not the cookies but the sessions. what are the settings you have for sessions in your admin section ? <{POST_SNAPBACK}> I copied the settings from what was suggested in the oscommerce knowledge base: Session Directory /httpdocs/private/sessionsaves Force Cookie Use False Check SSL Session ID True Check User Agent False Check IP Address True Prevent Spider Sessions True Recreate Session True That is all except for the 'session directory', nothing seemed to be going into the /temp folder. I would just like to say thanks to everyone for helping. Kaz If at first you don't succeed, GIVE UP!!!!!!
boxtel Posted January 25, 2005 Posted January 25, 2005 I copied the settings from what was suggested in the oscommerce knowledge base: Session Directory /httpdocs/private/sessionsaves Force Cookie Use False Check SSL Session ID True Check User Agent False Check IP Address True Prevent Spider Sessions True Recreate Session True That is all except for the 'session directory', nothing seemed to be going into the /temp folder. I would just like to say thanks to everyone for helping. Kaz <{POST_SNAPBACK}> set them all to false except "prevent spider sessions" Treasurer MFC
staykalm Posted January 25, 2005 Posted January 25, 2005 set them all to false except "prevent spider sessions" <{POST_SNAPBACK}> Tried that still no luck. Do you think it may have something to do with the 'form' code instead? Could this be messing the 'add to cart' procedure? :blush: I really appreciate you helping me, you probably have enough to do. Kaz If at first you don't succeed, GIVE UP!!!!!!
boxtel Posted January 25, 2005 Posted January 25, 2005 Tried that still no luck.Do you think it may have something to do with the 'form' code instead? Could this be messing the 'add to cart' procedure? :blush: I really appreciate you helping me, you probably have enough to do. Kaz <{POST_SNAPBACK}> that is a good point, maybe check if the forms are opened and closed at the right moment. maybe install chemo's debug contribution which let you see the post variables. from what I can see, your sessions are not lost but maybe the post variables are and nothing is actually added to the cart. Treasurer MFC
staykalm Posted January 26, 2005 Posted January 26, 2005 :( Panic over, my web host provider says I am not allowed access to the shopping cart on the package I have and need to upgrade, needless to say we are currently looking for a host that doesn't have hidden conditions. I had been tearing my hair out thinking it was something I had done, but no! If I was not allowed to used the shopping cart application then I think they shoud have greyed it out like other items that were greyed out. Sorry everyone but thanks for trying to help. :thumbsup: Kaz If at first you don't succeed, GIVE UP!!!!!!
boxtel Posted January 26, 2005 Posted January 26, 2005 :( Panic over, my web host provider says I am not allowed access to the shopping cart on the package I have and need to upgrade, needless to say we are currently looking for a host that doesn't have hidden conditions. I had been tearing my hair out thinking it was something I had done, but no! If I was not allowed to used the shopping cart application then I think they shoud have greyed it out like other items that were greyed out. Sorry everyone but thanks for trying to help. :thumbsup: Kaz <{POST_SNAPBACK}> in some small way that is a relief, I was starting to get paranoid. Treasurer MFC
Recommended Posts
Archived
This topic is now archived and is closed to further replies.