booksfromhome Posted July 27, 2011 Posted July 27, 2011 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">';
germ Posted July 28, 2011 Posted July 28, 2011 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)) { tep_session_register('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 >
booksfromhome Posted July 28, 2011 Author Posted July 28, 2011 this is the default website that is there when you install oscom
booksfromhome Posted July 28, 2011 Author Posted July 28, 2011 I found the problem..... the global var =1 is commented out in all the .htaccess files
Recommended Posts
Archived
This topic is now archived and is closed to further replies.