Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Nov 15, 2010 12:13 am 
Offline
Senior Newbie

Joined: Fri Nov 12, 2010 7:49 pm
Posts: 11
Location: New Zealand
I have a functioning oscommerce website on my current web server (ubuntu 10.4 - inhouse hosted)

I have recently acquired a linode 768 with ubuntu 10.4. I have configures LAMP, and the site worked well, now that I have configured
"Send-only Mail Server with Exim on Ubuntu 10.04 LTS (Lucid)" I now get this error:

Code:
Fatal error: Call to a member function add_current_page() on a non-object in /var/www/gandalf.dynamite.net.nz/public/foxes.co.nz/catalog/includes/application_top.php on line 671


Odly enough, this happened a day or 2 ago after I installed suhosin but after uninstalling, it started working again.

suhosin isn't installed on the current web server.


Last edited by modcar on Sat Nov 20, 2010 8:04 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sat Nov 20, 2010 8:04 pm 
Offline
Senior Newbie

Joined: Fri Nov 12, 2010 7:49 pm
Posts: 11
Location: New Zealand
Somehow seems the navigation parameter remains registered so the class is not instantiated.

1. Backup catalog\includes\application_top.php then open it locate this code:
Code:
// 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();


Replace it with this
Code:
// 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();


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group