Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error


pman233

Recommended Posts

I'm not quite as manic today since I visited guide.oscdox.com, but I'm still wound pretty tight. I'm the first to admit I'm no PHP expert, but this is driving me nuts.

 

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/pman233/www.bikermikesshop.com/docs/catalog/includes/application_top.php on line 293

 

Help Please?!?

Link to comment
Share on other sites

You might want to send your last error to your provider.

 

Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server

 

 

This is prob causing your error. Unless you have your own server and you need to do what this error says. Your prob, I think, is with sessions.

Steve

-------------------------

Link to comment
Share on other sites

I can across the exact same problem some days ago. Got it working by creating a .htaccess file (placed in the 'catalog' directory) with the following line:

 

php_value session.auto_start 0

Link to comment
Share on other sites

  • 2 weeks later...

I have the same problem but when I tried making a .htaccess file I get the page not found error. I dont know much about .htaccess do you need to make a file of this name and just add the 1 line

php_value session.auto_start 0 :shock:

Link to comment
Share on other sites

  • 1 year later...

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.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...