I'm getting this error when I click manage image crops and the windows open.
Error on load : 'undefined' is not an object (evaluating '$('#edit-epsacropcoords').val().length')
It then fails to load the image. Any ideas?
I'm getting this error when I click manage image crops and the windows open.
Error on load : 'undefined' is not an object (evaluating '$('#edit-epsacropcoords').val().length')
It then fails to load the image. Any ideas?
Comments
Comment #1
jphelan commentedI found the issue, the id of my textarea is edit-epsacropcoords-1 not edit-epsacropcoords. Any Idea how that could have happened? It worked for months and all of a sudden stopped with this error. I fixed it buy editing line 50 of epsacrop.js and changing the id being referenced.
if($('#edit-epsacropcoords').val().length > 0 && Drupal.EPSACrop.init == false)Comment #2
jphelan commentedIf anyone else runs into this issue you'll need to change epsacrop.js in two other places as well.
Line 51
Drupal.EPSACrop.presets = eval('(' + $('#edit-epsacropcoords').val() + ')');Line 15
$('#edit-epsacropcoords').val(JSON.stringify(Drupal.EPSACrop.presets));Comment #3
yvmarques commentedHi,
If you've it, it means that you've twice a node form on the same page.
Is it the case ?
-- Yvan
Comment #4
jphelan commentedNo, I only have one image field on the node type, it that's what you mean.
Comment #5
sebas5384 commentedSame problem over here :(
I cant understand how this happened all of a sudden.
Comment #6
yvmarques commented