Skip to main content

Error logging and debugging

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.
return false;

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.

Related

Tuskfish CMS User Manual

The user manual provides a comprehensive guide to Tuskfish CMS operations. It covers all all aspects from installation to adding and curating content, managing site security and customisation of themes. For additional information on how to customise Tuskfish please see the developer guide.