Forums / Cotonti / Bugs / GD bug for newer PHP versions ?

ez
#33895 2012-04-12 17:52

we migrated from 5.3.6 to 5.3.10, so if it is present in earlier version i cannot tell ?

My provider moved me to a different server (newer)

 

Added 13 hours later:

Its unbelievable... but we found the problem !

First: Cotonti was NOT the problem.

But there are a few things we can improve to prevent these messages and make it more clear what is happening.
 

The problem:
We had real strange situations on one of our larger websites (1400+ unique visitors / day). Uploading files was the most visible problem, and generating thumbnails.
 

Cause:
It turns out that our hosting company has a diskQuota (A hard quota). So cot just could NOT write anything to the disk anymore.
This not only means files that ppl upload, but also cachefiles, tmp files and so...
I tell you strange things happen if cache files are filesize 0, and tmp files could not be written.

Improvements we could make:

  • Upload in pfs: after the initial upload somehow check if the uploaded file is valid. ( valid file check ?, not sure how..  )
  • In Cotemplate check if a cached file (tpl cache) is filesize 0. (If its 0, delete that one, and try to regenerate it)
    Anyway if the cachefile size is 0, then DONT use the cache file.
  • Maybe more checks regarding file operations could be made... ?
     

I know this situation was a very rare one, but with a few minor checks here and there and the Cotemplate addition this system will be more solid :) then ever.

hope this will help someone in the future...

 

==- I say: Keep it EZ -==

Dit bericht is bewerkt door ez (2012-04-13 08:01, 13 jaren ago)