WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
error/success messages dont show. (25 posts)

  1. justinede
    Member
    Posted 3 years ago #

    Hey,

    So I just moved hosts today.

    Everything is working fine, except when I hit submit, no error essages show up, it just sits there..

    If I fill out the required fields and hit submit, it send the message, but nothing happens on the page, it just appears to sit there.

    Any ideas?
    I already reinstalled the plugin and repaired the DB.

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

  2. Jarown
    Member
    Posted 3 years ago #

    Same problem here. Firebug shows the following:

    This AJAX call is sent:
    http://myurl.com/contact/#wpcf7-f1-p16-o1

    Which returns the error:
    data is null
    http://myurl.com/wp-content/plugins/contact-form-7/scripts.js?ver=2.3
    Line 94

  3. Inazuma
    Member
    Posted 3 years ago #

    I'm having the same problem http://sebcastilho.com/contact/
    The arrow just keeps spinning. When I first installed the plugin a few months ago, it worked fine. I haven't tried using it again till now.

  4. Jarown
    Member
    Posted 3 years ago #

    Looks like this is a bug, but it worked for me my development environment (so that's the strange part). But you can fix this as follows:

    Open /wp-content/plugins/contact-form-7/scripts.js
    and add -form on lines 3 and 12, so it looks like this:
    jQuery('div.wpcf7-form > form').ajaxForm({
    ...
    jQuery('div.wpcf7-form > form').each(function(i, n) {

    That should do the trick. I'll contact the author, so he can fix it in the next build.

    Grz,
    Jarown

  5. billsinc
    Member
    Posted 3 years ago #

    Thanks! That did the trick for me.

  6. arelithenoob
    Member
    Posted 3 years ago #

    I created an account just to say thank you Jarown! Your script repair worked perfectly. What a relief. Thank you!

  7. admintiger
    Member
    Posted 3 years ago #

    arelithenoob is right. Jarown's code fix works. Thanks for taking time to post the solution. I had been troubleshooting the problem for hours.

  8. trailofants
    Member
    Posted 3 years ago #

    Thanks Jarown. It's worked for me too. But. Whereas CF7 normally gives me the little spinny arrow thing and then a neat pop-up delivers my message, this fix changed things a little.

    Now, after I hit submit it reloads the page and sends me to the top of the page, and appends the URL with "#wpcf7-f3-p3421-o1".

    Is this normal?

    I appreciate CF7 is free and it's been developed without pay etc., but it's so frustrating to see the author just referring people to the same string of FAQs over and over ahain when there is obviously a bigger problem.

    I'm glad for people such as yourself that go the extra mile.

  9. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    I'm the author of Contact Form 7.

    Just for the record, Jarown's modification in the upper comment doesn't fix any problems, unfortunately. It only make Ajax malfunction.

    Because nothing matches this pattern:

    jQuery('div.wpcf7-form > form').ajaxForm({

    If you just want to disable Ajax feature, add this line into your wp-config.php:

    define ('WPCF7_LOAD_JS', false);

    Then WordPress doesn't load Contact Form 7's JavaScript.

    After all, issues mentioned on this topic are typical issues caused by broken theme or conflict with other plugins or theme. Once deactivate all other plugins and switch to the default theme, then you'll find all problems are cleared.

  10. trailofants
    Member
    Posted 3 years ago #

    Thanks for the response, Takayuki.

    I did deactivate all plugins (other than CF7), and I use the K2 theme which is pretty basic, and nothing fancy (in fact I think it's pretty similar to the WP default theme itself). I'd prefer not to have to use the WP theme anyway.

    I first disabled the plugins one-by-one, then I disabled them all and the problem stuck.

    I don't want to disable the Ajax feature, I just want it to work like it used to; I have the common error of the spinning arrow.

    I've followed every piece of advice you have kindly given on your FAQs, and yourself and others have given here on the WP forums; and this temporary fix was the only thing that worked for me at this time.

    I've reversed it following your post.

    I do appreciate you must get asked a lot of the same questions, and you do it for voluntary donations. This kind of thing isn't my area of expertise, and I'm open to your thoughts on a possible solution.

    One of a few different CF7 forms on my site can be found here.

  11. futuresailor
    Member
    Posted 3 years ago #

    FYI - I was having this same issue and after updating to Contact Form 7, v 7.2.3.1, the AJAX messages and validation began working normally again.

    Thanks for the update Takayuki, works like a charm!

  12. Inazuma
    Member
    Posted 3 years ago #

    Thanks for the fix.

    After some thought, I am thinking that it must be a conflict with jquery. Pre-WP3 used older versions of jquery, while WP3 includes a more recent one.

    A post near the end of this thread seems to confirm it: http://wordpress.org/support/topic/plugin-contact-form-7-ajax-all-works-except-for-send?replies=25
    "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. "

  13. Piet
    Member
    Posted 3 years ago #

    @Takayuki Miyoshi
    even when disabling Javascript according to your suggestion my problems persist:
    the page reloads and shows the green box that says that the message has been sent. However, I receive nothing.

    I am using it the form on a bi-lingual website. On the default language it is working fine. On the other language it is not working.

    Any ideas?

    Thanks.

  14. boufon
    Member
    Posted 3 years ago #

    Hi - had a problem with the messages not appearing in Contact form 7. Tried the earlier scripts.js which didn't work for me. I disabled contact form 7 widgets and an ad manager I had and all is working.

  15. Bodenseepeter
    Member
    Posted 3 years ago #

    I had the same problem with the emails notifications being sent out correctly but the spinner running infinitely, and I am using WP3 and the default theme at http://www.cyclesummit.de/konferenz/anmeldung/

    After I deaktivated all other plugins cf7 worked fine again and showd the green message.

    Thanks Takayuki Miyoshi, excellent plugin!

  16. itmitra
    Member
    Posted 3 years ago #

    Hey Guys, got one solution [may be patch work]. I don't have the explanation yet, but try out at your end.

    I have other plug-ins installed along with CF7 [upgraded today to 2.4.2]. I had been facing same problem till today's update [even after up-gradation].

    I used "File Upload" field in my form, and surprisingly form starts working without any problem. All validation getting done.

  17. vouchey
    Member
    Posted 3 years ago #

    Brilliant, @itmitra! You solved it for me!

  18. Inazuma
    Member
    Posted 3 years ago #

    itmitra's solution actually works :S

  19. scottconcern
    Member
    Posted 3 years ago #

    itmitra's solution is the best so far. With simple css; everything is nice.

    <p style="visibility:hidden;">[file upload]</p>

  20. jgarcia75
    Member
    Posted 3 years ago #

    Thanks so much Itmitra and Scottconcern!!!!

  21. tkuehn
    Member
    Posted 3 years ago #

    Just added an attachment option to my forms. Does the trick!!

  22. Inimist
    Member
    Posted 3 years ago #

    I had been using Contact Form 2.0.7 with WordPress 2.. Recently i upgraded WordPress to 3.0.5 and all contact forms stopped working. The issue is when i click submit the spinner keeps staying on the page and nothing happens. No emails no error nothing. I am using ajax (and i dont want to abandon its use).

    I tried above js hack (adding -form) and placing a file upload field where there is no field but nothing happens. If i try upgrading contact form 7 it seem to be fixing the issue but as i am using flash progress uploader to uploading file and i have made some customization to the contact form 7 code and have added some files here and there i am not comfortable upgrading either. Can someone suggest me what should i do in order to just get the spinning stuck fixed? I would highly appreciate any help. If you want to take a look at the form, it is here

    Fyi, I am pretty sure that this issue is certainly an issue with previous contact form 7 versions vs. latest WordPress versions (certainly some Javascript or jquery issues for sure). Also in my case i am sure there is no such customization from my end which could break it as it already worked with older version of wordpress and i have taken care of ids, classes very well.

  23. Inimist
    Member
    Posted 3 years ago #

    As i said it seemed to be an issue with javascript i just replaced my jquery 1.4.2 file with jquery 1.3.2 file and it started working as normal once again! I am not sure what the real issue is but i would really appreciate any suggestion to make it working with jquery 1.4.2 as well (i am not going to upgrade cf7).

    Although i spent my whole day searching on these issue today, besides all that, Contact Form 7 is very useful and wonderful plugin Mr. Takayuki Miyoshi has created. I am happy that my form works once again, with jquery 1.3.2 though.

  24. Desmo
    Member
    Posted 3 years ago #

    Thank you, thank you, thank you. After having this just randomly stop working, it's taken a while to find this fix that actually works :)

  25. cozbaldwin
    Member
    Posted 2 years ago #

    For the record, the infitiely looping arrow first became an issue for me at some point between when i upgraded to CF 2.4.6 and WP 3.2.1.

    I was able to get it working again by using the weird suggestion by itmitra to add this into the form code.

    <p style="visibility:hidden;">[file upload]</p>

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic