I just looked into a site's error log and noticed the following error has been occurring since the site went "live" in July:

"Call to a member function count_contents() on a non-object in /xxxxxxxx/includes/modules/sideboxes/shopping_cart.php on line 24"

The lines from shopping_cart.php the error refers to are:

Code:
case (SHOW_SHOPPING_CART_BOX_STATUS == '2'):
      if ( ( ($_SESSION['cart']->count_contents() > 0) || (isset($_SESSION['customer_id']) && zen_user_has_gv_account($_SESSION['customer_id']) > 0) ) && ($_GET['main_page'] != FILENAME_SHOPPING_CART) ) {
        $show_shopping_cart_box = true;
      } else {
        $show_shopping_cart_box = false;
      }
      break;
Does anyone know what this means? Did the user see a "fatal error" message? Did the user's order go into the basket instead of being processed? Is there something I can do to prevent this?

I did a search on "count_contents", but didn't find anything useful. If anyone can steer me in the right direction on this, I would really appreciate it. Thanks!