Zen Cart Logo
Forums / General Questions / Your Shopping Cart is empty.

Your Shopping Cart is empty.

Locked

Views: 12,201

Results 1 to 20 of 30
This thread is locked. New replies are disabled.
21 Nov 2008, 10:47 AM
#1
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Your Shopping Cart is empty.

Dear Zen Cart,

The shop I created for my client was working fine for a few months until suddenly, out of no where, customers cannot checkout. It returns "your shopping cart is empty." .

The site uses SSL.

I have reverted the site back to the old working backups but it is still doing the same. I am completely lost and desperately in need of advice.

I don't know where to even troubleshoot. Please help. Thanks in advance.

21 Nov 2008, 12:03 PM
#2
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Your Shopping Cart is empty.

If you search the forums for "your shopping cart is empty" you'll find several threads about this problem. Seems there are several possible causes, too, from config file problems to hosting issues.

21 Nov 2008, 12:06 PM
#3
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

Thank you for your kind response stevesh, I did search for the forum for the exact words but did not return any relevant answers as far as i tried.

http://www.zen-cart.com/forum/search.php?searchid=11148400

Thank you for your input stevesh, I have a feeling it is not on my end. But I just don't know what to do at this point. Please help. This issue is beyond my knowledge.

I am still reading every threads I can at this moment.

21 Nov 2008, 12:55 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Your Shopping Cart is empty.

Try putting that term in quotes in the search box for more relevant returned threads.

http://www.zen-cart.com/forum/search.php?searchid=11148505

21 Nov 2008, 9:47 PM
#5
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

My website is:

http://www.scienscope-products.com

Problem: if I put something in the shopping cart and attempt to check out, it will take me to the secure part of the website BUT nothings gets added.

If I disable secure checkout under configure.php and test the checkout routine, everything works fine.
**
What I have done:**

Reloaded my old working backup for both publich_html and secure_html, but the site is still doing the same thing.

Question: Can anyone tell me if this is a secure_html issue on my ISP? What can I do to troubleshoot this problem?

Thanks in advance.

22 Nov 2008, 6:20 AM
#7
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

I have installed a fresh copy of zencart on:

http://www.scienscope-products.com/test

to isolate the issue and found out that as soon as I attempt to check out, the session is expired, i.e. when switching from public_html to secure_html.

Can anyone help me on this issue? Again, my website was working fine until one day, this problem start occurring.

22 Nov 2008, 3:42 PM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Your Shopping Cart is empty.

Your site is down for maintenance ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Dec 2008, 5:13 PM
#9
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Your Shopping Cart is empty.

Could you post the contents of the configure.php from the server without your username and password for the file:
/includes/configure.php

Have you one or two directories for your files on your server?

Have you checked with your hosting company to confirm that there aren't problems with your secure and non-secure to ensure that they are communicating properly?

Your sessions appear confused and it loses the cart going from secure to non-secure and loses the login as well ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Dec 2008, 5:29 PM
#10
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

// Define the webserver and path parameters
  // HTTP_SERVER is your Main webserver: eg-http://www.your_domain.com
  // HTTPS_SERVER is your Secure webserver: eg-https://www.your_domain.com
  define('HTTP_SERVER', 'http://www.scienscope-products.com');
  define('HTTPS_SERVER', 'https://www.scienscope-products.com');

  // Use secure webserver for checkout procedure?
  define('ENABLE_SSL', 'true');

// NOTE: be sure to leave the trailing '/' at the end of these lines if you make changes!
// * DIR_WS_* = Webserver directories (virtual/URL)
  // these paths are relative to top of your webspace ... (ie: under the public_html or httpdocs folder)
  define('DIR_WS_CATALOG', '/test/');
  define('DIR_WS_HTTPS_CATALOG', '/test/');

  define('DIR_WS_IMAGES', 'images/');
  define('DIR_WS_INCLUDES', 'includes/');
  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', DIR_WS_CATALOG . 'pub/');
  define('DIR_WS_TEMPLATES', DIR_WS_INCLUDES . 'templates/');

  define('DIR_WS_PHPBB', '/');

// * DIR_FS_* = Filesystem directories (local/physical)
  //the following path is a COMPLETE path to your Zen Cart files. eg: /var/www/vhost/accountname/public_html/store/
  define('DIR_FS_CATALOG', '/home/sciensco/public_html/test/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
  define('DIR_WS_UPLOADS', DIR_WS_IMAGES . 'uploads/');
  define('DIR_FS_UPLOADS', DIR_FS_CATALOG . DIR_WS_UPLOADS);
  define('DIR_FS_EMAIL_TEMPLATES', DIR_FS_CATALOG . 'email/');

// define our database connection
  define('DB_TYPE', 'mysql');
  define('DB_PREFIX', 'test_');
  define('DB_SERVER', 'localhost');
  define('DB_SERVER_USERNAME', '********');
  define('DB_SERVER_PASSWORD', '********');
  define('DB_DATABASE', '*********');
  define('USE_PCONNECT', 'false');
  define('STORE_SESSIONS', 'db');
  // for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

  // The next 2 "defines" are for SQL cache support.
  // For SQL_CACHE_METHOD, you can select from:  none, database, or file
  // If you choose "file", then you need to set the DIR_FS_SQL_CACHE to a directory where your apache 
  // or webserver user has write privileges (chmod 666 or 777). We recommend using the "cache" folder inside the Zen Cart folder
  // ie: /path/to/your/webspace/public_html/zen/cache   -- leave no trailing slash  
  define('SQL_CACHE_METHOD', 'none'); 
  define('DIR_FS_SQL_CACHE', '/home/sciensco/public_html/test/cache');

// EOF
```> Have you one or two directories for your files on your server?I assume you're asking for number of zen cart copies i have on the server, I have 2 copies.  The original which is located at root, and the fresh install that is located under /test.

> Have you checked with your hosting company to confirm that there aren't problems with your secure and non-secure to ensure that they are communicating properly?I have checked with my hosting company and they said no setting has changed on their end.  I did mention that there seem to be problem communicating between public_html and secure_html, but none of their technician can identify the problem at the moment.  

> Your sessions appear confused and it loses the cart going from secure to non-secure and loses the login as well ..Yes, it's not only the cart contents that gets lost, but even after creating an account, as soon as I leave the secure area, it logs me out.  

I'm not sure if this thread:  <https://www.zen-cart.com/forum/showthread.php?t=59769&page=2>

has anything to do with it, but my problem is that the site was working fine before.  Even a freshly installed zen cart without any modification is having problems.
2 Dec 2008, 6:00 PM
#11
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Your Shopping Cart is empty.

What are your settings in the Configuration ... Sessions ... in your Zen Cart Admin?

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

2 Dec 2008, 6:15 PM
#12
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

I have to disable secure admin area before I can view the setting, as even the admin page is not accessible due to this problem with secure_html.

As soon as I login from secure location, I get into admin page, BUT, if I try to go under any menu, it logs me out.

As for session setting, I have not touched that section and kept it default as everything was working fine in the past.

I will post the setting as soon as I disable secure admin and login from public_html.

2 Dec 2008, 10:28 PM
#13
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

ok... I have confirmed it with my own account with newly purchased SSL on the same hosting company (he.net) that it's their apache's glitch.

I've installed another fresh copy to https://www.saitomedia.com/test and this one is working fine.

I don't understand why apache can suddenly corrupt like that without any reason. I wish i know what's the cause of this loss of session between public_html and secure_html folder so I can convince my host to look into this problem for their sake.

I hope this is not a common error and that this thread provide another perspective to the "your shopping cart is empty" errors.

Anyway,

thank you Ajeh and Stevesh for your concern, and for your time. It's very comforting to know that I have great help when I'm in trouble.

4 Dec 2008, 3:47 AM
#14
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

The ***** server has installed Suhosin to make php5 more secure.


HE SupportSuhosin was causing this issue all this time. At least I know now. Now my site is working again with a little .htaccess edit to disable encryption on session. Issue solved.

4 Dec 2008, 5:57 AM
#15
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Your Shopping Cart is empty.

Thanks for the update and for posting the issues that you were having with your hosting provider who had settings on the server that were preventing things from working correctly ...

This will help others with similar issues ...

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

4 Dec 2008, 12:09 PM
#16
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Your Shopping Cart is empty.

Do you mind posting the .htaccess edit you made?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

4 Dec 2008, 4:34 PM
#17
saitomedia avatar

saitomedia

Zen Follower

Join Date:
Feb 2008
Location:
Southern California
Posts:
146
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

Sure,

php_flag suhosin.session.encrypt off
```This .htaccess file was placed in the root directory alongside public_html, secure_html and cgi-bin folder.

Summery of this thread in keywords:

**Symptom:**  "your shopping cart is empty", "Whoops, your session has expired", suddenly happened.

**Cause:**  Suhoshin applied to your host, it was encrypting session.

**Solution:** Write .htaccess to override encrypted session.
14 Apr 2009, 8:41 PM
#18
time111 avatar

time111

New Zenner

Join Date:
Sep 2008
Posts:
95
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

saitomedia:

Sure,

php_flag suhosin.session.encrypt off

> 
> Summery of this thread in keywords:
> 
> **Symptom:**  "your shopping cart is empty", "Whoops, your session has expired", suddenly happened.
> 
> **Cause:**  Suhoshin applied to your host, it was encrypting session.
> 
> **Solution:** Write .htaccess to override encrypted session.


Hi,

What do u mean by alongside. Do you mean in same place where these folder are or .htaccess inside each of these folders or what.

~ Time
25 Jan 2010, 8:55 AM
#20
aussie avatar

aussie

New Zenner

Join Date:
Apr 2005
Location:
NSW - Australia
Posts:
38
Plugin Contributions:
0

Re: Your Shopping Cart is empty.

Hello Saitomedia,

That .htaccess fix is exactly what I was after.
2 hours of solid searching found your fix

Thanks !

Brad :)