Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Renzo Johnson

    (@rnzo)

    Check your error logs for possible solutions to this.

    I’m having the same problem and there’s nothing in my error log; also no real errors in my console, I can see a POST with a 200 response, the subscribers go into the list, but the form doesn’t seem to get a response and so doesn’t update with a ‘thanks’ – it just shows the loading animation forever. If I make mistakes in the form, it validates and shows the error block, it only seems to be for successful posts that it doesn’t update. Any suggestions to get this working 100%?

    OK I do get an error if I check my network tab. This gets output several times and there’s a bit of JSON at the bottom that doesn’t get displayed. I’ve looked at the file (mail.php) and the third argument is $html – should there be some validation around that being set?

    <b>Warning</b>: <br /> <b>Warning</b>: Missing argument 3 for wpcf7_special_mail_tag() in <b>/home/htdocs/wp-content/plugins/contact-form-7/includes/mail.php</b> on line <b>291</b><br /> <br /> <br /> {"mailSent":false,"into":"#wpcf7-f40-o1","captcha":null,"message":"Failed to send your message. Please try later or contact the administrator by another method."}</b><br /> <br /> <b>Warning</b>: Missing argument 3 for wpcf7_special_mail_tag() in <b>/home/htdocs/wp-content/plugins/contact-form-7/includes/mail.php</b> on line <b>291</b>

    Plugin Author Renzo Johnson

    (@rnzo)

    Paul, as per your email, this issue was fixed.

    How was the issue fixed? Having the same issue and there is currently no plugin update available.

    Thanks!

    I’m also experiencing the same issue, how were you able to fix it?

    Thanks!

    I fixed the hanging issue and error message by changing the following around line 289 of mail.php (in contact-form-7/includes/):

    From:
    add_filter( ‘wpcf7_special_mail_tags’, ‘wpcf7_special_mail_tag’, 10, 3 );

    To:
    add_filter( ‘wpcf7_special_mail_tag’, 10, 3 );

    I’m not entirely sure what it does, but it worked for me.

    I’m using the mailchimp extension for contact form 7… that’s what was causing the error. I fixed this issue by doing the following in /wp-content/plugins/contact-form-7-mailchimp-extension/lib/functions.php

    Change line 223:
    if ( $special = apply_filters( 'wpcf7_special_mail_tags', '', $matches[1] ) )

    to

    if ( $special = apply_filters( 'wpcf7_special_mail_tags', '', $matches[1], '' ) )

    notice the extra parameter in the apply_filters function call.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Sending hangs’ is closed to new replies.