yoursoccershirts Posted July 24, 2008 Posted July 24, 2008 OK i don't know what i have done put when i try view my home page in get this error. Fatal error: Call to a member function add_current_page() on a non-object in /home/username/public_html/shop/includes/application_top.php on line 312 ive check the file in question and it looks ok to me. line 312 = $navigation->add_current_page(); any ideas what ive done??
spax Posted July 24, 2008 Posted July 24, 2008 Re-start your browser. If that doesn't work, delete the session cookie from the browser's Tools>Options
♥FWR Media Posted July 24, 2008 Posted July 24, 2008 The navigation class should be included on about line 127 in includes/application_top.php // include navigation history class require(DIR_WS_CLASSES . 'navigation_history.php'); After that the class is instantiated just before the line creating your error // 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(); If the add_current_page() method is not available then the file wasn't included and/or was not instantiated. osCommerce hides a boatload of minor errors with the setting .. error_reporting(E_ALL & ~E_NOTICE); I personally develop with .. PHP5 error_reporting(E_ALL | E_STRICT); or PHP4 error_reporting(E_ALL); Perhaps a stricter setting may suggest more info. Ultimate SEO Urls 5 PRO - Multi Language Modern, Powerful SEO Urls KissMT Dynamic SEO Meta & Canonical Header Tags KissER Error Handling and Debugging KissIT Image Thumbnailer Security Pro - Querystring protection against hackers ( a KISS contribution ) If you found my post useful please click the "Like This" button to the right. Please only PM me for paid work.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.