Error logging and debugging
15 December 2017 | 38 views | Tags: Documentation
Tuskfish logs errors to trust_path/log/tuskfish_log.txt. So if you are experiencing problems download this logfile and take a look inside, it will give you the file name, line number and type of errors that have been encountered.
You can also enable on-screen debugging by editing the file trust_path/libraries/tuskfish/class/TfLogger.php and commenting/uncommenting the following code in the function logErrors():
// Debug only - comment OUT in production site:
// echo '<p>' . print($message) . '</p>';
// Debug only - UNCOMMENT in production site.
As errors will appear on-screen you may wish to close your site to the public (via the preferences page) while you debug it. When you are finished make sure you revert the code back to its production state before re-opening it to public access.
Copyright, all rights reserved.