Hi all,

I just upgraded from 4.5.2->4.6.0. Things went pretty smoothly - except for the image module.

Using the GD toolkit, no JPG images can be uploaded. No mesages are provided. It appears to be a problem with calling the resize problem.

So, I switched to the Image Magick toolkit. This (was what the site was using before the update). Sometimes it can manage to post an image, but most of the time it generates the following message from image_insert().

Invalid argument supplied for foreach() in /srv/www/htdocs/modules/image/image.module on line 308.

It looks like $node->images may be NULL, but I'm not sure why.

If anyone has any ideas on what's causing this, I'd be pretty happy.

Thanks,

-aw

Comments

grohk’s picture

Sorry to hear you are having issues...Just a quick question, did you try selecting the builtin GD2 toolkit or did you try using external GD2 toolkit?

---
Code Orange: Drink Your Juice

autowitch’s picture

Hey Grohk,

It's been pretty odd. I ususally have good luck with the image module.

I was using the built-in GD toolkit (I've switched over to Image Magick for now - I can get past the resize issue, but am now stuck with the foreach() issue).

If it's of help, my PHP is version 4.3.3 and my GD is version 2.0.15.

I'm going to add some debug code into the module tomorrow and see if I can figure anything out.

Thanks for your help,

-aw

autowitch’s picture

Ok, I'm not sure exactly how, but I think I've got it working. I'm currently using the CVS version of the image.module. What I think was happening was that (for some reason - possibly some damaged images), that when the image was uploaded, it could not generate the thumbnail and preview versions of it and the error was not trapped. Not quite sure on this - it's a guess.

-aw