aleX_hill Posted August 1, 2010 Share Posted August 1, 2010 OK, im not too crash hot on classes, so hoping someone can help me with this error: Fatal error: Call to a member function add_current_page() on a non-object in /path/to/includes/application_top.php on line 312 This is from an osCommerce application (I know someone will probably tell me to post in 3rd party scripts, but I am more interested in whats generally causing the error). The thing that confuses me is that application_top.php is only 236 lines long. Quote Link to comment Share on other sites More sharing options...
Mchl Posted August 1, 2010 Share Posted August 1, 2010 The general cause of the error is that the variable on which the code called add_current_page() method is not an object (and it is expected to be) IF the number of lines don't match, double check that you're looking at the right file Quote Link to comment Share on other sites More sharing options...
aleX_hill Posted August 1, 2010 Author Share Posted August 1, 2010 Turns out there were some malicious lines of code inserted into my remote copy (hence the more lines in the remote copy then my own). All fixed now, thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.