Show detailed error when moodle show blank page

One of our client is experiencing blank web page when they are using Moodle application but they can’t find a way to show the detailed error from Apache error_log.

After looking around, we find out Moodle used their customized PHP ini_set function to determine the PHP values.

To show the detailed error which got from Moodle, basically we need to add the following rule to the config.php file.

ini_set ('display_errors', 'on');
ini_set ('log_errors', 'on');
ini_set ('display_startup_errors', 'on');
ini_set ('error_reporting', E_ALL);

Now, browse to your web page again and you can see the detailed error by now.