Jump to content
MakeWebGames

Recommended Posts

Posted

Fatal error: Call to undefined method headers::endpage() in /home/public_html/usersonline.php on line 101

 

can someone help with this please and i have this as my endpage function in header

function endpage()

{

global $db, $h;

print <<<OUT

 

Posted

From seeing "Call to undefined method headers::endpage() " i guess you are using $h->endpage(); within a function in usersonline.php, yes?

 

Well if so then im guessing your missing global $h; from that function or that for some reason theres no $h = new headers; at the top (or both of them two).

 

Have not worked with Mccodes in a long time so let me know if that works ;)

Posted

If a { or } was missed the error would be some thing like "Unexpected .... " but as its "...undefined..." it tills us the $h is not defined in that area & as its Mccodes i guess you would have missed global $h some where or $h = new headers();

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.   Paste as plain text instead

  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...