[TYPO3-core] RFC #5932: Bug: page module not usable due to warning message with filemtime
Franz Holzinger
franz at ttproducts.de
Mon Dec 22 09:23:43 CET 2008
Dmitry Dulepov a écrit :
> Patch file is not attached. http://typo3.org/teams/core/core-mailinglist-rules/: "...Then you can send a mail to the core list with a unified diff patch attached...".
done
>> Warning: filemtime() [function.filemtime]: stat failed for /var/www/html/uploads/pics/the_img_name.jpg in /var/www/html/trunk/t3lib/class.t3lib_befunc.php on line 1729
>>
>> This happens when the image has been deleted from the file system.
>
> Hmmm. Files should not be deleted manually from uploads/. System does it when there are no references to files.
This can also happend due a bug in an extension which writes a wrong
filename into the table record.
>> Solution:
>> Check for the existance of the file before the call of function filemtime.
>
> Using @ in front of filemtime could be an alternative. This will save one file system access, which is the slowest things.
Yes. But couldn't we also have a debug mode where all details and
warnings will be shown? It is very time consuming if you are searching
for the reasons of bugs.
- Franz
More information about the TYPO3-team-core
mailing list