Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default Error with shopping_cart.php when adding items.

    I get this error message when trying to add an item to the shopping cart:


    Warning: Invalid argument supplied for foreach() in /home/wishgivi/public_html/shop/includes/classes/shopping_cart.php on line 1566

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

    The strange thing is, it still does add the product to the shopping cart. If I go back and visit my shopping cart, the product will be there and I can finish the order, but when the customer adds the product, it shows this message. It only happens when trying to add a product.

    I haven't done any real modifications for 2 weeks, the most recent mod I installed was the google base feeder. I tried uninstalling it, but it still gets this error. I also have the imagehandler2, zen lightbox, and cross selling installed, but I don't think those have anything to do with it.
    Last edited by mohinder; 25 Jul 2008 at 07:44 PM.

  2. #2
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default Re: Error with shopping_cart.php when adding items.

    Oh, and I've tried replacing shopping_cart.php and functions_general.php with fresh files from 1.3.7 zip. That didn't do anything

  3. #3
    Join Date
    Mar 2007
    Posts
    115
    Plugin Contributions
    0

    Default Re: Error with shopping_cart.php when adding items.

    I searched for a similar error and both threads said the culprit was the ultimate SEO URLs mod. I DID have this mod installed a month ago, but I completely uninstalled it. I checked for every file and mySQL table and none of them are here, so that doesn't seem to be the problem..

  4. #4

    Default Re: Error with shopping_cart.php when adding items.

    Not sure about the first error, but for the "Cannot modify header information" error try this:

    https://www.zen-cart.com/tutorials/index.php?article=87
    Sarah

 

 

Similar Threads

  1. Issue with shopping_cart.php
    By kaos9889 in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 29 May 2011, 10:53 PM
  2. PHP Error when attempting to display all/new items
    By DCDC in forum General Questions
    Replies: 1
    Last Post: 21 Sep 2009, 09:05 PM
  3. Problem with Products Page when Adding New Items
    By Tatter in forum General Questions
    Replies: 9
    Last Post: 24 Jun 2008, 06:55 PM
  4. Error when adding 13 items
    By teebo in forum General Questions
    Replies: 1
    Last Post: 23 Jun 2008, 06:56 PM
  5. shopping_cart.php error when changing quantity
    By lismith in forum General Questions
    Replies: 11
    Last Post: 26 Jul 2007, 03:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg