HITMAN 17 Posted September 20, 2009 Posted September 20, 2009 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 Quote
rulerofzu Posted September 20, 2009 Posted September 20, 2009 Does your usersonline.php code have 101 lines?? Quote
Jeff.S Posted September 20, 2009 Posted September 20, 2009 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 ;) Quote
seanybob Posted September 21, 2009 Posted September 21, 2009 If I remember correctly, this error usually meant you are missing an ending curly brace somewhere. Match up all your curly braces on the page in question. Quote
Jeff.S Posted September 26, 2009 Posted September 26, 2009 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(); Quote
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.