On this page
What this issue is
When someone clicks Submit, the browser sends a request (usually a POST) to a form endpoint. That is the URL that receives the data: a WordPress admin-ajax.php call, a form plugin's REST route, a Shopify /contact route, a CRM webhook or your own API.
| Code | Meaning | Typical cause on a form |
|---|---|---|
| 400 | Bad request | Missing or malformed field, broken JSON, wrong content type |
| 403 | Forbidden | Firewall or security plugin block, expired nonce or CSRF token, CORS rule |
| 404 | Not found | Endpoint URL changed, plugin deactivated, route deleted |
| 422 | Unprocessable | Server-side validation rejects a value |
| 429 | Too many requests | Rate limit hit |
| 500 | Server error | PHP fatal error, bad plugin update, failed mail or database call |
| 502/503/504 | Gateway or timeout | Server overloaded, backend down, slow third-party call |
Why it costs you leads or sales
- Ad clickVisitor lands on the page
- Fills the formFields completed
- POST to endpointServer replies 403 or 500
- Notification emailNever sent
- CRM recordNever created
The form endpoint fails, so nothing after it happens.
Example: illustrative numbers for a site with steady traffic whose form endpoint starts returning 500 in week 3.
How to check if your site has it
Open DevTools on the form page
In Chrome, Edge or Firefox press F12 (or Cmd+Option+I on Mac) and open the Network tab. Tick Preserve log.
Filter to Fetch/XHR
Most forms submit in the background. If the page fully reloads on submit, look at the Doc filter instead.
Submit the form with test data
Use an obvious test name and your own email so you can delete the lead later.
Read the status
Find the POST request. A Status of 400 or above is the problem. Click it and open Response to see the server's message, and Payload to see what was sent.
Test in a private window
Logged-in admins and cached pages behave differently. A 403 that only shows for visitors points to a firewall or an expired token.
Check server logs
For a 5xx, look at the PHP or application error log and your host's error log around the time you submitted.
How to fix it
Turn on debug logging
In wp-config.php set WP_DEBUG and WP_DEBUG_LOG to true, resubmit, then read wp-content/debug.log for the fatal error behind a 500.
Rule out plugin conflicts
Deactivate plugins one at a time (security, caching, optimisation) on a staging copy and retest. Update or roll back the form plugin if a recent update started the error.
Fix 403 blocks
Check your security plugin or host firewall (such as ModSecurity or a WAF) for blocked requests to admin-ajax.php or /wp-json/. Allow the form route. Exclude form pages from full-page caching so the nonce does not expire.
Fix 404
Go to Settings > Permalinks and click Save to refresh rewrite rules. Confirm the form plugin is active.
Check the form type
Native contact forms post to /contact and rarely fail. Errors usually come from an app or custom form posting to a third-party URL.
Check the app
Open the form app's dashboard to confirm it is active and under its plan limits. Reinstall the embed if the endpoint changed.
Check theme edits
In Online Store > Themes > Edit code, make sure the form tag still uses {% form 'contact' %} and has not been edited.
Check custom HTML tags that post data
If a tag sends form data with fetch or XMLHttpRequest, open Preview mode and the Network tab to see its status code.
Fix the URL or headers
Update the endpoint URL, method and Content-Type header in the tag, then publish a new version.
Check the form settings
In the Designer, select the form block and review Settings. If you use a custom action URL, confirm it is correct and accepts POST.
Check form submissions
Open Site settings > Forms and see whether the submission was recorded. Republish the site after changes.
Check the form or survey
Open Sites > Forms, open the form and submit a preview. If you embed it on another site, re-copy the embed code in case the form was rebuilt.
Check the workflow
If a webhook step posts to another service, open the workflow's execution logs for 4xx or 5xx responses.
Check Wix Forms
Open the form's Settings and confirm a submission target (email or Wix Contacts) is set. Republish the site.
Check Velo code
If you use Velo, review backend web module errors in the Logs tool and fix the failing call.
Check the form block
Edit the form block, open Storage, and confirm a destination (email, Google Sheets, Mailchimp or similar) is still connected. Reconnect any that show an error.
Check code injection
Disable custom scripts in Settings > Developer Tools > Code Injection to see whether one breaks submission.
Reproduce with curl
Send the same request outside the browser to see the raw response and isolate front-end from back-end faults.
Read the server log
Find the stack trace behind the 5xx and fix the failing code, database query or third-party call. Add a timeout and error handling around mail and CRM calls.
Fix CSRF and CORS
If the form is on a different origin than the API, allow that origin in the CORS headers and send the CSRF token with the request.
curl -s -o /dev/null -w "%{http_code}\n" -X POST https://example.com/wp-admin/admin-ajax.php \
-d "action=my_form_submit" \
-d "name=Test" \
-d "email=test@example.com"The visitor submits, the server replies with an error, and no lead is created.
How to confirm it's fixed
- The POST request in the Network tab returns 200, 201, 204 or a valid redirect (302/303).
- Test in a private window and on mobile, not only as a logged-in admin.
- The test lead arrives in the notification inbox.
- The test lead appears in your CRM or form dashboard with all fields filled.
- Server error logs show no new errors from the submission.
- Delete the test lead so it does not enter your reports or follow-ups.
How to prevent it happening again
- Test the form after every plugin, theme, app or hosting update.
- Exclude form pages and endpoints from page caching and aggressive firewall rules.
- Keep a staging site and test updates there first.
- Set up server error alerts for 5xx on form routes.
- Document the endpoint URL so a migration or rebuild does not leave an old address behind.
- Run an automated test of the form on a schedule, not only when someone remembers.
Before
- POST returns 403 or 500
- Visitor sees an error or nothing
- No email, no CRM record
- You find out when leads dry up
After
- POST returns 200 or a redirect
- Visitor sees a confirmation
- Email and CRM record arrive
- A scheduled test alerts you if it breaks again
How FunnelGuard handles this
Questions people ask
Why is my form not submitting and showing a 500 error?
A 500 means the server failed while handling the form request. Common causes are a PHP fatal error, a plugin update that broke the form, or a failed call to mail or a database. Check your server or debug log at the time of submission to see the exact error.
Why does my contact form return 403 Forbidden?
A 403 means the server understood the request but refused it. It is often caused by a firewall or security plugin blocking the request, or by an expired nonce or CSRF token when the page is cached. Allow the form route in your firewall and exclude the form page from caching.
How do I find which request is failing when a form does not send?
Open your browser's DevTools, go to the Network tab, filter to Fetch/XHR, and submit the form. Find the POST request and read its Status and Response. A status of 400 or above is the failing request.
What does a 404 on a form submission mean?
The address the form posts to no longer exists. This often happens after a migration, a plugin being deactivated, a renamed route or a deleted webhook. Update the form action to the current endpoint or reactivate the plugin.
Can a form fail even if the page loads fine?
Yes. The page and the form endpoint are separate requests. A page can load with a 200 while the form's POST returns a 4xx or 5xx, so uptime monitors that only load the page will not notice.
Why does my form work for me but not for visitors?
Logged-in admins often bypass caching, nonces and firewall rules that apply to visitors. Test in a private window, on mobile data and from a different network to reproduce what visitors see.
How can I be alerted when my form starts returning errors?
You need a test that submits the form on a schedule and checks the response. FunnelGuard runs your real form journey, fails the run when the endpoint returns a 4xx or 5xx, and sends one alert with a screenshot and the network evidence.
Related issues
- CNV-043Submit button does nothingFix guide
- CNV-044Submit shows spinner foreverFix guide
- CNV-045Form submits but shows a generic 'something went wrong'Fix guide
- CNV-047Form posts to an old or deleted endpointFix guide
- CNV-048Form says success but lead never reaches emailFix guide
- CNV-057Form times out on slow submit (serverless cold start)Fix guide