Bug #22586

Compressor for JS causes PHP Warnings on Windows: filesize() and filemtime(): stat failed for t3lib/js/extjs/ux/flashmessages.js

Added by Chris topher over 5 years ago. Updated over 4 years ago.

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)

bug_14303.diff Magnifier (2.2 kB) Administrator Admin, 2010-11-29 09:36

bug_14303_v2.diff Magnifier (3.2 kB) Administrator Admin, 2010-11-29 12:04


Related issues

related to Core - Bug #22546: Add a compressor/concatenator for CSS and JS to TYPO3 Closed 2010-04-29
related to Core - Bug #22565: Improve t3lib_compressor Closed 2010-05-02
related to Core - Bug #25393: Fix path resolution in t3lib_compressor::compressCssFile() Resolved 2011-03-25

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)

Also available in: Atom PDF