Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

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

Posted

its related to session variables considered as Global variables.

 

add_current_page().

 

Just apply register globals patch.

 

Satish

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.

Posted
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.

Posted

$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

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.

Posted
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

Posted

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

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...