Form submit..."Page Not Found" or "Method Not Allowed"

PLEASE help us help you by writing a good post!

It’s been 2 days since I’m trying to make my form work, I tried with and without thank-you.html…it doesn’t work. I either have the error “Method not allowed” or “Page Not Found”.

I really want my Thank you page. I’ve tried everything in the support f netlify but I’m just on html and javascript…most help are for react and Next.

Can someone help me please ?

I did the same program with nodemailer and my own server, it’s working fine but not on netlify so I want netlify to handle the backend form.

My website is : https://calineb.netlify.app/.

I truly appreciate the help you can give me. :pray:

That’s not true.
Most of the time people’s issues with the forms are the same regardless of the system used.

Have you enabled on Form detection?
https://docs.netlify.com/forms/setup/#enable-form-detection

I ask because I can see data-netlify="true" in your form definition:

image

As per the documentation:
https://docs.netlify.com/forms/setup/#html-forms

When Netlify parses the static HTML for a form you’ve added, the build system automatically strips the data-netlify="true" or netlify attribute from the <form> tag and injects a hidden input named form-name . In the resulting HTML that’s deployed, the data-netlify="true" or netlify attribute is gone, and the hidden form-name input’s value matches the name attribute of <form>

1 Like

Thank you for replying so quickly :yellow_heart:. Yes the form detection is enabled.

@Caline Have you done a rebuild since enabling it?

Do you see any mention of forms being detected in your build log?

Do you see the detected form in your Netlify UI?

1 Like

I didn’t build because I dropped my file in Netlify it’s not from GitHub, I’m going to push my program in my repository and I’ll build and try again.

Thank you, I’ll be back in a little while to tell you if it’s working or not (pardon my broken English, I’m French doing my best (we a little English learnt from my mom))…

In my deploy logs, I have :

"11:08:20 AM: Skipping form detection

11:08:20 AM: Post processing - header rules

11:08:20 AM: Post processing - redirect rules

11:08:20 AM: Starting post processing

11:08:20 AM: Post processing done

11:08:20 AM: Section completed: postprocessing

11:08:20 AM: Site is live :sparkles:"

^ That looks like the problem at the moment

1 Like

:cry: it’s all done but I still can’t see my form in form detection although it’s


enabled.

@Caline Can you expand the Building step, what does it show?

Also the Post-processing

Is this still the URL for that version of the site?
https://calineb.netlify.app/

1 Like

Yes it’s the same link.
I sincerely don’t know why it’s skipping the form detetction.

Thank you Sir from the bottom of my heart !
I added my htmls to my public folder and the form is detected now.

I’m so happy, I’m going to delete the actual website and add it over because now my link is not found :sweat_smile: :smiling_face_with_tear: :weary:. I tried producing it over, it’s published but the link is not found.

I would never try to upload from github if it wasn’t with your help. Thank you, thank you ! Thank you, I’m a baby beginner in programming.

For anyone with the Page Not Found issue after uploading from github, add all your html in a public folder, netlify.toml includes, if you have a script folder add it to the public folder also. Add a file name _redirects that contains : /* /index.html 200.

Go to you netlify Dashbord in Site configuration → Build & deploy → Build settings and add your Base directory : public (or the name of the folder with your htmls.

Once again, thank you @nathanmartin. I spended 2 sleepless night uploading manually for nothing to solve the issue in 30min ! :pray: