Project

General

Profile

Actions

Bug #39891

closed

class.t3lib_compressor floods php error log on Windows

Added by Tomasz Krawczyk over 12 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2012-08-17
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Such messages flood PHP error log on Windows:

[17-Aug-2012 11:11:13] http://www.domain.local/ - Core: Error handler (BE): PHP Warning: filesize() [<a href='function.filesize'>function.filesize</a>]: stat failed for D:/wamp/www/www.domain.local/typo3//be/typo3lang.js in d:\wamp\www\www.domain.local\typo3_src\t3lib\class.t3lib_compressor.php line 462

[17-Aug-2012 11:11:13] http://www.domain.local/ - Core: Error handler (BE): PHP Warning: filemtime() [<a href='function.filemtime'>function.filemtime</a>]: stat failed for D:/wamp/www/www.domain.local/typo3/s/xtheme-t3skin.css in d:\wamp\www\www.domain.local\typo3_src\t3lib\class.t3lib_compressor.php line 357 

It happens on IIS and Apache. I noticed this behavior in TYPO3 versions 4.5.16, 4.6.9 and 4.6.12

I made a small patch for TYPO3 v.4.6.12 that helped me. Please, consider aplying this patch to the core.


Files

class.t3lib_compressor.php.patch (1.4 KB) class.t3lib_compressor.php.patch Tomasz Krawczyk, 2012-08-17 15:35
Actions #1

Updated by Michael Stucki over 12 years ago

  • Status changed from New to Needs Feedback
  • Complexity deleted (easy)

Hey Tomasz,

good to know that you found a solution for this problem. However, the problem is actually still unclear to me:

  • Is there a problem with filesize() & filemtime()?
  • Does the filename contain forbidden characters?
  • Maybe the filename is too long?

Please try to find that out and let me know about it.

Thanks in advance!
- michael

Actions #2

Updated by Tomasz Krawczyk over 12 years ago

Michael,

The problem occurs always when the file doesn't exist in all functions using stat(). I had made test script asking for not existing file and always had this warnings.

On Windows I always avoid national characters in file names. Beside compressed files was .css and .js - generated by TYPO3.

I tested this on Windows Server 2003 and Windows XP. The file length is not a problem.

Tomek

Actions #3

Updated by Michael Stucki over 12 years ago

If the file is not existing, something else must be going wrong. To me it still looks like your fix is just working around symptoms but not resolving the real problem.

Can you please investigate a little more?
Can anyone else reproduce the problem using Windows?

Actions #4

Updated by Tomasz Krawczyk about 12 years ago

Michael,

I think, the problem occured only when I was developing some extension. It doesn't happen now. It looks it was my fault.

The bug may be closed.

Actions #5

Updated by Michael Stucki about 12 years ago

  • Status changed from Needs Feedback to Resolved

Alright, thanks for your feedback.

Actions #6

Updated by Benni Mack about 6 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF