Bug #46486
closedResourceCompressor: Cleanly handle/log non-existing files
0%
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
Updated by Mathias Schreiber about 10 years ago
- Target version set to 7.4 (Backend)
- Is Regression set to No
Updated by Susanne Moog over 9 years ago
- Target version changed from 7.4 (Backend) to 7.5
Updated by Christian Kuhn over 9 years ago
- Status changed from New to Closed
unable to reproduce anymore.