Hi all,
Totally love this module. It is very snazzy.

I just installed it on a (fairly) clean site and I get this when I create a new "Image with crop" field:

warning: array_merge() [function.array-merge]: Argument #2 is not an array in /sites/all/modules/imagefield_crop/imagefield_crop_widget.inc on line 83.

When I use the field it uploads the image and allows me to crop (and saves the cropped image), but does not restrict the crop size/shape. A little poking around shows me that line 83 is in fact the line where the resolution restrictions get saved, but I am not php-able enough to debug beyond that.

Thanks!

Comments

yhager’s picture

Could it be that imagefield is disabled somehow in your setup? Which versions of filefield, imagefield and imagefield_crop are you using?

leenwebb’s picture

I have:
Filefield 6.x-3.0-alpha7
ImageField 6.x-3.0-alpha4
Image crop 6.x-1.0-beta3

I don't think anything is disabled, since as I mentioned above, the image does upload, and the crop takes place (and saves/displays the cropped image). It's just the size restriction that's not working.

(My PHP is 5.2.6-2ubuntu4.1, and MySQL is 5.0.67-0ubuntu6, if that makes any difference.)

yhager’s picture

There have been changes in the API of filefield & imagefield, so please upgrade these modules to their latest version. More details here: http://drupal.org/node/406962

leenwebb’s picture

Status: Active » Closed (fixed)

Perfect! Works beautifully with the current versions of everything. Thanks for your help!