Results 1 to 10 of 12

Threaded View

  1. #1
    Join Date
    May 2007
    Posts
    79
    Plugin Contributions
    0

    Default shopping_cart.php error when changing quantity

    I searched and didn't find anything about this problem. I'm getting this error when quantity is changed in the shopping cart:

    Warning: Illegal offset type in (path)/includes/classes/shopping_cart.php on line 495

    Warning: Cannot modify header information - headers already sent by (output started at (path)/includes/classes/shopping_cart.php:495) in (path)/includes/functions/functions_general.php on line 44
    I haven't made any modifications to either of these files, and I reuploaded them thinking they may have been corrupted.

    Where else could this error be coming from? I don't have a clue where to look.

    Line 495 in shopping_cart.php is the 3rd line in this block of code:

    Code:
      function get_quantity($products_id) {
        $this->notify('NOTIFIER_CART_GET_QUANTITY_START');
        if (isset($this->contents[$products_id])) {
        $this->notify('NOTIFIER_CART_GET_QUANTITY_END_QTY');
          return $this->contents[$products_id]['qty'];
        } else {
        $this->notify('NOTIFIER_CART_GET_QUANTITY_END_FALSE');
          return 0;
        }
      }
    and line 44 of functions_general.php is:

    Code:
        header('Location: ' . $url);
    HELP!?
    Last edited by lismith; 25 Jul 2007 at 01:54 PM.

 

 

Similar Threads

  1. Replies: 1
    Last Post: 3 Nov 2013, 05:15 AM
  2. v151 override \includes\modules\pages\shopping_cart\header.php.php??
    By tlyczko in forum General Questions
    Replies: 7
    Last Post: 27 Nov 2012, 06:12 PM
  3. Replies: 7
    Last Post: 7 Mar 2011, 09:55 AM
  4. Replies: 1
    Last Post: 22 May 2010, 10:06 AM
  5. Error with shopping_cart.php when adding items.
    By mohinder in forum General Questions
    Replies: 3
    Last Post: 25 Jul 2008, 09:22 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