Closed
Description
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:
<style>
<?= preg_replace('#[\r\n\t ]+#', ' ', file_get_contents(__DIR__ . DIRECTORY_SEPARATOR . 'debug.css')) ?>
</style>
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
Metadata
Metadata
Assignees
Labels
No labels