PDA

View Full Version : 'cart is empty' even though it isn't


lazyeye
28-Oct-2006, 12:46 PM
Hi,

Lately a customer was kind enough to report the occurence of a general script error due to the .cart file not being found:
Erreur: Erreur de suppression ../acatalog/cacheZprsZac07ZproxyZaolZcomA1156521060B21244.cart (No such file or directory)

This is actually the second time this kind of error has been brought to our attention. My investigation did not bring anything up. I downloaded the 'error.err' file from the server and saw that it had logged several such errors, all of them triggered by the SHOPCART program.
I tested with some orders and the .cart file gets created and updated allright (my ftp client displays the content of acatalog directory and I refresh the view each time I add an item to the cart). So I can't seem to find the reason to this problem.

However, when doing that I noticed that the little widget displaying the status of the cart sometimes indicates that my 'cart is empty' even though it is not. I click on the add-to-cart button of any given product and, on the confirmation page, the widget shows correct information (number of items, total price), I confirm and am bounced back to the catalog and the the widget says 'your cart is empty'. wtf is going on? I haven't got a clue.

Any ideas on that matter?


Henri aka lazyeye

Mike Hughes
28-Oct-2006, 01:16 PM
Probably that you're entering your site without using the www. prefix on the domain. www.domain.com and domain.com are different domains and a cookie on one will usually be blocked on another.

You should really create an htaccess file to redirect non-www users to your www. domain. Try searching the forums to find out how to do this.

Mike

lazyeye
28-Oct-2006, 04:22 PM
ok, that does it. Thanks.

Any idea about the first problem? The .cart no-such-file-exists thing?

Mike Hughes
28-Oct-2006, 04:36 PM
I've no idea on the first part of your question.

It is strange though that there's a proxy ID as part of the session name rather than an IP number. I wonder if that's related.

Mike

lazyeye
28-Oct-2006, 08:51 PM
I'll check that out.