Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
adeb CreditAttribution: adeb commentedI 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);
Comment #2
yhager CreditAttribution: yhager commented@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.
Comment #3
instagata CreditAttribution: instagata commentedCheers yhager will take a look now.