How to enable errors on CodeIgniter website

Started by Manish, January 12, 2017, 02:02:03 PM

Previous topic - Next topic

Manish

Hi,

Sometimes you get black page on CodeIgniter website and no errors generated on the server. In such cases you can view the exact errors by enabling the display_errors from index.php file.

Open index.php file and add below code at the end of file

Quote
error_reporting(E_ALL);
ini_set('display_errors', 1);

After that access the website and it will show you exact errors.