Hi,

I am finding I am getting a JS error in IE6,7 or 8 when trying to add a new imagefield. My content type has this image field set to unlimited.

The errors I am getting are :

Message: 'Drupal.settings.imagefield_crop[...].box' is null or not an object
Line: 22
Char: 7
Code: 0
URI: http://dev.ppsm.com/sites/all/modules/imagefield_crop/imagefield_crop.js?O


Message: Invalid argument.
Line: 31
Char: 11
Code: 0
URI: http://dev.ppsm.com/sites/all/modules/imagefield_crop/imagefield_crop.js?O

Has anyone found a fix for this? or has a patch I could apply?

Comments

adeb’s picture

I have a possible fix:
Inside imagefield_crop.js, replace this:

// wait till 'fadeIn' effect ends (defined in filefield_widget.inc)
setTimeout(attachJcrop, 1000, context);

With:

// wait till 'fadeIn' effect ends (defined in filefield_widget.inc)
var myFunction = function() {attachJcrop(context);}
setTimeout(myFunction, 1000);

yhager’s picture

Status: Active » Postponed (maintainer needs more info)

@instagata can you please check the latest in CVS, it contains the fix @adeb suggested in #718136: Crop area not showing with 2nd imagefield on multiple imagefield.

instagata’s picture

Cheers yhager will take a look now.