Welcome Guest, Not a member yet? Register   Sign In
Un-suppress warnings?
#8

[eluser]Aken[/eluser]
Have you tried setting error_reporting() directly before you load the view? Give that a shot, see if it changes anything. If it does, you have an error_reporting() setting somewhere that is overwriting the setting in index.php. Focus on getting the error displayed in your browser, that's the more important thing.

Just so I'm clear, are you talking about PHP's error log file, or CodeIgniter's generated log files? I just checked my PHP error logs and it did NOT register the notice error, even though CodeIgniter displayed it properly. I then did the same in a non-CI file and it registered the error in my log.

I've gone through the source code some, and CodeIgniter is indeed using set_error_handler() to do it's own error handling (mainly for the purpose of logging PHP errors into CI's log files, in case the developer does not have access to them).

The problem with this is that doing so is that it overwrites PHP's built-in error handler, which is what sends data to the log files. If you overwrite it, you're supposed to use PHP's error_log() function to handle writing to log files. CodeIgniter does not currently do this.

I might put together a MY_Log file to extend this functionality for those who still want to log errors and such to their server files and not just CodeIgniters. I'll have to research best practices a bit more.


Messages In This Thread
Un-suppress warnings? - by El Forum - 07-31-2011, 07:37 AM
Un-suppress warnings? - by El Forum - 07-31-2011, 04:23 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 04:41 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 05:07 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 05:36 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 05:46 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 05:58 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 07:00 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 07:17 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 07:22 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 07:47 PM
Un-suppress warnings? - by El Forum - 07-31-2011, 11:59 PM



Theme © iAndrew 2016 - Forum software by © MyBB