Call To A Member Function Add_current_page() On A Non-object

Posted by admin on May 12, 2009 under oScommerce Issues | 2 Comments to Read

Open /includes/application_top.php

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 with

// 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();

cheers

  • Marco said,

    Excelent!!! Tnks

  • tahir said,

    thanks a lot dear………
    really you save me…….. ;)

Add A Comment