Contact Form 7
[resolved] Form unable to submit by AJAX so redirects to 404 (6 posts)

  1. Sheixt
    Posted 11 months ago #

    I am working on a build for a new website (http://wp.rapidataservices.tutchhq.co.uk/contact/) which includes the WordPress plugin Contact Form 7 to handle the submission of the form & (is supposed) to display a response via AJAX.

    I simply cannot get the AJAX side of this to work. Upon submission the form works fine, but the page reloads and displays the 404 page... not cool!

    Following the FAQ page (http://contactform7.com/why-isnt-my-ajax-contact-form-working-correctly/) I have run a number of tests. I can confirm:

    • The page is correctly referencing wp_head and wp_footer.
    • The page has no JavaScript errors in the console.
    • Whilst the page has one or two validation errors (created by another plugin), I don't believe this to be the issue. I have attempted to test this by stripping out everything except the form (and the header & footer).
    • I have deactivated each plug-in for conflicts & the problem persists.
    • I have flushed the permalinks (by re-saving via settings > permalinks) & tested.
    • I have created new form instances & tested.
    • Reinstalled the Contact Form 7 plug-in & tested.

    After all that I'm still no closer to a solution. Can anyone shed any light on this issue as I'm very keen to avoid using an alternative plugin.

    I can provide more details if needed. Thanks!


  2. Takayuki Miyoshi
    Plugin Author

    Posted 11 months ago #

    Try deactivating all other plugins and switching to the default theme.

  3. stevied
    Posted 11 months ago #

    I had this problem. Turns out I was missing the .htaccess file.

    See http://wordpress.org/support/topic/form-wont-submit-just-get-spinner?replies=2#post-5836655

  4. Sheixt
    Posted 11 months ago #

    Thanks for the responses & suggestions.

    Hmm, the .htaccess idea is a interesting one. Unfortunately with the project in question I had to opt for an alternative solution (due to time constraints) but I shall certainly bear it mind if I experience it again!

  5. buzztone
    Posted 11 months ago #

    @Sheixt - If this resolves your question, it helps others contributing here, if you can flag your post as [resolved]

  6. Sheixt
    Posted 11 months ago #

    Okay, I've marked this as resolved. If I come across the problem again, I shall feedback with more details.


You must log in to post.

About this Plugin

  • Contact Form 7
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic