WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: Contact Form 7] Getting a 404 Error when submitting a form (11 posts)

  1. Perad
    Member
    Posted 5 years ago #

    I have two forms, A contact form which works great. A photographers form which, while it works in the sense it sends the e-mail. It triggers a 404 error instead of a thanks for sending message.

    Has anyone else come across this? How do I remedy?

  2. Perad
    Member
    Posted 5 years ago #

    To reiterate what happened. I have 2 forms.

    Contact Form
    Photographers Form

    When I submit the contact form I am redirected to the contact page with the #whatever on the end. This works fine.

    However, with the photographers form there is a problem. It redirects me to the #whatever but instead of form showing up again, I am taken to a 404 error. If I copy this URL and run it in another tab the page loads fine. I really do not know what is going here. It just doesn't make sense.

    Any input is greatly appreciated

  3. Perad
    Member
    Posted 5 years ago #

    OK, how can I modify this plugin to redirect the user to site.com/message-sent?

    I cannot work out what is causing this 404 error to display. It doesn't make any sense. Best solutions appears to be to redirect it to somewhere completely else.

    Anyone know how to do this?

  4. Dan Griffiths
    Member
    Posted 5 years ago #

    I have the same issue... Any suggestions?

  5. n7 Studios
    Member
    Posted 5 years ago #

    Suffered the same issue using Contact Form 7 in WordPress v2.8 + v2.8.1

    I had a single form configured called "Contact". It was the first and only form I had. The code it produced to insert into my page was [contact-form 1 "contact"], which I put into my Contact page.

    On submitting the form, I'd receive the email but get a 404 on the site.

    My workaround was to create a second form, called contactform, and use [contact-form 2 "contactform"] on my contact page. This works for me.

    I've just left the first contact form within Contact Form 7, but I don't use it. I can only presume it's something to do with it being the very first form.

  6. exiledesigns
    Member
    Posted 4 years ago #

    Hey there.
    Same issue for me, and neither:
    - adding wp_footer to the template works
    - creating a second form (cf. n7studios)
    If anyone else has a solution, you're most welcome.

  7. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    Would you explain more in detail?

    - Where is your site (URL)?
    - What plugins are you using?
    - What theme are you using?
    - Where is your server hosted on?
    - WordPress and Contact Form 7's version?
    - What kind of web server are you using?

  8. kayre2
    Member
    Posted 4 years ago #

    Having the same problem.

    Have tried recreating the file 3 times, also uninstalling, deleting then reuploading and installing a couple of times as well.

    I had it working perfectly a couple of days ago, and I can't think what I might have changed that's done this.

    url to contact page is currently:
    http://www.ausseasailingschool.com.au/temp_site_local/contact-us

    Only other plugin is a random image generator, latest version of both wordpress and contact form 7.

  9. bagheadinc
    Member
    Posted 4 years ago #

    I had this same issue, and strangely enough, I fixed it by switching a field I created called [name] to [your-name]. Not sure why that caused a problem but it seems to have done the trick.

  10. Takayuki Miyoshi
    Member
    Posted 4 years ago #

    @bagheadinc it's because 'name' is used as a query keyword of WordPress. There is FAQ topic for that:

    For example, ‘name’ is used in the query, so ‘name’ is not available for a field name. The best practice in avoiding unavailable names is adding a prefix or suffix to the name, for example, use ‘your-name’ or ‘name-1234′ instead of ‘name.’

  11. Reado
    Member
    Posted 4 years ago #

    Thanks takayukister!

    I was having the same problems (WP 2.8.6) and you're right, changing the 'name' field fixed the problem

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic