Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

fatal error: Call to a member function add_current_page() on a non-object in catalog\includes\application_top.php on line 312


TheUnfadable

Recommended Posts

Posted

Hey Guys....Im a new bootie here... I one button installed oscommerce on my site hosted by godaddy. The site is www.mykosmetics.com

 

after the installation was complete i copied the contents of my "www" folder provided by the template company to the catalog folder on the host. when I check the site some of the template comes up, but after click a button i get the following error...

 

Fatal error: Call to a member function add_current_page() on a non-object in /home/content/06/6549806/html/catalog/includes/application_top.php on line 313

 

Please advise... I checked the configure.php file and everything seems to be right any suggestions?

 

BELOW IS THE CODE AROUND LINE 313 FOR THE APPLICATION_TOP.PHP FILE:

 

}

$navigation->add_current_page();

 

// Shopping cart actions

if (isset($HTTP_GET_VARS['action'])) {

// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled

if ($session_started == false) {

tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));

}

 

if (DISPLAY_CART == 'true') {

$goto = FILENAME_SHOPPING_CART;

$parameters = array('action', 'cPath', 'products_id', 'pid');

} else {

$goto = basename($PHP_SELF);

if ($HTTP_GET_VARS['action'] == 'buy_now') {

$parameters = array('action', 'pid', 'products_id');

} else {

$parameters = array('action', 'pid');

}

}

Posted

Follow the links in my posts here: Click Me

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 >

Posted

Thanks buddy I got that one out the way but I hit another pot hole lol! The following is plastered right smack in the middle of my site Arg!

 

Fatal error: Call to undefined function tep_image_submit_index() in /home/content/06/6549806/html/catalog/includes/boxes/search.php on line 33

 

Thanks for the help... I know im missing something probably elementary. Suggestions?

Archived

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

×
×
  • Create New...