1

Topic: Debug mode is disabled in common.php but

This is the line copied from my common.php as you can see debug mode is disabled.

// Enable DEBUG mode by removing // from the following line
//define('PUN_DEBUG', 1);

However the debug table is still showing on all my forum pages, any ideas.

http://www.aquatyer.com/cms/punbb/index.php

thanks

Re: Debug mode is disabled in common.php but

That's PUN_SHOW_QUERIES, not PUN_DEBUG.

3

Re: Debug mode is disabled in common.php but

Ok my bad thanks for the correction, the problem still exists as both are disabled in common.php as below.

// Enable DEBUG mode by removing // from the following line
//define('PUN_DEBUG', 1);

// This displays all executed queries in the page footer.
// DO NOT enable this in a production environment!
//define('PUN_SHOW_QUERIES', 1);

thanks

4

Re: Debug mode is disabled in common.php but

Found it.

I had a bit of code in footer.php after the following if statement, to display my own footer and this code made the display_saved_queries(); function execute. I removed the bit of code and put it in the templates as instructed by the docs and it now works fine. Doh!

if (defined('PUN_SHOW_QUERIES'))

footer();


    display_saved_queries();