Topic: $db object not global
It looks as though many attempts at integrating PunBB with a php script (possibly only those with) are met with this error:
Fatal error: Call to a member function on a non-object in blahblah
In every instance I've seen, the error points to a query with the $db object. Many people have stated that it appears that the $db object is not available globally, despite it being defined as global.
Some threads which addressed this problem to no avail:
http://punbb.org/forums/viewtopic.php?id=9883
http://punbb.org/forums/viewtopic.php?id=12287
http://punbb.org/forums/viewtopic.php?id=11545
http://punbb.org/forums/viewtopic.php?id=10207
(More if you search the forums for the error above)
Sorry if this has been fixed/posted before but I didn't see it anywhere.