MilesWeb Hosting Forum

Web Hosting Technical Support => Errors and Solutions => Topic started by: Manish on January 12, 2017, 02:02:03 PM

Title: How to enable errors on CodeIgniter website
Post by: Manish on January 12, 2017, 02:02:03 PM
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.