I see this error in my logs once in a while, and you can see it on other sites by googling "uc_cart.module on line 1614." I can reproduce the error by visiting /uc_ajax_cart/update with nothing in the cart. It's probably triggered by search crawlers, but I suggest adding a condition for $_POST on line 113 un uc_ajax_cart.module:

<?php
   
case 'update':
    if(
$_POST) {
       
$formValues = array('values' => $_POST);
       
$cart = new UcAjaxCart();
       
$items = $cart->getCartContents();
       
drupal_execute('uc_cart_view_form', $formValues, $items);
        print
theme('status_messages');
    }
    break;
?>

Comments

stewart.adam’s picture

Issue tags:+6.x-2.2 blocker

Thanks for reporting this, tagging issue for inclusion in next release.

stewart.adam’s picture

Status:Active» Fixed

Committed to dev.

Automatically closed -- issue fixed for 2 weeks with no activity.