Jump to content

Classes Error


aleX_hill

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.