Forums / General Questions / Cannot add products to shopping cart - HELP!

Cannot add products to shopping cart - HELP!

Locked

Views: 1,427

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
5 Jun 2008, 1:58 PM
#1
cocoon avatar

cocoon

New Zenner

Join Date:
Aug 2007
Posts:
9
Plugin Contributions:
0

Cannot add products to shopping cart - HELP!

Hi there, I have developed a site using 1.3.7 and it has been live now for a month or so and out of the blue this week it started getting the now infamous error when trying to add multiple products to the cart:

Warning: Variable passed to each() is not an array or object in /home/maltandv/public_html/includes/classes/shopping_cart.php on line 1708

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/includes/classes/shopping_cart.php:1708) in /home/xxxxx/public_html/includes/functions/functions_general.php on line 44

And if I try to add a product to the cart from the actual product page it goes to the cart which says "your cart is empty"

Needless to say this is unbelievably frustrating, i have trawled the forums here and seen many instances of this issue but not as yet found a fix to the problem, those who have suggested fixes dont seem to work on mine even though they may fix others instances of the problem...

Any help is much appreciated on this matter as it is critical that i get this up and running asap as the client is less than happy!

Thankyou for your time and eagerly await any assistance

some server details here

http://www.maltandvine.com.au/malt-and-vine-product-range/red-wine-c-1_2

(try adding some products to the cart on the above page)

database: MySQL 5.0.45
PHP Version: 5.2.4 (Zend: 2.2.0)

10 Jun 2008, 6:52 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Cannot add products to shopping cart - HELP!

There were improvements in 1.3.8 to deal with PHP5 and MySQL5 issues.
Can you replicate the issue in 1.3.8?

.
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.

16 Jun 2008, 12:27 AM
#3
md_gias_uddin avatar

md_gias_uddin

New Zenner

Join Date:
Jun 2008
Posts:
1
Plugin Contributions:
0

Re: Cannot add products to shopping cart - HELP!

DrByte:

There were improvements in 1.3.8 to deal with PHP5 and MySQL5 issues.
Can you replicate the issue in 1.3.8?

Dear Zenner,
I have the same problem. My server was down for 5 days. When it started again
I saw the problem "Cannot add products to shopping cart".
What can I do now? My sites name is https://www.jafarandfamily.com

Gias Uddin
Bangladesh

16 Jun 2008, 8:51 AM
#4
cjpinder avatar

cjpinder

Totally Zenned

Join Date:
Apr 2007
Location:
Herts. UK
Posts:
893
Plugin Contributions:
0

Re: Cannot add products to shopping cart - HELP!

Md. Gias Uddin:

Dear Zenner,
I have the same problem. My server was down for 5 days. When it started again
I saw the problem "Cannot add products to shopping cart".
What can I do now? My sites name is www.jafarandfamily.com

Your site is showing...

Fatal error: Call to a member function Execute() on a non-object in /home/jafarand/public_html/includes/functions/sessions.php on line 72...at the end of the page source. This would suggest that you are using an old version of Zen Cart and your host has moved to PHP 5. Your best course of action is to upgrade to Zen Cart v1.3.8a and then apply the post release fixes (a sticky post in the upgrades section) ASAP.

Regards,
Christian.

21 Jun 2008, 12:48 PM
#5
cocoon avatar

cocoon

New Zenner

Join Date:
Aug 2007
Posts:
9
Plugin Contributions:
0

Re: Cannot add products to shopping cart - HELP!

the issue with my site above turned out to be the ultimate seo url module, it took me days to work it out but all i had to do was switch it off and it worked perfectly.

Thankfully i didnt have to go through upgrading as I wasnt looking forward to it at all...