Contact Form 7
Adding File Upload to working form produces JS error (10 posts)

  1. mStudios
    Posted 5 years ago #

    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.

  2. mStudios
    Posted 5 years ago #

    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.

  3. mStudios
    Posted 5 years ago #

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

  4. tomasztopa
    Posted 5 years ago #

    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

  5. Thomas
    Posted 5 years ago #

    Same here!

  6. nitoone
    Posted 5 years ago #

    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.

  7. nitoone
    Posted 5 years ago #

    $.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.

  8. Con Schneider
    Posted 5 years ago #


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


  9. robindemey
    Posted 5 years ago #

    I changed the php.ini file to the following:

    memory_limit = 64M
    upload_max_filesize = 64M
  10. 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', 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js');
        wp_enqueue_script( 'jquery' );
    add_action('wp_enqueue_scripts', 'my_scripts_method');

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic