Fatal error: Call to a member function add_current_page() – around line 312 or
Somehow seems the navigation parameter remains registered so the class is not instantiated. Do this to fix it.
Fatal error: Call to a member function add_current_page() on a non-object in /includes/application_top.php on line 312
1. Backup catalog\includes\application_top.php then open it locate this code:
CODE
// navigation history
if (tep_session_is_registered(‘navigation’)) {
if (PHP_VERSION < 4) {
$broken_navigation = $navigation;
$navigation = new navigationHistory;
$navigation->unserialize($broken_navigation);
}
} else {
tep_session_register(‘navigation’);
$navigation = new navigationHistory;
}
$navigation->add_current_page();
Replace it with this
CODE
// navigation history
if (tep_session_is_registered(‘navigation’)) {
if (PHP_VERSION < 4) {
$broken_navigation = $navigation;
$navigation = new navigationHistory;
$navigation->unserialize($broken_navigation);
} else {
$navigation = new navigationHistory;
}
} else {
tep_session_register(‘navigation’);
$navigation = new navigationHistory;
}
$navigation->add_current_page();
April 3rd, 2010 at 9:58 pm
I’m looking forward to getting more information about this topic, don’t worry about negative opinions.
April 17th, 2010 at 4:30 pm
I read about it some days ago in another blog and the main things that you mention here are very similar
July 6th, 2010 at 1:48 am
No matter what others say, I think it is still interesting and useful maybe necessary to improve some minor things
June 12th, 2011 at 5:41 am
thank you