-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: 404 error page override with cache #2391
Comments
It would be helpful to know exactly which version of CI4 you are using. I cannot find a commit where that function is on line 960, so my first suggestion is making sure you are using a current release. It would also be helpful to see the code you are executing that leads to error. |
It is the latest update please search for this function cachePage in system/Codeigniter.php |
This file here my brother. |
I overrided the Error Page and cache the error page. That is it. |
You understand or i need a more exemplified with code to show.. Override the Error from the config with your controller. You will get the error i posted up top. |
The call |
Yes.. and From the Error override controller. |
@crustamet,
I would really like to see the code
|
Yes wait i was testing some stuff but i know for sure what is the problem.. So i have this setup
With this Controller
if i remove $this->cachePage(360); the error does not show |
Thanks. I am able to reproduce the problem. Now to figure out why. |
…che-error Fix issue #2391 CodeIgniter::display404errors()
TypeError
Argument 1 passed to CodeIgniter\CodeIgniter::cachePage() must be an instance of Config\Cache, null given, called in /projects/ci4/system/CodeIgniter.php on line 960
The text was updated successfully, but these errors were encountered: