Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Another Error... help please


Guest

Recommended Posts

Ok... i fixed my line 17 error according to what was in the previous post... but then I get this...

 

 

Fatal error: Call to a member function add_current_page() on a non-object in /home/babydood/public_html/catalog/includes/application_top.php on line 312

 

I don't even know where to start... :'(

Link to comment
Share on other sites

Does your code in that area look like this:

 

// 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();

And on about line 125, do you have this code:

 

// include navigation history class
 require(DIR_WS_CLASSES . 'navigation_history.php');

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Does your code in that area look like this:

 

// 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();

And on about line 125, do you have this code:

 

// include navigation history class
 require(DIR_WS_CLASSES . 'navigation_history.php');

:unsure:

 

Is this going to be in the file it's saying is broken? or in the index.php in my language file?

Link to comment
Share on other sites

My bad...

:blush:

 

In: /catalog/includes/application_top.php

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

My bad...

:blush:

 

In: /catalog/includes/application_top.php

 

Yep... this is it...

 

// 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();

 

and

 

// include navigation history class
 require(DIR_WS_CLASSES . 'navigation_history.php');

Link to comment
Share on other sites

Similar problem/fix:

 

Click Me

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

  • 10 months later...
  • 5 months later...
  • 2 weeks later...

BUG FIX (IE6)

 

Fatal error: Call to a member function add_current_page() on a non-object in catalog/includes/application_top.php

 

FInd this code in application_top.php

 

 

// 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();

 

 

Change it TO..........................this

 

 

// navigation history by apurba

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();

 

Thanks..........

Link to comment
Share on other sites

  • 6 months later...
  • 2 years later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...