Code Igniter blank page with no error display even though display errors are on

I am using CodeIgniter 2.1.4 version. My production server environment is “PHP Version 5.5.26-1+deb.sury.org~precise+1”, Apache, Ubuntun.

Display error is on server wide. I’ve turned it on from the index.php like following code as well

if (defined('ENVIRONMENT'))
{
    switch (ENVIRONMENT)
    {
        case 'development':
            error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));
            ini_set('display_errors', 1);
        break;

        case 'testing':
        case 'production':
            error_reporting(E_ALL ^ (E_NOTICE | E_WARNING | E_DEPRECATED));
            ini_set('display_errors', 1);
        break;

        default:
            exit('The application environment is not set correctly.');
    }
}

But no errors were shown and totally blank page. It’s running fine on other production server environment as well as localhost.

What should I check and how should I resolve it?

Thank you.


Source: php

Leave a Reply