How to force PHP to display all the error messages

Add the following code to all the php scripts (preferably by including it):

<?php
ini_set('error_reporting', E_ALL);
ini_set('display_errors', 1);
?> 

Note that the above code will give you all notice messages and warnings that should not be displayed to the end user.

You can also try the following code - displays all the messages except notices:

<?php
ini_set('error_reporting', E_ALL-E_NOTICE);
ini_set('display_errors', 1);
?> 
Powered by PepisCMS