WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Ajax doesn't work, form doesn't send emails (8 posts)

  1. Ninetou
    Member
    Posted 3 years ago #

    Hi,

    I have been tinkering few days in a row to make Contact Form 7 work on my website. I have major problems with it, Ajax doesn't work and form doesn't even send emails. I noticed that if I change my theme Ajax does work, but still no success with sending emails. I would love to get any tip on how to get it solved.

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

  2. srumjant
    Member
    Posted 3 years ago #

    I have same situation.

    On test host all worked fine, but now on submit firebug throws errors that data is null.

    var ro = $(data.into).find('div.wpcf7-response-output');

    Odd error. Seems that it can't retrieve data via form post.

    With regards,
    Sergei.

  3. Ninetou
    Member
    Posted 3 years ago #

    @srumjant - Well I am not an php expert but did you move the database from test server (which contain Contact Form's records) to a new one?

    I managed to make Contact Form send emails. What I did was, downloaded header.php of my theme, removed <?php wp_head(); ?> then uploaded it back, and then uploaded it once again but with <?php wp_head(); ?>. Have no idea why it did help.

    Unfortunately it didn't help with Ajax. My page is reloading after submitting and because the form is in a Lightbox it screws my template :<

  4. Takayuki Miyoshi
    Member
    Plugin Author

    Posted 3 years ago #

    Ninetou, maybe you are having two different problems. For Ajax issue, please check this doc:

    Why isn’t My AJAX Contact Form Working Correctly?

    For issue of no sending, there are some topics relating to it on FAQ.

  5. srumjant
    Member
    Posted 3 years ago #

    Thanks for quick answer. However it didn't help me.

    Still same error:

    data is null
    [Break on this error] var ro = $(data.into).find('div.wpcf7-response-output');

    Removed plugin and then added it again back. Still same problem.

  6. Ninetou
    Member
    Posted 3 years ago #

    Takayuki Miyoshi thank you for you reply. I read this article and I think its the most likely because of conflicting JS on my page. As I said whenever I change theme to some simple one, without built-in JS features, form works as it should. The problem is I have not clue which scripts are conflicting. My website

  7. srumjant
    Member
    Posted 3 years ago #

    Odd things happen. I copied all files from test server(http://www.ariinfo24.eu/lehed/kaardiekspert/kontakt/saada-paring/)
    to working server (http://www.kaardiekspert.ee/kontakt/saada-paring/).

    Even this didn't solve the problem. :S

    It works on test server. How is it possible.

  8. Ninetou
    Member
    Posted 3 years ago #

    Srumjant, maybe there is a problem with absolute patches in database. Basing on my experience with Joomla! patches need to be up-to-date with the sever to avoid problems with plug-ins. You can find some patches in your WordPress database in wp_options table. Try to give it a shot.

    Still didn't succeed in making Ajax work :<

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic