afterdarkaccessories Posted February 15, 2009 Posted February 15, 2009 Hi Jack, I am setting up a new shop and just installed this great Header Tag SEO contribution but am getting a fatal error and cant find the problem and hope you may know the answer. As this is a unmodified shop I have copied all the files straight over the old ones and modified the ones I needed to but I get this error. I would appreciate any help you can kindly offer.. Many Thanks Bruce Ps.. I know it maybe something I have done wrong as I have installed this contribution to other modified stores without problem. Fatal error: Call to a member function add_current_page() on a non-object in /includes/application_top.php on line 312 // 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(); =line 312 Quote
Jan Zonjee Posted February 15, 2009 Posted February 15, 2009 but I get this error. See for example this post for explanations on this error. Quote
satish Posted February 15, 2009 Posted February 15, 2009 its related to session variables considered as Global variables. add_current_page(). Just apply register globals patch. Satish Quote Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
Jan Zonjee Posted February 15, 2009 Posted February 15, 2009 its related to session variables considered as Global variables. Applying the register globals patch from RC2a is always good but it has nothing to do with this error. Quote
satish Posted February 15, 2009 Posted February 15, 2009 $navigation->add_current_page(); Here $navigation is a session based object so unless You let the code know its a session bases or change $navigation->add_current_page(); to $_SESSION[$navigation]->add_current_page(); With register globals off sessions are also not theer. else use the extract code. Satish Quote Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
afterdarkaccessories Posted February 17, 2009 Author Posted February 17, 2009 Hi Jack, I am setting up a new shop and just installed this great Header Tag SEO contribution but am getting a fatal error and cant find the problem and hope you may know the answer. As this is a unmodified shop I have copied all the files straight over the old ones and modified the ones I needed to but I get this error. I would appreciate any help you can kindly offer.. Many Thanks Bruce Ps.. I know it maybe something I have done wrong as I have installed this contribution to other modified stores without problem. Fatal error: Call to a member function add_current_page() on a non-object in /includes/application_top.php on line 312 // 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(); =line 312 Thanks everyone for your info, is all good now.. Cheers Bruce Quote
GemRock Posted February 17, 2009 Posted February 17, 2009 for anyone else who comes across this problem, this error has nothing to do with register_globals, as already been pointed out. even you have register_globals ON, you may still encounter this error. the so-called register_globals patch is not magic. in fact, if you have to use it then you may be better off to switch host that would allow you to set register_globals ON per site. osc does not in general have security problem with it being ON. Ken Quote commercial support - unProtected channel, not to be confused with the forum with same name - open to everyone who need some professional help: either PM/email me, or go to my website (URL can be found in my profile). over 20 years of computer programming experience.
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.