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.
jquery.form.js:7Uncaught TypeError: Object function (a,b){return new e.fn.init(a,b,h)} has no method 'handleError'
Because IMCE ships its own version of jquery.form.js, jQuery Update does not replace jquery.forms.js with the latest version. This causes problems if you're using jQuery 1.7.
The easiest fix (for jQuery 1.7 users) is updating the IMCE jquery.forms.js with the latest available from http://malsup.github.com/jquery.form.js.
Comments
Comment #1
ufku CreditAttribution: ufku commentedLatest jquery.form won't work with jQuery 1.2.6 which is shipped with D6.
The one IMCE uses is compatible with both 1.2.6 and 1.3.2(jQuery update).
Comment #2
aidanlis CreditAttribution: aidanlis commentedAlso look at #1902236: Remove unnecessary code from uploadValidate
Comment #3
yogaf CreditAttribution: yogaf commentedReplacing jquery.forms.js with http://malsup.github.com/jquery.form.js did the trick.
Comment #4
eXoSaX CreditAttribution: eXoSaX commentedI have the sam issue on Drupal 7. I am using the latest IMCE module with latest File Sources module.
This is what happens when I Insert a file from IMCE:
JavaScript error doesn't happen and in Drupal log there is also no error. I am using jQuery 1.7 with jQuery Update. When I switch to 1.5, it works fine. I am also using ImageField Focus module and I tried without it, but the issue persists.
I tried with the latest jquery.form.js, but the issue persists. Any other solution?
Comment #5
blackandcode CreditAttribution: blackandcode commentedI have the same bug as eXoSaX.
Comment #6
blackandcode CreditAttribution: blackandcode commentedDoes anyone have similar problems???
This is good option and good module but without this it is useless...
IS THERE ANY SOLUTION?
Comment #7
damien_vancouver CreditAttribution: damien_vancouver commentedI also have exactly the same problem as @eXoSaX. I verified that replacing jquery.form.js in IMCE's js/ subdirectory did NOT fix the problem, and that there are no errors in the JS console.
Because Windows 8's Internet Explorer 10 no longer works with jQuery 1.5 on many functions (including Galleria galleries), I am forced to run jQuery_Update to jQuery 1.7. Thanks, Microsoft!
If anyone has a workaround to get IMCE working again, please post it here!
Comment #8
ufku CreditAttribution: ufku commentedIMCE 7.x was tested to work with jquery_update (1.5, 1.7, 1.8).
Please post your issues to related module's issue queue.
Comment #8.0
ufku CreditAttribution: ufku commentedFormatting fix.
Comment #9
mmikitka CreditAttribution: mmikitka commentedI just added the jQuery Migrate Plugin to jquery_update -- see https://drupal.org/comment/8341311#comment-8341311
All the best,
matt
Comment #10
thegreatone CreditAttribution: thegreatone commentedI am having the same problem. A site without jquery update enable...imce works perfectly. As soon as I enable jquery update and push the jquery version to 1.7 (as required by the new stuff we are working on) imce stop working. If I set the version of jquery back to default, it works. If set to 1.7, it does not.
What it does:
Everything works fine....imce browser is loading, files are uploading, BUT. When I say "insert file", it goes back to the node edit page and the throbber keep spinning with nothing happening. If I go to an existing node and click on the "remove" button, the same thing happen...the throbber spin but else happen.
I tried to update the jquery module to make use of the migrate option but it's only good if you use jquery 1.9. I tried to replace the jquery.form.js of the imce module...not working.
Any solution or fix I don't know about?