Topic: Unable to fetch reports info and other errors

Hi all!

I recently installed PunBB locally on my machine (an Apple PowerBook G4 running MAMP Pro 1.7) and tried to integrate it into a website I'm developing now. The only changes I made into PunBB code are:

- changing include/functions.php to allow a loging system on the main site that will log into PunBB too, as described by mattxb in http://punbb.informer.com/forums/topic/ … in-system/
- including my own XHTML head and body in the top of header.php and in the bottom of footer.php, so that PunBB is displayed inside the main website (for that, I suppressed XHTML head in include/template templates and slightly modified style/Oxygen.css)

Everything works properly (Administration, Profile, etc.), without any MySQL error, but everytime I try "Search", "Show recent posts", "Show unanswered posts", "Show your subscribed topics", "Show your posts", I get error codes.

I switched on PUN_DEBUG and PUN_SHOW_QUERIES in include/common.php, so that I get this, e.g. when I try "Show recent posts":

File: forum/header.php
Line: 183

PunBB reported: Unable to fetch reports info

Database reported:

Failed query: SELECT COUNT(id) FROM reports WHERE zapped IS NULL

The strangest thing is that the query fails, but WITHOUT ANY DATABASE REPORT. It simply fails. The same with "Unable to fetch reports info", "Unable to fetch online list" error messages.

What did I do wrong?

Thanks in advance!