Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Error in application_top.php


Guest

Recommended Posts

Posted

Hi,

 

I have been running oscommerce for over a year without a hickup. Now all of a sudden, the site has stopped working with the following error:

 

"Fatal error: Unknown(): The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition navigationhistory of the object you are trying to operate on was loaded _before_ the session was started in /home/xxx/xxx/catalog/includes/application_top.php on line 310"

 

Any ideas why this would occur all of a sudden?

 

Cheers

Ben

Posted

Hi,

 

Found it in the bug list.

 

in aplpication_top.php change //navegation history to:

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

 

 

So to the kind person that offered to fix this for me at a cost, you can go and get ............. I hate it when people try to make $$$ off someones misfortune. Especially with OPenSource software.

 

Ben

Archived

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

×
×
  • Create New...