Welcome Guest, Not a member yet? Register   Sign In
Errors are not being reported in models (reporting set to E_STRICT)
#1

[eluser]JonathanYC[/eluser]
Hi!
As the title says, errors are not being reported when I do something silly in my models such as call a nonexistent function. However, in the 'index.php' for CodeIgniter I have set error reporting to E_STRICT. Setting error reporting to E_ALL does not help.

Does anyone know why this might be happening or happen to have a solution for it?

Thanks!
#2

[eluser]JonathanYC[/eluser]
ARGH, apparently display_errors was somehow set to Off by someone else. Or, as someone on the IRC suggested, maybe that is the default for Apache now.
Sorry to bother you guys. Sad
#3

[eluser]Sayian[/eluser]
In the future you can enable php errors in apache using .htaccess even when the primary config file has them turned off.

Place this in your .htaccess file for your web account

# display errors - for level INT 7 - normal errors, normal warnings and parser errors
php_flag display_errors on
php_value error_reporting 7

# enable PHP error logging
php_flag log_errors on

# optional error logging path (although I'd recommend using CIs in config/config.php
php_value error_log /home/path/public_html/domain/PHP_errors.log
#4

[eluser]JonathanYC[/eluser]
Thanks for the tip Sayian!
I'll be sure to keep that in mind for the future.




Theme © iAndrew 2016 - Forum software by © MyBB