Guest Posted March 15, 2004 Share Posted March 15, 2004 Hi, At the moment I"m getting the next error: Fatal error: Call to a member function on a non-object in /home/httpd/vhosts/xxxxx/httpdocs/includes/application_top.php on line 316 // navigation history ?if (tep_session_is_registered('navigation')) { ? ?if (PHP_VERSION < 4) { ? ? ?$broken_navigation = $navigation; ? ? ?$navigation = new navigationHistory; ? ? ?$navigation->unserialize($broken_navigation); ? ?} ?} else { ? ?tep_session_register('navigation'); ? ?$navigation = new navigationHistory; ?} ?$navigation->add_current_page(); That's in that part of the code .. line 316 is the last line! I'm working with 2.2MS2 and register_globals is turned OFF. I wasn't doing anything special, so it's very strange to have this error coming up.. Anything got the same problem or knows the answer to the problem? Greetings, Floodjuh Edit: HTTP Server: Apache/2.0.40 (Red Hat Linux) PHP Versie: 4.3.2 (Zend: 1.3.0) Link to comment Share on other sites More sharing options...
Guest Posted March 17, 2004 Share Posted March 17, 2004 I've got the same problem. Not sure why. Did you find a work around? Link to comment Share on other sites More sharing options...
Guest Posted March 17, 2004 Share Posted March 17, 2004 I changed this: $navigation->add_current_page(); into this: # $navigation->add_current_page(); Just commented it out and the problem was gone .. not sure why .. and not sure what is not working now :) Greetings 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: <q> // 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(); </q> 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.