gumrol Posted September 15, 2009 Posted September 15, 2009 Hi All I've got such a weird issue - it seems so obscure and I've had a stab at it on two separate occasions, and I came up with nothing both times. The problem: When using the site, and one adds products to the cart, they all add fine, when using the site 'slowly' ie waiting for the page to fully finish loading before adding a new item or navigating somewhere else. If however one adds a product to the cart but then clicks on another link, before the page has fully loaded after adding the product, the newly added product is no longer in the cart. It almost sees that the data is only written to the database on page load. Sometimes the problem manifests itself in logging a client out, if they login & click on a link immediately after logging in. My setup: I noticed this problem for the first time, when the site was moved to PHP5 & mySQL 5 - I know its not recommended, but the client insisted & did the move, and I had to mop up. We've lived with this for a while now, as it only causes issues every now and then. I have register globals on, even though there is a mod installed that circumvents globals on, but either setting them on or off results in the same behaviour. Any ideas would really be appreciated, as I'm stumped.
♥ecartz Posted September 18, 2009 Posted September 18, 2009 You would need to post a link to the site so that someone could try to reproduce the problem. Always back up before making changes.
gumrol Posted September 22, 2009 Author Posted September 22, 2009 Here's that link: www.wineweb.co.za
♥ecartz Posted September 23, 2009 Posted September 23, 2009 I was not able to reproduce the issue. Even when clicking another link immediately after clicking the add to cart button, the items were still getting added to the cart. However, one thing that I did notice was that the session handling does not work for people without cookies. As such, you should either fix the links to pass the osCsid or set admin >> Configuration >> Sessions >> Force Cookie Use to true (to properly message that cookies are required). Always back up before making changes.
gumrol Posted September 23, 2009 Author Posted September 23, 2009 Thanks very much for your response - its quite odd that its not displaying the same behaviour for you. I'll set force cookies on, although I seem to remember doing this before & running into issues (the code is heavily modded, with globals off mod being the most destabilising to the codebase). Thanks again. g
Recommended Posts
Archived
This topic is now archived and is closed to further replies.