warning: getimagesize() failed to open stream:

Posts: 26
Joined: 10/07/2008

* warning: getimagesize(imagecache/product/files/womens_tank_sm.jpg): failed to open stream: No such file or directory in /hsphere/local/home/pongstuff/pongstuff.com/drupal-5.10/sites/all/modules/imagecache/imagecache.module on line 208.

* warning: filesize(): stat failed for imagecache/product/files/womens_tank_sm.jpg in /hsphere/local/home/pongstuff/pongstuff.com/drupal-5.10/sites/all/modules/imagecache/imagecache.module on line 209.

I get these warnings when I go to create content -> product. The warning triggers on the last image I have uploaded. I am using imagecache 5.x-1.6. Do I have to upgrade to 5.x-2.1?

It seems to me that upgrading drupal has more steps than my Sister's AA recovery program and last time I tried it I screwed it up and had to ask my hosting provider to restore my account to the previous day. Isn't there any easy way to backup and upgrade?

Posts: 26
Joined: 10/07/2008

Okay, I found a proposed solution that seems to work for 2 users: http://drupal.org/node/303903

My question is now... how do I apply the patch? Must I follow the lengthy backup and upgrade process for this patch?

Posts: 1
Joined: 10/29/2008

If you download the patch and open it in your text editor you will see that the patch makes reference to a comment:

// Serve it up

The code following this comment needs to be implemented in imagecache.module.

To do that you need to open a the imagecache.module file in your text editor. Then search for "// Serve it up". Replace the code up to including the next exit;. You may have to delete some extra minus or plus symbols that are prepended to each line.

Posts: 226
Joined: 01/25/2008
Bug FinderBrain StormerGetting busy with the Ubercode.

In my opinion easier solution is to use 5.x-dev, that is what we run on all our installations. It works fine no issues. Don't upgrade to 2.1 unless you know what you are doing and understand you will have to create the presets manually.

Posts: 69
Joined: 08/08/2007
Early adopter... addicted to alphas.Getting busy with the Ubercode.

I can't be 100% positive, but I would guess this is now fixed with the release of version 1.7. I haven't tested it myself, but I'm just assuming that the fixed patch is in this new version.

By the way, just adding this for anyone else who might search for this error.

Cheers,
Steph

Posts: 208
Joined: 12/28/2007
Uber DonorBug Finder

ssherriff wrote:
I can't be 100% positive, but I would guess this is now fixed with the release of version 1.7. I haven't tested it myself, but I'm just assuming that the fixed patch is in this new version...

You're right... after installing Image Cache ver. 1.7 there seems to be no errors anymore.

Posts: 5625
Joined: 08/07/2007
AdministratorHead Code Monkey - I eat bugs.

Yep! Just tested and confirmed... ImageCache 1.7 seems to work fine! Updating our docs now...