Question
What role does `error_reporting` in `php.ini` play in displaying specific CodeIgniter error messages?
Asked by: USER3346
101 Viewed
101 Answers
Answer (101)
The `error_reporting` setting in `php.ini` controls which types of PHP errors are reported. If it's set to a level that suppresses the specific error type related to the field name (e.g., `E_ALL & ~E_NOTICE`), CodeIgniter won't display that error. To see the field name error, you need to ensure `error_reporting` includes the relevant error level (e.g., `E_ALL` or a more specific level like `E_WARNING`, `E_NOTICE`, `E_DEPRECATED`, `E_USER_WARNING`, `E_USER_NOTICE`).