[FIXED] Warning about the function filemtime() and errors.

Added by Aeness about 9 years ago

Hello,

When I try this address : http://atys.ryzom.com/api/item_icon.php?sheetid=iccahg_3.sitem

I have a warning about the function filemtime() and this warning generates an error because the header information is sent after this warning.

Warning: filemtime() [function.filemtime]: stat failed for ryzom_api/server/item_icon/final/49c08bf4dd65c46a595576de94217c39.png in /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php on line 33

Warning: Cannot modify header information - headers already sent by (output started at /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php:33) in /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php on line 43

Warning: Cannot modify header information - headers already sent by (output started at /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php:33) in /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php on line 44

Warning: Cannot modify header information - headers already sent by (output started at /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php:33) in /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php on line 45

Warning: Cannot modify header information - headers already sent by (output started at /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php:33) in /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php on line 46

Warning: Cannot modify header information - headers already sent by (output started at /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php:33) in /home/nevrax/atys.ryzom.com/redmine/public/api/item_icon.php on line 47

Maybe it has a link with this modification : Cache for icon item.
(When I ask for a picture which does not exists)

Aeness


Replies (2)

RE: Warning about the function filemtime() and errors. - Added by vanila about 9 years ago

Same warnings for me each time I enter a bad code in the sheetid ... or something missing from the cache.

You shouldn't cache non-existent items : there are an infinite number of them (or at least a very big number) ... I hope you don't, unless you have infinite storage capacity. If you 're limiting the cache size in some way (I hope you do) "real" items should be privileged compared to non-existent ones.

RE: Warning about the function filemtime() and errors. - Added by vl about 9 years ago

Thanks for the report. We fixed the problem.

(1-2/2)