-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Uncaught ErrorException on debug.css path #9509
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
Comments
Can you provide more context on this, like reproduction steps? By the first look on this, it seems you just need to chown the directory (which I think should already have been). |
No response received. Closing. |
Sorry for the delay in responding. Reproduction steps are in the original post. Why would I need to chown the directory? This is meant to be code to include some CSS, not to delete a file, hence the issue report. If this code were to work properly, it'd read the file and place its contents into a CSS style tag, rather than what it actually does, which is attempt to unlink the CSS file. I will not give the folder deletion rights, as there should be no deletions happening in this folder; the CSS files should be read, and there are read permissions for them. |
Sorry for the confusion. For the reproduction steps, I meant to ask the whole context on what's happening or what are you doing before the crash occurred. |
As per the purpose of this code which provides a page when errors occur, informing the user that the page ran into trouble, this problem occurs whenever an error page is triggered. |
Thanks. I tested it with your test and all is fine and weirdly the problem has vanished from the site I was having an issue with, so I don't know what fixed it as I don't think I changed anything to fix it, most odd. Many thanks. |
PHP Version
8.4
CodeIgniter4 Version
4.6.0
CodeIgniter4 Installation Method
Composer (using
codeigniter4/appstarter
)Which operating systems have you tested for this bug?
Linux
Which server did you use?
fpm-fcgi
Database
No response
What happened?
app/Views/errors/html/production.php:10 produces a PHP Fatal error: Uncaught ErrorException due to the line attempting to unlink app/Views/errors/html/debug.css, which is failed as the folder is not writable, nor should it be, This is not the intended action.
The problematic code is:
This should pull the contents of this file into a style tag; however, as the error shows, it appears to be triggering an unlink of the file for some reason.
Steps to Reproduce
See above.
Expected Output
Loading of CSS
Anything else?
No response
The text was updated successfully, but these errors were encountered: