Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can someone please help me with this fatal error?


consolefx

Recommended Posts

Posted

I just installed the script and the page /catalog/ loads but when you refresh it or click on anything else it has 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 <b>navigationhistory</b> of the object you are trying to operate on was loaded _before_ the session was started in /home/atech/www.webaddress.com/docs/catalog/includes/application_top.php on line 309

 

 

Does anyone know what this means?

 

I appreciate any help!!!

 

Thanks

Tom

Posted

I would try downloading the files again and reinstalling. Since you haven't done any modifications yet (at least I assume you haven't) this shouldn't be difficult. Also, there aren't many other explanations as to why this is happening if there are no modifications.

 

Btw, 2.2 Milestone 2 is the current release. The CVS is a development release for testing purposes.

 

Hth,

Matt

Posted

Okay, I deleted the existing cart, downloaded 2.2 Milestone 2 and it installed successfully, but I still get the same error. The only thing I have yet to change is disable the session.auto_start. Could this be the problem?

Posted

Hmm...I suppose it could. Why not try it? What's the worst that could happen?

 

Good luck,

Matt

  • 8 months later...
Posted

After wresting briefly with this problem, I found the solution. The problem is that in some configurations (at least mine), the navigation history section in "application_top.php" doesn't catch the possibility that the session "navigation" variable is registered and the PHP version running is 4 or above. I'm really not quite sure what caused this huge oversight on the part of the developers (with all due respect).

 

Change the nagivation history chunk of code to read:

 

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

 

and it should work just fine.

Archived

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

×
×
  • Create New...