WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Not working with WordPress 3.4? (30 posts)

  1. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    There seems to be a lot of users seeing problems with a combination of Contact Form 7 and WordPress 3.4. The problem is that after upgrading WordPress to 3.4, contact forms fail to send mail and show error messages of "Failed to send your message" with red border.

    To investigate this issue closely, we need more information about environments where it happens. We'd like to do a survey. If you see those problems, please answer the questions below as a comment to this topic. Please do not comment here if you have different kind of problems as it's confusing.

    1. Do you receive other mail (like comment notifications) from WordPress?
    2. What hosting service do you use?
    3. What version of PHP do you use?
    4. What other plugins do you use?
    5. Do you use a SMTP plugin like WP Mail SMTP? Does it solve the issue?
    6. What theme do you use?

    Thank you for your cooperation.

    http://wordpress.org/extend/plugins/contact-form-7/

  2. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    One more question. How have you set in the To:, From: and Subject: mail header fields?

  3. c.barca
    Member
    Posted 2 years ago #

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    The problem has been reported here by sumindmitriy.
    https://core.trac.wordpress.org/ticket/20970

    It was problem of the PHPMailer 5.2.1 bundled with WordPress 3.4 on PHP safe mode environment.

  5. ssalenger
    Member
    Posted 2 years ago #

    How does one apply the fix?

  6. enijhuis
    Member
    Posted 2 years ago #

    You need to make two minor changes to a specific php script:
    http://core.trac.wordpress.org/attachment/ticket/20970/20970.patch

    Use your php editor and ftp client of choice to accomplish this.

    Worked for me!
    Good luck

  7. SternsbergerM
    Member
    Posted 2 years ago #

    Simple installing "WP Mail SMTP" worked for me.

  8. lysergic73
    Member
    Posted 2 years ago #

    Neither class-phpmailer.php fix nor WP Mail SMTP worked for me.

    Where does CF-7 call php-mail function? I searched it in includes and modules directories without success.

  9. codejak
    Member
    Posted 2 years ago #

    Hey Takayuki!

    Here is my information in response to your survey. None of the solutions I could find (WP Mail SMTP/class-phpmailer patch) worked for me so far.

    1. Yes
    2. Shared Hosting
    3. 5.3.14
    4.
    Add Link to Facebook
    Akismet
    Contact Form 7
    Debug Bar
    kk Star Ratings
    WordPress SEO
    WP-Mail-SMTP
    WP to Twitter
    5. Tried it, doesn't help. I can send a test message via WP Mail SMTP, however.
    6. Gridly

    To/From/Subject fields are set.

    Best
    Matt

  10. trevormwilson
    Member
    Posted 2 years ago #

    Had this problem. Applied this patch and it works fine now:

    http://core.trac.wordpress.org/attachment/ticket/20970/20970.patch

  11. lysergic73
    Member
    Posted 2 years ago #

    Had this problem. Applied this patch and it works fine now:

    http://core.trac.wordpress.org/attachment/ticket/20970/20970.patch

    I tried it (as said before), not worked

  12. Arthur Klein
    Member
    Posted 2 years ago #

    I am also getting following errors since upgrading to WP 3.4 while uploading images drag and drop to nextgen Any thoughts? Are you going to continue to develop plugin further since jetpack now has there contact form solution?

    Any thoughts about following errors?

    ERROR: IMG_0532.JPG :
    Fatal error: Call to undefined function wpcf7_add_tag_generator() in /home6/movingin/public_html/erichschiffmann/wp-content/plugins/contact-form-7/modules/text.php on line 152
    ERROR: IMG_0537.JPG :
    Fatal error: Call to undefined function wpcf7_add_tag_generator() in /home6/movingin/public_html/erichschiffmann/wp-content/plugins/contact-form-7/modules/text.php on line 152
    ERROR: IMG_0543.JPG :
    Fatal error: Call to undefined function wpcf7_add_tag_generator() in /home6/movingin/public_html/erichschiffmann/wp-content/plugins/contact-form-7/modules/text.php on line 152
    ERROR: IMG_0561.JPG :
    Fatal error: Call to undefined function wpcf7_add_tag_generator() in /home6/movingin/public_html/erichschiffmann/wp-content/plugins/contact-form-7/modules/text.php on line 152
    ERROR: IMG_0588.JPG :
    Fatal error: Call to undefined function wpcf7_add_tag_generator() in /home6/movingin/public_html/erichschiffmann/wp-content/plugins/contact-form-7/modules/text.php on line 152
    ERROR: IMG_0591.JPG :
    Fatal error: Call to undefined function wpcf7_add_tag_generator() in /home6/movingin/public_html/erichschiffmann/wp-content/plugins/contact-form-7/modules/text.php on line 152

  13. KeSch
    Member
    Posted 2 years ago #

    Hey Takayuki Miyoshi,

    here is my information for the survey.

    1. Yes
    2. Shared Hosting
    3. 5.3
    4. 2 Click Social Media Buttons
      Disqus Comment System
      FeedBurner FeedSmith
      Google XML Sitemaps
      NinjaWPass
      Search Everything
      Statify
      WordPress SEO
    5. No, I don't use a SMTP plugin.
    6. LeetPress 1.2.1
    7. To: kontakt@*****.cc; From: [your-name] <[your-email]>; Subject: [your-subject]

    Best regards,
    KeSch

  14. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 2 years ago #

    This issue should have been fixed in WP 3.4.1.

  15. Vlanzoiz
    Member
    Posted 2 years ago #

    Hi,

    I just update to WP 3.4.1 then update to CF7 3.2. (because I was running old version of both).
    When testing the form, it says it was send with success, but I never receive the mail on my Google Apps account (event not in spam).

    I run CF 3.2 on several site WP 3.3.x with no problem. But since I update my site to WP 3.4.1, the mail seems to be sent but never reach my inbox.

    Answers to your survey

    1. I suppose Yes (but I don't need comment on my site so I don't have notification)
    2. Shared hosting
    3. PHP 5.3.10
    4. Askimet (not active), BackWPup 2.11, FancyBox for WordPress 3.0.1, Google XML Sitemaps 3.2.7
    5. No
    6. Custom theme
    7. To info@mycompany.xx (Google Apps account)
    From: [your-name] <[your-email]>;
    Subject : [your-subject]

    Thanks for your support ;-)

  16. Vlanzoiz
    Member
    Posted 2 years ago #

    OOOh yes !

    All my test emails have arrived with two hour late !
    So, it's working

  17. KeSch
    Member
    Posted 2 years ago #

    With 3.4.1 it's fixed for me. All mails was sent successfully.

    Thanks to the WP Developers and Takayuki for the quick reply. ;)

  18. Eric
    Member
    Posted 2 years ago #

    I have WordPress 3.4.1 installed and I still have this problem. Here are my answers to your questions:

    1. Yes
    2. HostGator
    3. 5.2.17
    4. Anythingslider for WordPress, Browser Blocker, Contact Form 7, DKOATED CTA Buttons, Dynamic Widgets, Redirection, Spam Free WordPress, Velvet Blues Update URLs, W3 Total Cache, WordPress Database Backup, WordPress Importer, wpautop-control, WP Google Fonts
    5. No, I do not have one installed.
    6. Thesis 1.8.5
    7. To: my clients email address; From: [your-name] <[your-email]>; Subject: appointment request; I had a BCC address in the additional headers field but removed it for testing and the problem still exists

    Eric

  19. Eric
    Member
    Posted 2 years ago #

    Ignore my earlier message - it is working now. I forgot to include date for the email message body of the form.

    Eric

  20. vandenbiggelaar
    Member
    Posted 1 year ago #

    The combination of wp 3.4.1 with contact form 7 v 3.2 gives me a white screen of death on the admin panel.

  21. softprinciples
    Member
    Posted 1 year ago #

    Hi,

    I am also currently having issues with the Contact Form 7 with it not sending emails using WordPress 3.4.1.

    I can state that this combination is not working for me, for one of the sites I developed. It also doesn't work for me if I use the WP Mail SMTP plugin.

    I can also state the the combination of WordPress 3.3.2 with the Contact Form 7 plugin works perfectly.

    Can someone please assist as this plugin has been working perfectly but since the upgrade to WP 3.4.1, this is no longer the case.

    My client is asking to resolve asap as if I cannot fix, will need to look at other options.

    Hopefully someone can assist asap.

    FYI, I am running PHP v5.2 on GoDaddy.com

    Thanks.
    Tony.

  22. jcdesign
    Member
    Posted 1 year ago #

    It was your second question which clinched it, Takayuki—what's set in the To, From, & Subject fields?

    I was prepping a comment to say, "still not working for me, with no theme/plugins." I went to double-check who WAS I sending TO and FROM etc. Almost nothing there.

    It was staring me in the face, but I didn't see it several times around, because I KNEW I'd added that info, and gotten the site working previously—on a different server.

    My guess is moving the server/updating my database file munged that. So, anyone else, if you are reading this,
    triple-check that the contact form's info is still there!

    #goof

  23. ngos
    Member
    Posted 1 year ago #

    Hi Takayuki!

    The plugin works for me in 3.4.1 fine

    the only thing is that I have set a gmail account to receive the messages thru the form and they appears only in spams

    I have read many articles about this but I want to hear your opinion on what sould I do with this

  24. simonsayspt
    Member
    Posted 1 year ago #

    Hi,
    i also have had issues.

    Details:
    after updating wordpress to 3.4, and other plugins, my visual editor went white but the code was still there (hidden)..
    I followed instructions from others have the 'white page' issue, and deactivated all plugins, then 1 by 1 activating to find the broken one..
    I also followed the instructions from CF7 about deactivating Jetpack contact form to avoid any clashing issues there..

    Issue fixed:
    After deactivating CF7, the white page issue goes.
    If there any new errors of CF7 not co-existing with updates from wordpress etc, or other plugins, causing this 'white page' error..?

    The issue was not different, using other browsers.. the same across all..
    I really like the CF7 plugin, simple, easy to use etc..

    So if any ideas of what it could be, i'd love any help.

    Thank you.

  25. sbontheroad.com
    Member
    Posted 1 year ago #

    I had the same problem with CF7 not working; however, I had not made any recent changes. As it was a server side error - I called my host (bluehost) and it turns out I had hit my email limit. They raised the limit and it worked again. It was never a problem with CF7 or wordpress.

    So, my suggestion - also consider checking with your web host. Especially if you have not made any recent changes/upgrades.

  26. sbontheroad.com
    Member
    Posted 1 year ago #

    ps. Takayuki, thanks for getting involved with helping to resolve this issue and for developing this plugin - it's been great!

  27. gal_op
    Member
    Posted 1 year ago #

    Did anyone solved this?

  28. vandenbiggelaar
    Member
    Posted 1 year ago #

    i did not get this resolved. I tried to expand the php memory, but that did not work. I found out that using this plug-in with a non-US version of wordpress (in my case dutch) makes it run out of memory. I changed eventually to the US version of wordpress and now it works fine. I suspect the plugin does not manage memory carefully enough...

  29. MarceFX
    Member
    Posted 1 year ago #

    Hi,

    I tried everything explained here and some other resources I Googled. Nothing works for me. The plugin does work most of the time, but I still get the red message around 25% of the time.

    1. Everything works greats. I also have another contact plugin working fine (while I wait for a CF7 fix)
    2. Linux VPS
    3. PHP 5.2.17
    4. Akismet
    BackUpWordPress
    Google XML Sitemaps
    Gravity Forms (and some extensions)
    Profile Builder
    Relevanssi
    WooCommerce
    WordPress SEO
    WP-Mail-SMTP
    WP Email Template LITE
    WP User Frontend

    5. Yes. WP Mail SMTP. it does not solve the issue.
    6. Builder Theme: http://themeforest.net/item/the-builder-multipurpose-wordpress-theme/2005416

    Thanks

  30. joeshock
    Member
    Posted 1 year ago #

    Make sure your message body isn't blank or it will fail. Just fixed mine by simply adding a message body. Might recommend to the Contact Form 7 Plugin author to add a space by default to the message body or something so this doesn't happen. Either that or a more appropriate error message if possible.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.