MilesWeb
MilesWeb Hosting Forum

Please login or register.

Login with username, password and session length

 

News:

SMF - Just Installed!


Author Topic: How to enable errors on CodeIgniter website  (Read 2410 times)

0 Members and 1 Guest are viewing this topic.

Offline Manish

  • Newbie
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
How to enable errors on CodeIgniter website
« 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.

MilesWeb Hosting Forum

How to enable errors on CodeIgniter website
« on: January 12, 2017, 02:02:03 PM »