Bug #22586
Compressor for JS causes PHP Warnings on Windows: filesize() and filemtime(): stat failed for t3lib/js/extjs/ux/flashmessages.js
Status: | Closed | Start date: | 2010-05-04 | |
---|---|---|---|---|
Priority: | Should have | Due date: | ||
Assigned To: | Steffen Kamper | % Done: | 0% |
|
Category: | - | Spent time: | - | |
Target version: | - | |||
TYPO3 Version: | 4.4 | Is Regression: | ||
PHP Version: | 5.2 | Sprint Focus: | ||
Complexity: |
Description
When I clear the cache and then call a page in the BE I get the following errors. They always appear both:
Core: Error handler (BE): PHP Warning: filesize(): stat failed for C:/htdocs/t3lib/js/extjs/ux/flashmessages.js in C:\htdocs\t3lib\class.t3lib_compressor.php line 302
Core: Error handler (BE): PHP Warning: filemtime(): stat failed for C:/htdocs/t3lib/js/extjs/ux/flashmessages.js in C:\htdocs\t3lib\class.t3lib_compressor.php line 302
After that I can call pages in the BE as I wish; I only get the error again after clearing the cache.
I do not get this error using a *nix server.
(issue imported from #M14303)
Related issues
History
#1 Updated by Rens Admiraal over 4 years ago
I had the same problem for files located in fileadmin/ which are configured in RTE.default.contentCSS
Supplied is a patch which fixes the problem that the t3lib_compressor class only handles files within the TYPO3 folder because it fails to create a valid path with this code:
substr($filename, strlen($GLOBALS['BACK_PATH']))
#2 Updated by Rens Admiraal over 4 years ago
After some testing the solution seemed to be more complex, created a new patch (v2)
#3 Updated by Steffen Kamper over 4 years ago
committed v3 to trunk rev 9836
#4 Updated by Susanne Moog over 4 years ago
- Target version deleted (
4.5.0)