Closed (duplicate)
Project:
ImageCache
Version:
5.x-1.6
Component:
imagecache_image module
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
4 Sep 2008 at 12:28 UTC
Updated:
29 Oct 2008 at 21:36 UTC
Jump to comment: Most recent file
Comments
Comment #1
NecroHill commentedsame problem (( any ideas?
Comment #2
OrinocoDelta commentedi used now the 1.5 version and it works.....
Comment #3
chellman commentedI think there's a pretty simple fix for this, just adding file_create_path() to the getimagesize() and filesize() calls. I did that, and the errors have gone away with no apparent ill effects. I've attached the patch.
Comment #4
chellman commentedApparently I misunderstood how file_create_path works, so I just redid the patch.
Comment #5
xurizaemonIf you're also seeing "division by zero" errors, you might like to try the patch in this comment:
http://drupal.org/node/309049#comment-1015097
Comment #6
treksler commentedhave also moved back to 1.5 to avoid the rrors
please release 1.7 to fix this
Comment #7
4kant commented@chellman (#4):
Thanks for your patch!
It works fine for me.
Besides "warning: getimagesize" and "warning: filesize", I also had the "devision by zero" message - and all are now gone after this patch.
No need to step back to imagecache5.x-1-5 (- I´m actually using 5.x-1-6)
I´m now having a wonderful ubercart1-5 + uc_option_image installation up and running correctly!
Thanks
4k
Comment #8
jpl80 commentedHow do you apply this patch? I just changed the source code and re-uploaded the file. Was that the right thing to do? Because it did not eradicate the warning messages.
Also, my local and remote directory look different. Is this normal? My remote imagecache folder has about 5 files in it and my local has about 10. This seems like an anomaly because the other module directories match up perfectly.
Comment #9
Abilnet commentedMaybe you want to take a look at this and this and this...
Comment #10
drewish commentedsee #242932: revision 1.19.2.36 throws divide-by-zero and other errors when first generating a derivative
Comment #11
drewish commentedupdate to the new 5.x-1.7 release.