![]() |
Problem to show page 404 after update to 4.1.5 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Problem to show page 404 after update to 4.1.5 (/showthread.php?tid=80522) |
Problem to show page 404 after update to 4.1.5 - chronic - 11-11-2021 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? RE: Problem to show page 404 after update to 4.1.5 - kenjis - 11-11-2021 Add the property $sensitiveDataInTrace in app/Config/Exceptions.php. https://github.com/codeigniter4/CodeIgniter4/blob/develop/app/Config/Exceptions.php#L59 RE: Problem to show page 404 after update to 4.1.5 - chronic - 11-12-2021 Ok now it works. Thanks kenjis |