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:
error_reporting(E_ALL & ~E_NOTICE & ~E_WARNING);
- change this line to:
error_reporting(E_ALL);
- and just underneath it add:
ini_set("display_errors", 1);
- 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.