On this page
What this issue is
A visitor fills in your form and clicks submit. Instead of a thank-you message, they see a vague line such as 'Something went wrong', 'An error occurred' or 'Please try again later'. The page itself loads fine, so it looks healthy at a glance.
Behind the message, the browser sent the form data to a server (the endpoint) and got back something the form did not expect. Most form plugins and scripts show one fallback message for every kind of failure. That hides the cause from the visitor and from you.
This is different from a button that does nothing or a spinner that never ends. Here the form does respond, but only to say it failed. It is also different from a 4xx/5xx endpoint issue on its own: those status codes are one possible cause, and the generic message is what the visitor sees.
Why it costs you leads or sales
Visitors who see a vague error rarely retry. They do not know whether the data was sent, whether they did something wrong, or whether the business is reliable. Many leave, and some submit a second time and create duplicates if the first one actually went through.
Because the error message is the same for every cause, nobody on your team gets a clear signal either. Ad spend keeps sending people to a form that rejects them, and your reports show a drop in leads with no obvious reason.
- Ad clickVisitor lands on the page
- Fills in formAll fields completed
- Clicks submitRequest fails; 'something went wrong' shown
- Thank-you pageNever reached
- Lead in inbox/CRMNothing arrives
The visitor does everything right, but the submit request fails and the lead never arrives.
Example: illustrative numbers only. If the form fails for a share of attempts, those visitors are lost.
Common causes
| Cause | What you will see in the Network tab | Typical fix |
|---|---|---|
| Server error in the form handler | Status 500 or 502 on the submit request | Check server or PHP error logs, fix the code or plugin conflict |
| Expired security token (nonce/CSRF) | Status 403 or 419, often on cached pages | Exclude the form page from page cache or refresh the token |
| Spam filter rejection | Status 200 or 4xx with a spam or blocked message in the response | Check the spam plugin settings and logs |
| Blocked by firewall or security plugin | Status 403 from a WAF or security rule | Allow the form endpoint in the firewall rules |
| Broken or removed integration | Error in the response body mentioning email, SMTP or API | Reconnect the email service or CRM connection |
| Cross-origin (CORS) block | Request shown as blocked or failed in the console | Allow your domain on the receiving endpoint |
| Required field mismatch | Status 400 or 422 with a field error in the response | Align the form field names with what the endpoint expects |
How to check if your site has it
Open developer tools
On the page with the form, press F12 (or Cmd+Option+I on Mac) and open the Network tab. Tick 'Preserve log'.
Submit the form with test data
Use a clearly fake name and an email address you control. Watch for a new request appearing as you click submit.
Look at the status code
Click the request (usually type 'fetch' or 'xhr', or the form's own URL). A 4xx or 5xx status shows where the failure is. A 200 with an error in the body points to the form's own logic.
Read the response
Open the Response or Preview tab. Many tools return a real message there even when the page only shows a generic one.
Check the Console tab
Red errors such as CORS, 'Failed to fetch' or a JavaScript exception explain failures that never reach the server.
Try different conditions
Test in a private window, on mobile, and logged out. Cached pages and security rules often only fail for real visitors, not for admins.
How to fix it
The fix depends on the cause you found. Start with the status code, then follow the matching route below.
Turn on error logging
In wp-config.php set WP_DEBUG and WP_DEBUG_LOG to true on a staging copy, submit the form, and read wp-content/debug.log for the real error.
Rule out a plugin conflict
On staging, deactivate other plugins one by one (security, caching, spam) and retest. Your form plugin's own log (for example its entries or email log) may also show the reason.
Exclude the form page from caching
If the error is a 403 or an expired nonce, exclude the page from your caching plugin or CDN, or shorten the cache lifetime.
Check email sending
If the failure is in sending, configure authenticated SMTP through a mail plugin instead of the server's default mail function.
Check the contact form template
The standard form uses the Liquid form tag. Confirm your theme's form includes {% form 'contact' %} and the closing tag, and that the field names start with contact[].
Show real errors
Make sure the template renders form.errors so validation problems are visible instead of a generic message.
Review third-party form apps
If you use a form app, check its dashboard for failed submissions and confirm the app is still installed and its subscription is active.
Check for scripts that interfere
Open Preview mode and submit the form. A custom HTML tag that stops the submit event or edits form fields can cause the request to fail.
Pause suspect tags
Pause recently added custom HTML or listener tags in a workspace, preview, and retest the form.
Check form settings
Select the form, open its settings and confirm the action and method. For Webflow-hosted forms, check Site settings > Forms for notification and integration setup.
Review custom code
If you added custom JavaScript that handles submit, test with it removed. Custom scripts that call external endpoints are a common source of generic errors.
Publish and retest
Test on the published domain, not the designer preview, as submission behaves differently.
Open the form or survey builder
Check that the form is published and attached to the right location (sub-account).
Check embedded versions
If the form is embedded with an iframe or script, re-copy the embed code from the builder, as old embeds can point to changed settings.
Review the workflow
Check any workflow triggered by the form for errors in its execution log.
Check the form's submit settings
In the Wix editor, select the form, open Settings and confirm where submissions are sent and that the action is set.
Review connected apps and code
If you use Velo (custom code) on the page, check the browser console and site logs for errors in the submit handler.
Check the form storage settings
Edit the form block and open Storage. Confirm at least one destination (email, Google Sheets, Mailchimp and so on) is still connected.
Reconnect broken integrations
If a connected account has expired or been disconnected, remove and reconnect it, then retest.
Return real status codes and messages
Make your handler return a clear status (200 for success, 400/422 for validation, 500 for server error) with a short message, and log the cause on the server.
Handle the response in JavaScript
Parse the response and show a specific message instead of one catch-all. See the code example below.
Fix the root cause
Use the server logs to fix the failing dependency, such as mail transport, database, API key or CORS headers.
If you control the form's JavaScript, replace the catch-all message with one that reflects what actually happened. This helps visitors and makes your own debugging easier.
const form = document.querySelector('#contact-form');
const msg = document.querySelector('#form-message');
form.addEventListener('submit', async (e) => {
e.preventDefault();
msg.textContent = '';
try {
const res = await fetch(form.action, {
method: 'POST',
body: new FormData(form)
});
if (res.ok) {
window.location.href = '/thank-you';
return;
}
let detail = '';
try { detail = (await res.json()).message || ''; } catch (_) {}
console.error('Form failed', res.status, detail);
msg.textContent = res.status >= 500
? 'Our server had a problem. Please email us at hello@example.com.'
: (detail || 'Please check the form and try again.');
} catch (err) {
console.error('Form request error', err);
msg.textContent = 'Connection problem. Please check your network and try again.';
}
});Before
- Every failure shows 'Something went wrong'
- Visitors leave without knowing if it sent
- You find out from a drop in leads
After
- Submit succeeds and the thank-you page loads
- Real problems show a clear, specific message
- Errors are logged so you can find the cause fast
How to confirm it's fixed
- Submit the form in a private window with test data and see the success message or thank-you page
- The Network tab shows a 2xx status on the submit request
- The test lead arrives in the inbox and in the CRM or form entries
- Test on mobile and on at least two browsers
- Submit once with a deliberately invalid field and confirm a clear message appears
- Check that the confirmation or thank-you page still fires your conversion tracking
How to prevent it happening again
Forms break after plugin updates, theme changes, expired integrations and security rule changes. None of these are visible by looking at the page.
- Retest every form after plugin, theme or hosting updates
- Exclude form pages from full-page caching, or confirm tokens refresh
- Use authenticated SMTP or a dedicated transactional email service
- Keep a log of failed submissions where your form tool offers one
- Replace catch-all error messages with specific ones
- Run a scheduled test of each key form instead of relying on manual checks
Day 0
A plugin update or security rule change breaks the submit request.
Day 0 to 3
Visitors see 'something went wrong' and leave. No error reaches you.
Day 4
Someone notices fewer leads than usual.
Day 5
The cause is found and fixed; submissions work again.
How FunnelGuard handles this
FunnelGuard detects this issue today. A robot visitor opens your page on a schedule, fills in the form with marked test data and submits it. It then checks that the success state appears (a success assertion) and that the error text, such as 'something went wrong', is absent (a text-absent check). If the success message is missing or the error text shows, the step fails.
A failure is re-checked from a second region before one alert goes out, by email, Slack, Teams, WhatsApp, webhook or PagerDuty, with a screenshot and a likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1, an fg_test cookie and its own user agent) and FunnelGuard never bypasses CAPTCHAs or bot protection. If a CAPTCHA blocks the robot, that is a setup point to handle with your own test settings, not something it gets around.
The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month for Freelancer and include a 3-day free trial. A free read-only website audit is also available.
Questions people ask
Why does my form say 'something went wrong' when I submit it?
The submit request failed and the form only has one generic message for all failures. Common causes are a server error, an expired security token on a cached page, a spam or firewall block, or a broken email or CRM connection. Check the Network tab after submitting to see the real status code and response.
How do I find out what error my form is actually getting?
Open your browser developer tools (F12), go to the Network tab, submit the form and click the failed request. The status code and the Response tab usually show the real reason. The Console tab shows JavaScript and CORS errors that never reach the server.
Why does my form work for me but fail for visitors?
Logged-in admins often skip page caching and some security rules. A cached page can serve an expired security token to visitors, or a firewall can block their requests. Test in a private window, logged out, and on mobile.
Can a form show an error even though the lead was received?
Yes. The data can reach the server while a later step, such as sending a notification email or calling a CRM, fails and returns an error to the page. Check your inbox, form entries and CRM before assuming the lead was lost, and avoid asking visitors to submit twice.
Is a generic error message bad for conversions?
Yes. Visitors cannot tell whether their details were sent or what to fix, so many leave. A specific message, such as asking them to check one field or to email you directly, keeps more of them.
Could my spam protection cause the 'something went wrong' message?
It can. Spam filters and CAPTCHA scoring may reject real submissions and return an error. Review the plugin's settings and logs and adjust thresholds, but do not disable protection or try to bypass it.
How can I be alerted when my form starts showing an error?
Use a scheduled test that submits the form and checks for a success state. FunnelGuard does this with a robot visitor, checks that the success appears and the error text is absent, re-checks failures from a second region, then sends one alert with a screenshot.
Related issues
- CNV-046Form endpoint returns 4xx/5xxFix guide
- CNV-043Submit button does nothingFix guide
- CNV-044Submit shows spinner foreverFix guide
- CNV-048Form says success but lead never reaches emailFix guide
- CNV-068Spam filter (Akismet, reCAPTCHA score) discards real leadsFix guide
- CNV-047Form posts to an old or deleted endpointFix guide