Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] Adding File Upload to working form produces JS error

  • The form works without the File Upload added. Adding it though will result in an endless rotating arrow, never makes it to error/success message and in the console I get:

    TypeError: Result of expression ‘$.handleError’ [undefined] is not a function.
    jquery.form.js (ver=2.47) line 383

    The JS gets loaded at the end of the page. Read the docs, the tutorial, the comments and I triple checked the form setup and tried it with the most simple (no limits) file upload. Always the same problem. The moment I take that one line out, the form works again.

Viewing 9 replies - 1 through 9 (of 9 total)
  • I noticed that I did not have the latest plugin version, so I upgraded, but the error remains, now with jquery.form.js (ver=2.52) on line 388.

    Update: I have upgraded to WP 3.1 and am on the latest plugin. Error remains.

    I have the same problem, the error shows up when I have jQuery 1.5 included on my site. Works with jQuery 1.4.4

    Same here!

    same here using the latest versions of the form and WP.

    the mail and attachment are sent just fine but the animation continuous … trying to debug it with firebug … uncommenting the handleerror en setting the ok to true; it takes me to the scripts.js and gives me the error that the data var is undefined but still sent the mail just fine … removing the file input field and the callback works.

    $.httpData and $.handleError are removed from jquery 1.5.
    They have been rolled in to the ajax functionality with the ajax rewrite, therefore $.httpData and $.handleError no longer exist, and this plugin no longer works with the latest jquery.


    I too have the same problem.
    Does anyone maybe have a workaround?


    I changed the php.ini file to the following:

    memory_limit = 64M
    upload_max_filesize = 64M

    This is still an issue. Temporary fix is to force and old version of jquery in fucntions.php

    function my_scripts_method() {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', '');
        wp_enqueue_script( 'jquery' );
    add_action('wp_enqueue_scripts', 'my_scripts_method');
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Contact Form 7] Adding File Upload to working form produces JS error’ is closed to new replies.