Project

General

Profile

Actions

Bug #46486

closed

ResourceCompressor: Cleanly handle/log non-existing files

Added by Stefan Neufeind about 11 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
Start date:
2013-03-21
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
6.0
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

Log-module in BE shows:

Core: Error handler (BE): PHP Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for /home/.../typo3conf/ext/gridelements/res/js/dbNewContentElWizardFixDTM.js in /home/.../typo3_src-6.0.4/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 304

Core: Error handler (BE): PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for /home/.../typo3conf/ext/gridelements/res/js/dbNewContentElWizardFixDTM.js in /home/.../typo3_src-6.0.4/typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 304

I checked that the file really does not exist here (which is an error in that checkout of gridelements). But we should handle such errors more gracefully / cleanly log them instead of throwing PHP warnings.

Steffen Ritter mentioned a similar case today, which I wasn't able to reproduce but is the "same" error:
Core: Error handler (BE): PHP Warning: filesize(): stat failed for /var/www/typo3temp/sprites/zextensions.css in typo3/sysext/core/Classes/Resource/ResourceCompressor.php line 364

Actions

Also available in: Atom PDF