Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Fatal Error when using Mozilla Firefox 3.0.5


pchem

Recommended Posts

Has anyone else had errors like this? I posted before and did not get a helpful response. I am stumped.

 

I installed Ultimate SEO URLs v2.1d UPDATED-23-NOV-2008 to my site (which also has two other fantastic contributions: Header Tags SEO v3.1.0 and Site Search Plus v1.1). The redirect, 404 error, etc all work fine in IE, Google Chrome, and Mozilla Firefox when I am ALREADY on my site, but when clicking on an indexed page at Google (like this one) AND using Mozilla Firefox it returns the following:

 

Fatal error: Call to a member function add_current_page() on a non-object in /home/content/p/r/o/MYSITE/html/includes/application_top.php on line 325

 

After that error shows, then no matter what page I enter for my site, it still shows the same error code until I clear the cookies and cache and re-start Firefox. It occurs off and on using using Windows Vista, XP and Win2000 with Mozilla Firefox 3.0.5. (Please note that this seems to only show up using links that have now changed as a result of adding the Ultimate SEO URL). This is a problem since someone directly surfing in using an indexed link generates the error code.

 

Starting on line 314 and ending on line 335 the catalog/includes/application_top.php code is:

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

// Shopping cart actions
 if (isset($HTTP_GET_VARS['action'])) {
// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled
   if ($session_started == false) {
     tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));
   }

   if (DISPLAY_CART == 'true') {
     $goto =  FILENAME_SHOPPING_CART;

 

Is my code messed up? Is this a bug? Has anyone else found this problem and solved the issue?

 

I am very thankful to everyone that helps me!

Link to comment
Share on other sites

Follow the links in my post here: 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

Thanks germ! Following your link (and the others) I fixed the problem. My site is a hosted on a PHP 5 server, which may have contributed the intermittent issues with Mozilla Firefox.

 

Summarizing the links I followed. In catalog/includes/application_top.php starting about line 314 I replaced:

 

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

 

WITH:

 

// navigation history
 if (tep_session_is_registered('navigation') && is_object($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();

 

Aparently, this method keeps you from loosing the navigation history. Thanks enigma1 & guntersammet.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...