Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

installing 2.3.1


Recommended Posts

I just started to reload my website using oscom 2.3.1, The only thing I have gone thru is have the admin config. If I go to the generic website before modifications, I get the following error. I would like to see the generic/default website so I can start to reload my stuff over it.



Fatal error: Call to a member function count_contents() on a non-object in /home/nzfmsfxs/public_html/store/includes/modules/boxes/bm_shopping_cart.php on line 38


this is line starting at 38:


if ($cart->count_contents() > 0) {

$cart_contents_string = '<table border="0" width="100%" cellspacing="0" cellpadding="0" class="ui-widget-content infoBoxContents">';

$products = $cart->get_products();

for ($i=0, $n=sizeof($products); $i<$n; $i++) {

$cart_contents_string .= '<tr><td align="right" valign="top">';

Link to comment
Share on other sites

If the code below isn't in /store/includes/application_top.php or is there but doesn't get executed you will get that error:


// create the shopping cart
 if (!tep_session_is_registered('cart') || !is_object($cart)) {
   $cart = new shoppingCart;

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.


"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -


"Headers already sent" - The definitive help


"Cannot redeclare ..." - How to find/fix it


SSL Implementation Help


Like this post? "Like" it again over there >

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...