Documentation

Features

This is an old revision of the document!


How to turn on Error Reporting

If you visit a page within your site and it is blank, there are a variety of potential problems including:

1. the page's file is missing 2. the templates_c folder does not have the correct permissions set 3. there's a problem with the code

In order to have a better idea about what's happening, we recommend turning on PHP's error reporting feature. Here's how:

- open the includes/init.php file - the first line of the includes/init.php file (that's not commented out) is:

 <php>error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);</php>

- change this line to:

 <php>error_reporting(E_ALL);</php>

- and just underneath it add:

 <php>ini_set("display_errors", 1);</php>

- save your changes and upload the file back to the server. - open the page that was blank in your browser and refresh. - if there's an error, it should now be displayed on the page.


Have more questions? Visit our community forums.