View Single Post
  #1  
Old 11-06-2007, 02:43 PM
 
xcell67 xcell67 is offline
 

Senior Member
  
Join Date: Dec 2003
Posts: 149
 

Default Random Items Dropping

Hi all,

I recently moved to a VPS from shared hosting and started experiencing this problem:

Customer examples:

Add 4 different items to the cart. Looking at the cart page. Click on a category, a random item drops from the cart, left with 3 items.

Have 2 items in the cart, looking at a product page. Click on add to cart, taken to the cart page but the item wasn't added. Click on back to go back to the product page. Click on add to cart again, this time it adds to the cart.

Have 3 items in cart. Looking at cart page, click on "home" button, random items drops from the cart.


I think you get the picture. This is really confusing me because A. it didn't happen on my shared hosting and I didn't change any files and B. all the situations I described happen at random. It would be easy to pinpoint if i could reproduce the error all of the time.


So I began to look for a solution in the var folder. I have var and all its subfolders set at 777. So that doesn't seem to the be problem. I looked at the error logs, none for php but for env, I get stuff that I think is unrelated:

Code:
------------------------------------------------- [06-Nov-2007 15:22:38] ENV message: Changed options: error_reporting = ``0'' (was: ``2039'') Request URI: /product.php?productid=1945&cat=100&page= ------------------------------------------------- [06-Nov-2007 15:22:42] ENV message: Changed options: error_reporting = ``2039'' (was: ``0'') Request URI: /image.php?id=US2&type=S -------------------------------------------------


I gave up on the var folder and I looked at config.php:

Code:
# Select the sessions mechanism: # 1 - PHP sessions data is stored on the file system # 2 - PHP sessions data is stored on the MySQL database # 3 - X-Cart internal sessions mechanism is used (highly recommended) $use_sessions_type = 3;

Does anyone know how xcarts internal sessions mechanism works? Where does it write the sessions to?

Anyway, I changed the session type to 2 and tried to see if the problems would pop up again, and they did.


I'm really stuck here, I've never seen a problem like this. Please help.
Reply With Quote