Support » Plugins » [Plugin: Contact Form 7] Ajax: all works, except for send

Viewing 15 replies - 16 through 30 (of 37 total)
  • I got this problem too. I think it’s something with one of the latest releases of Contact form 7 =(

    Same here. Redirect was working fine with WP 2.9.2 and now on 3.0 i just get a spinning arrow.

    Hi. Same problem here. I have no redirection, it’s just the ajax that doesn’t work: loading wheel keeps on spinning but message is sent.

    Checking the Console on firebug I get the following response on sending the form:

    <br />
    <b>Warning</b>:  stripslashes() expects parameter 1 to be string, array given in <b>.....(redacted)..../wp-content/plugins/contact-form-7/includes/classes.php</b> on line <b>276</b><br />
    {"mailSent":true,"into":"#wpcf7-f1-p452-o1","captcha":null,"message":"Tu mensaje se ha enviado con \u00e9xito. Muchas Gracias.","onSentOk":null}

    I suppose this is not what the script is waiting for. But I’m not sure how to tackle.

    Ok, found something, but it’s just a quick hack. I’m sure someone can find a more elegant solution. In contact-form-7/includes/classes.php on line 276 there’s the following:

    $query_string .= $key . '=' . urlencode( stripslashes($data ) ) . '&';

    I just added the following before that line:

    $my-data-proxy = $data;

    And then changed $data to “$my-data-proxy” in said line. Works like a charm. I suppose there’s some type of problem with the type of the variable been passed, but as I said, someone more versed in php can work out something more elegant.

    I have the same problem! Arrow keeps on spinning and message gets sent over and over again when clicking the button.

    @ reven: i tried your hack but then my whole website crashed…I probably did something wrong. Not much into .php myself 🙂 Got it back up again though.

    Hopefully there will be an update available soon. Otherwise I will try a different plugin, any suggestions?

    Perfect! Worked, the reason wjrutgers’ site went down is probably because of the variable name ($my-data-proxy) – it won’t work. Use $mydataproxy instead. So, line 276 in includes/classes.php goes from

    $query_string .= $key . '=' . urlencode( stripslashes( $data ) ) . '&';


    $mydataproxy = $data;
    $query_string .= $key . '=' . urlencode( stripslashes( $mydataproxy ) ) . '&';

    Thanks, reven!

    I’m having the same issue too. But I tried

    $mydataproxy = $data;
    $query_string .= $key . '=' . urlencode( stripslashes( $mydataproxy ) ) . '&';

    it didn’t work. Do I have to change any variables above for it to work? I’m not sure if I did it correctly. All I did was pasting
    $mydataproxy = $data
    on top of
    $query_string .= $key . '=' . urlencode( stripslashes( $mydataproxy ) ) . '&';

    Here.. this is what works for me. Just upload this document to the correct directory and rename it from classes.txt to classes.php..

    If it still doesn’t work, you may have another problem..

    Too bad didn’t work for me. Thx anyway

    I have the same problem after I upgraded to WP 3.0. It seems to me this is related to the version of the jquery used. When WP used jquery v1.3.2 this bug did not happen. As soon as I change the jquery version to 1.4.2 (used by default in WP 3.0) the contact form stops working.

    Okay, whoever that has issue using the CF7 please vote it as broken at

    @ruslany, thank you!

    Replacing jQuery 1.4.2 with 1.3.2 fixed the problem in WP3.0 for me. Now I’m just waiting for an update of CF7 to work with jQuery 1.4.2.

    ruslany thanks alot! It works nicely after degrading the jQuery.

    Thanks heaps kellye!

    Changing my success message from “Thanks! We’ll get the report to you within 24hrs” to “Thanks! We will get the report to you within 24hrs” worked!

    Apostrophes are powerful things!!!! 🙂


    @ruslany I’ve been trying to figure out how to change the version of jquery that WordPress is calling, but I don’t think I’ve figured it out. I changed the version in the jquery.js in wp-includes, and I also tried adding this code to my theme-functions.php file per instructions in the codex here (functions.php just calls a library of files for the theme):

    function my_init_method() {
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', '');
    add_action('init', 'my_init_method');

    When I added this, it broke my theme, so I had to take it out. Any thoughts?

Viewing 15 replies - 16 through 30 (of 37 total)
  • The topic ‘[Plugin: Contact Form 7] Ajax: all works, except for send’ is closed to new replies.