Scenario:
"I need to see log of database queries made by Nucleus but I can't seem to find any plugins for this purpose. Does Nucleus come with a "debug mode" by default?"
Solution:
Absolutely! You can debug a Nucleus installation by finding this following code snippet from the beginning of /nucleus/libs/globalfunctions.php:
$CONF['debug'] = 0;
0 to a 1 like this:
$CONF['debug'] = 1;
However, this just enables errors to be shown, not logging of database queries. For that, you still need to follow some additional steps to write the queries to a file. You can do this by following the instructions in the tutorial "Enable Logging of Slow Queries (Slow Query Log) in MySQL Database".
Original forum thread (thanks, roel!):
http://forum.nucleuscms.org/viewtopic.php?t=15449
Further reading:
![]()
This answer was not rated yet.