Welcome Guest, Not a member yet? Register   Sign In
How to prevent CI from reporting PHP Notice errors
#4

(07-04-2019, 02:06 AM)shepparddigital Wrote: Yes, it's 3.x, I've followed the documentation, and you can clearly see that on the 'development' environment I've changed the log level via error_reporting() to display all errors except notices, strict errors and user notices, but for one reason or another CI is still outputting those errors.

In the file application/config.php I have also set $config['log_threshold'] = 1;

Why is CI still outputting notices? What am I missing?

Very strange!
I tested on my server and it works...
1. perhaps'a you may have an overlaod controller for Exceptions (search under application/core)
2. maybe you have a try-catch-finally block on your own controller
3. be sure the CI code is clean: you must have in line 612 (system/core/Common.php):

PHP Code:
if (($severity error_reporting()) !== $severity)
        {
            return;
        } 

can you post the controller source code that has this problem
Reply


Messages In This Thread
RE: How to prevent CI from reporting PHP Notice errors - by hc-innov - 07-10-2019, 08:36 AM



Theme © iAndrew 2016 - Forum software by © MyBB