Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

After install problem.


randomx

Recommended Posts

Fatal error: 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/spin777/www/shop/catalog/includes/application_top.php on line 293

 

http://www.spininternetmedia.com/shop/catalog/

 

What is up?

 

:(

Link to comment
Share on other sites

Hi

 

This is the problem:

 

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

 

 

Contact your host if you don?t have access!

 

 

 

/Marie

Link to comment
Share on other sites

what effect will this have on other sites on this server?

 

If other users have session_start() at the tops of their pages, will implementing your suggestion have any effect?

Link to comment
Share on other sites

  • 2 months later...

If you have other sites that use session auto start on the same server then add this to the .htaccess file

 

 

php_value session.auto_start 0

 

 

that will make it directory specific and not interfere with othere sites

 

 

Have fun :D

Link to comment
Share on other sites

  • 9 months 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...