Closed (fixed)
Project:
Imagefield Crop
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Apr 2009 at 19:12 UTC
Updated:
8 Apr 2009 at 16:38 UTC
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
Comment #1
yhager commentedCould it be that imagefield is disabled somehow in your setup? Which versions of filefield, imagefield and imagefield_crop are you using?
Comment #2
leenwebb commentedI 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.)
Comment #3
yhager commentedThere 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
Comment #4
leenwebb commentedPerfect! Works beautifully with the current versions of everything. Thanks for your help!