Hello ,
There are some major problems with image.module . The problems outlined below were replicated on two independent
websites
Both independent sites fall over when we preview/submit an image with the following errors
warning: Invalid argument supplied for foreach() in /var/www/html/ ... /image/image.module on line 316.
warning: Invalid argument supplied for foreach() in /web/sites/...../modules/image/image.module on line 316.
However with error reporting turned off the image.module will work but has a usabilty problem in that it allows you submit without selecting an image .
Currently deploying the latest drupal build 4.6.3 on both websites and a recent image.module from the contributed repository on drupal.org
-Paul
Comments
Comment #1
Bèr Kessels commentedyou should NOT (never) run CVS/head module on a 4.6.2 installtion. Use a 4.6 module for 4.6 Drupal.
PLease close this issue if that fixed your problem.
Comment #2
Anonymous (not verified) commentedSorry. The above version was set incorrectly that should have been 4.6.0 i guess ,
although iam currently using 4.6.3 .
Regards
Paul
Comment #3
MrMattles commentedI am having this same issue
Comment #4
Ken Collins commentedI am seeing this error too:
This is on image.module version
Thing is... that this problem started showing up after I saw this error
I am using the new Drupal 4.6.3 and the file.inc version is
Comment #5
Ken Collins commentedOK, I resolved this on my end (1) upgrading to the lates version of image and (2) adding this to my php.ini file. This command let my PHP4 know where my Apache2 magic file was.
[mime_magic]
mime_magic.magicfile = "/Library/Apache2/conf/magic"
Comment #6
drewish commentedThis version is no longer supported. If this issue is occurring with a more recent version please open a new issue.