* warning: getimagesize(imagecache/uc_thumbnail/sites/default/files/files/inca_kola_1.jpg) [function.getimagesize]: failed to open stream: No such file or directory in /srv/www/vhosts/xxxxxx.com/subdomains/d5/httpdocs/modules/imagecache/imagecache.module on line 208.
* warning: filesize() [function.filesize]: stat failed for imagecache/uc_thumbnail/sites/default/files/files/inca_kola_1.jpg in /srv/www/vhosts/xxxxxx.com/subdomains/d5/httpdocs/modules/imagecache/imagecache.module on line 209.

CommentFileSizeAuthor
#4 imagecache.patch650 byteschellman
#3 imagecache.patch638 byteschellman

Comments

NecroHill’s picture

same problem (( any ideas?

OrinocoDelta’s picture

Status: Active » Closed (fixed)

i used now the 1.5 version and it works.....

chellman’s picture

Status: Closed (fixed) » Needs review
StatusFileSize
new638 bytes

I 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.

chellman’s picture

StatusFileSize
new650 bytes

Apparently I misunderstood how file_create_path works, so I just redid the patch.

xurizaemon’s picture

If 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

treksler’s picture

have also moved back to 1.5 to avoid the rrors
please release 1.7 to fix this

4kant’s picture

@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

jpl80’s picture

How 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.

Abilnet’s picture

How do you apply this patch?...

Maybe you want to take a look at this and this and this...

drewish’s picture

drewish’s picture

update to the new 5.x-1.7 release.