Welcome Guest, Not a member yet? Register   Sign In
Problem to show page 404 after update to 4.1.5

After updating to version 4.1.5. when in controller I call

PHP Code:
throw \CodeIgniter\Exceptions\PageNotFoundException::forPageNotFound(); 

it doesn't show me the correct 404 error page, but chrome gives me the error 500 and in the logs I found this error:

CRITICAL - 2021-11-12 00:04:57 --> Uncaught TypeError: Argument 2 passed to CodeIgniter\Debug\Exceptions::maskSensitiveData() must be of the type array  etc.

If I restore version 4.1.4. it doesn't happen, and it shows the 404 page correctly, where could I investigate to understand where is the problem?

Add the property $sensitiveDataInTrace in app/Config/Exceptions.php.


Ok now it works.

Thanks kenjis

Theme © iAndrew 2016 - Forum software by © MyBB