If this is your first visit, check our documentation. To post, register or login.
Forums / Installing on a Linux/Unix Server / "Your shopping cart is empty!" error after adding item to cart...

"Your shopping cart is empty!" error after adding item to cart...

Locked

Started by pappaj333 on 21 Sep 2006, 7:39 PM · Views: 41,184

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
21 Sep 2006, 7:39 PM
#1
pappaj333 avatar

pappaj333

New Zenner

Join Date:
Aug 2006
Posts:
5
Plugin Contributions:
0

"Your shopping cart is empty!" error after adding item to cart...

"Your shopping cart is empty!" error after adding item,
Also, new users can't sign up... it just refreshes to a blank form

While my installation is an osCommerce, in searching the net I've seen that ZenCart seems to work the same way and people have reported similar problems with ZenCart. I was hoping I might find some help here.

I have an ssl installation... since installing the SLL, customers can not add items to their cart and new users can not register on the "sign up" page. When they complete the form it just seems to refresh the create an account form.

When you add an item to the shopping cart it takes you to the cart and displays a "Your shopping cart is empty!" error .

I've seen other threads that ask folks for the config file, so I'll paste it here. I'm removing the website reference, but I can PM to anyone who might need it to help.

Also, the SSL is issued with the full "www.(domain).net" address, not just "(domain).net".

Thanks!!!

<?php /* osCommerce, Open Source E-Commerce Solutions <http://www.oscommerce.com> Copyright © 2003 osCommerce Released under the GNU General Public License */ // Define the webserver and path parameters // * DIR_FS_* = Filesystem directories (local/physical) // * DIR_WS_* = Webserver directories (virtual/URL) define('HTTP_SERVER', 'http://www.(domain).net'); // eg, <http://localhost> - should not be empty for productive servers define('HTTPS_SERVER', 'https://www.(domain).net'); // eg, <https://localhost> - should not be empty for productive servers define('ENABLE_SSL', true); // secure webserver for checkout procedure? define('HTTP_COOKIE_DOMAIN', 'www.(domain).net'); define('HTTPS_COOKIE_DOMAIN', 'www.(domain).net'); define('HTTP_COOKIE_PATH', '/store/'); define('HTTPS_COOKIE_PATH', '/store/'); define('DIR_WS_HTTP_CATALOG', '/store/'); define('DIR_WS_HTTPS_CATALOG', '/store/'); 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', '/home/(domainlogin)/public_html/store/'); define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/'); define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/'); // define our database connection define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers define('DB_SERVER_USERNAME', '(real_db_login)'); define('DB_SERVER_PASSWORD', '(real_db_password)'); define('DB_DATABASE', '(real_db_name)'); define('USE_PCONNECT', 'false'); // use persistent connections? define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql' define('DIR_FS_CACHE_XSELL', 'cache/'); ?>
21 Sep 2006, 7:45 PM
#2
pappaj333 avatar

pappaj333

New Zenner

Join Date:
Aug 2006
Posts:
5
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

Also, I've just checked with my host and I'm told my cert is installed at:

/home/(domainlogin)/public_html/

for my domain:
https://www.(domain).net

That seems like it might be important info in trouble shooting, so I thought I would share.

16 Feb 2010, 9:35 AM
#3
bikeforce avatar

bikeforce

New Zenner

Join Date:
Sep 2009
Posts:
73
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

"Your shopping cart is empty!" error after adding item to cart...

I now have this problem and it is quite worrying.

However I am using Zen Cart, latest Version. What's Happening?

I add an item to the cart sometimes it says "Yor Shopping Cart is Empty" sometimes it adds the product, and most of the time I am limited to adding 2 products or so to the cart. I think it has something to do with sessions and Cache.

This site was transfered from a previous host but seem to be working fine. I have only just noticed this. I did notice however when I transferred the site that the user tracking doesnt work correctly.

I used the fix_cache_key and it said no updates needed taking place.

I would appreciate some help on this if any on knows whats going on.

thanks

16 Feb 2010, 9:47 AM
#4
bikeforce avatar

bikeforce

New Zenner

Join Date:
Sep 2009
Posts:
73
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

Update,

It only seems to do this on the product listing page when i click the buy now button and not on the product info -which is good news but i still have to sort it out. I will look at the product info mod because I made some changes there.

16 Feb 2010, 12:20 PM
#5
bikeforce avatar

bikeforce

New Zenner

Join Date:
Sep 2009
Posts:
73
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

Still not working I dont think it is that page.

It seems strange that it only happens on the product listing page though....

16 Feb 2010, 1:45 PM
#6
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!" error after adding item to cart...

Since you just changed hosts, check this thread:

http://www.zen-cart.com/forum/showthread.php?t=113844

16 Feb 2010, 1:58 PM
#7
bikeforce avatar

bikeforce

New Zenner

Join Date:
Sep 2009
Posts:
73
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

Yes thanks for this I had just been looking at that thread. I have tried doing as suggested by using a htaccess file in the root directory. It doesnt seem to do the trick.

I correct my earlier post and now realize it's not just doing on the product listing page - its doing it wherever i want to add product to the cart. My site is messing up big time.

originally when i changed host they changed the htaccess file and added a php.ini file - they seemed to know what they were doing. But they didnt fix the problem which at the time was the user tracking wasnt following users correctly.... I am under the impression that this may be related....

16 Feb 2010, 2:08 PM
#8
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!" error after adding item to cart...

How about the Suhosin thing on your new host's server?

Are you using any kind of SEO URL mod?

16 Feb 2010, 2:12 PM
#9
bikeforce avatar

bikeforce

New Zenner

Join Date:
Sep 2009
Posts:
73
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

Looks like the server changed my .htaccess file

File modified on Tue Feb 16 06:50:50 2010 by server

For security reasons, mod_php is not used on this server. Use a php.ini file for php directives

php_flag suhosin.session.encrypt off

Yes simple seo but it excludes shopping cart pages

16 Feb 2010, 3:46 PM
#10
bikeforce avatar

bikeforce

New Zenner

Join Date:
Sep 2009
Posts:
73
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

In the config file i changed

define('STORE_SESSIONS', 'db');
// for STORE_SESSIONS, use 'db' for best support, or '' for file-based storage

to define('STORE_SESSIONS', ' ');

It seems to be adding them properly now (might need further testing) Although it does seem to be slow processing it.

I hope this is the right way of going about it and there will be no forseabele problems. Or whether my database has problems will need repairing. I would be interested to know where it stores the files also.

20 Jun 2010, 8:27 PM
#11
dan123 avatar

dan123

New Zenner

Join Date:
Apr 2008
Posts:
82
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

Yesterday, I noticed that I have the same problem, though I was not able to add only in IE6(On my laptop I have IE8, which did not have the problem), so I went ahead and turned off my SSU module, which turned out to be the case. I had a wrong .htaccess file. In SSU module there is a SSU_check file, which can tell you exact content you need to put in your .htaccess. try it, it helped me)))

20 Jun 2010, 8:47 PM
#12
dan123 avatar

dan123

New Zenner

Join Date:
Apr 2008
Posts:
82
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

forgot to add, do not completely override your initial .htaccess file, just add the code!!

14 Aug 2010, 3:58 PM
#13
kittyer avatar

kittyer

New Zenner

Join Date:
Aug 2010
Posts:
5
Plugin Contributions:
0

Re: "Your shopping cart is empty!" error after adding item to cart...

Dan123:

Yesterday, I noticed that I have the same problem, though I was not able to add only in IE6(On my laptop I have IE8, which did not have the problem), so I went ahead and turned off my SSU module, which turned out to be the case. I had a wrong .htaccess file. In SSU module there is a SSU_check file, which can tell you exact content you need to put in your .htaccess. try it, it helped me)))

Hi Dan123! I have got the same issue to you, But i do not know where is the SSU_check file. Do you mind how to fix it? I want to know the detail of solution. Thanks very much!