fuzzatonic Posted July 12, 2003 Share Posted July 12, 2003 Warning: session.auto_start is enabled - please disable this php feature in php.ini and restart the web server. Is this setting common on servers? I know my host has this enabled. I can not click on any link, or I get this 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 /www/www.mysite.com/htdocs/includes/application_top.php on line 309 Do I have to ask my host for access to the php.ini file? Anyone else getting this error, or is it just me? Thanks. Link to comment Share on other sites More sharing options...
Guest Posted July 12, 2003 Share Posted July 12, 2003 Do I have to ask my host for access to the php.ini file? Anyone else getting this error, or is it just me?I think that you can also set this in a .htaccess file if they are enabled or in the httpd.conf file if they are not. Your server host may not allow you to edit the php.ini (which affects the entire server) and may not support .htaccess files. In that case, you would ask the host to modify your directory settings in the httpd.conf. I think that their is a .htaccess file that comes with the release that has the proper settings. Hth, Matt Link to comment Share on other sites More sharing options...
DragonEyeDesign Posted May 1, 2004 Share Posted May 1, 2004 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.