On this page
What this issue is
Your visitor fills in a form or checkout and clicks submit. Instead of a thank-you page, they see a generic message such as 'Something went wrong', 'An error occurred' or 'Please try again later'. The page loaded fine. The failure happens after the click.
The message is a catch-all. Your site shows it when the submit request returns an error, times out, or a script throws an exception while handling the response. The wording tells you nothing, so you need to look at the request behind it.
Why it costs you leads or sales
The visitor has already decided to convert. A vague error gives them no way forward, so most will leave rather than retry. The lead or order is lost, and often so is the conversion event your ad platforms need, so campaigns can look worse than they are.
It is also easy to miss. Nobody is notified, analytics show a normal visit, and the form may work for you while failing for others, for example on certain browsers, with certain input values or only at busy times.
- Ad clickVisitor lands on the page
- Fill in formFields completed
- SubmitRequest returns an error
- Thank-you pageNever shown
- Lead in CRM and conversion tagNever created or sent
The visitor reaches the form and submits, but the request fails, so nothing after it happens.
Example: 100 visitors submit the form each week. When the submit request fails, none of them become leads.
How to check if your site has it
Open developer tools
In Chrome or Edge press F12 (Cmd+Option+I on Mac), then open the Network tab and tick 'Preserve log'.
Submit the form with test data
Use a clearly fake name and an email address you control. Watch for a red row in the Network list.
Read the failed request
Click the red row. Note the status code (400, 403, 404, 429, 500, 502, 504), the URL and the Response tab. Many systems return a useful message there.
Check the Console tab
A red JavaScript error at the moment of submit means a script failed, even if the request itself succeeded.
Try variations
Test on mobile, in a private window, with a long message, with special characters and with an address from a different email provider. Some failures only appear with certain input.
| Status | Typical meaning | Where to look |
|---|---|---|
| 400 / 422 | Server rejected the data | Field validation, required fields, format rules |
| 403 | Request blocked | Security plugin, firewall, expired nonce or token, spam filter |
| 404 | Endpoint not found | Wrong form action URL, removed route or webhook |
| 429 | Too many requests | Rate limits on your host, API or form service |
| 500 | Server crashed | Server error log, plugin conflict, code error |
| 502 / 504 | Upstream timed out | Slow API, CRM or email service the form calls |
| 200 but error shown | Script mishandled the response | Console errors, response format changed |
How to fix it
The fix depends on what the failed request told you. Start with the general steps, then use the platform tab that matches your site.
Fix the cause behind the status code
Use the table above. For 403 errors, review security rules. For 500 errors, read the server or application error log at the time of your test.
Check every service the form calls
CRM, email provider, payment gateway and webhook URLs can each fail. Confirm API keys have not expired and the account is not over its limits.
Handle failures properly
Show a specific, helpful message (for example which field is wrong) and keep the visitor's entered data so they can retry.
Log the error
Send failed submissions to your error log or alerting so you learn about them without a customer telling you.
Turn on debug logging
In wp-config.php set WP_DEBUG and WP_DEBUG_LOG to true, submit again and read wp-content/debug.log. Turn it off afterwards.
Find a plugin conflict
Temporarily deactivate security, caching and optimisation plugins one at a time, retesting the form after each.
Check caching
If the error is about an invalid nonce or security token, exclude the form page from page caching.
Check the form plugin's email and integration settings
Review the notification, SMTP and CRM connections inside your form plugin.
Check recent theme or app changes
In Online Store > Themes, compare against a previous version, and disable recently added apps that touch forms or checkout.
Review custom form code
If your theme uses a custom form, confirm it posts to the correct endpoint and includes the form tag fields Shopify requires.
Check Shopify status
Look at the Shopify status page in case of a platform incident, then retest.
Open Preview mode
Submit the form and check whether a custom HTML tag or trigger runs at the same moment the error appears.
Pause suspect tags
Pause custom HTML tags that modify the form or intercept the submit event, publish to a test environment and retest.
Check form settings
In the form's settings, confirm the action, method and any custom redirect or third-party endpoint are correct.
Review custom code
Check Project Settings > Custom Code and page-level embeds for scripts that intercept submit.
Check integrations
If the form posts to a webhook or Zapier-style service, confirm the URL still works.
Open the form or survey settings
Check required fields, connected workflow and any custom code in the builder.
Review the connected workflow
Make sure the workflow triggered by the form is published and has no failing actions.
Check custom scripts
Remove recently added tracking or custom JavaScript on the page and retest.
Check the form's submission settings
In the form's settings, confirm where submissions are sent and that the connected email or collection exists.
Review custom code
If you use Velo or custom embeds, check the browser console for errors in your code at submit time.
Check the form block storage
In the form block's Storage settings, confirm the connected email, Google Sheet or integration is still authorised.
Review code injection
Check Settings > Advanced > Code Injection for scripts that could break the submit handler.
Catch and log errors server-side
Wrap the handler in error handling that logs the exception and returns a clear status code and message.
Handle failures in the client
Check response.ok and show a specific message, as in the snippet below.
form.addEventListener('submit', async (e) => {
e.preventDefault();
try {
const res = await fetch(form.action, {
method: 'POST',
body: new FormData(form)
});
if (!res.ok) {
const text = await res.text();
console.error('Submit failed', res.status, text);
showMessage('We could not send your details. Please check the form and try again.');
return;
}
window.location.href = '/thank-you';
} catch (err) {
console.error('Network or script error', err);
showMessage('Connection problem. Please try again.');
}
});How to confirm it's fixed
- Submit with valid test data and reach the thank-you page or confirmation
- The Network tab shows a 200 or expected redirect for the submit request
- The Console shows no red errors during submit
- The test lead appears in your inbox and CRM
- The conversion tag fires once on the thank-you step
- Repeat on mobile and in a second browser
- Retest with long text, special characters and a different email domain
How to prevent it happening again
- Test the form after every plugin, theme, app or script update
- Monitor API keys, quotas and expiry dates for connected services
- Exclude form pages from caching where tokens are used
- Log failed submissions and review them
- Keep a staging copy to test changes before they go live
- Run a scheduled test of the real submission, not just a page-load check
Day 1
A plugin update or expired API key makes the submit request fail.
Day 1 to 5
Visitors see 'Something went wrong' and leave. Page views look normal.
Day 6
Someone notices fewer leads than usual.
Day 7
The cause is traced and fixed. Submissions resume.
How FunnelGuard handles this
FunnelGuard detects this today. A robot visitor runs your real form journey on a schedule, from the EU or the US, fills in the form, submits it and then checks the result. Its success assertion looks at the page after submit. If an error text such as 'Something went wrong' is shown, or the expected success message or page does not appear, 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. FunnelGuard can also check whether the test lead reaches your inbox and CRM. Test traffic is marked (utm_source=funnelguard, fg_test=1) so you can filter it out. It never bypasses CAPTCHAs or bot protection, so a form behind one may need a test setup that allows it.
The Free plan covers 1 site and 2 journeys with daily checks and no card. Paid plans start at $39/month with a 3-day free trial.
Questions people ask
Why does my form say 'Something went wrong' after I click submit?
The request your form sent failed, or a script crashed while handling the response. Common causes are a server error, a blocked request from a security plugin, an expired API key for a CRM or email service, or a JavaScript error. Check the Network and Console tabs in your browser to see the real status code.
How do I find out what caused the 'Something went wrong' error?
Open developer tools with F12, go to the Network tab, submit the form and click the red failed request. The status code and Response tab usually show the cause. Also check the Console tab for JavaScript errors and your server or plugin error log.
Why does the form work for me but fail for customers?
The failure may depend on browser, device, input values, location or timing. Expired security tokens from cached pages, rate limits and special characters in fields are common culprits. Test on mobile, in a private window and with varied input to reproduce it.
Can a caching plugin cause a 'Something went wrong' form error?
Yes. If the form includes a security token or nonce and the page is cached, the token can expire and the server rejects the submission. Exclude the form page from page caching and retest.
Will I lose leads while this error is showing?
Yes, usually. If the submit request fails, the lead is not created and the conversion tag may not fire either. Visitors often will not retry after a vague error.
How can I be alerted when my form starts showing an error?
Use a scheduled test that submits the real form and checks the result. FunnelGuard does this: it runs your journey, flags error text or a missing success message, re-checks from a second region and sends one alert with a screenshot.
Should I show the technical error to visitors?
No. Show a clear, friendly message that says what to do next, and keep their entered data. Log the technical details privately so you can diagnose the problem.
Related issues
- PRF-120JS error only after clicking submit breaks the formFix guide
- PRF-135Form submits but shows no feedback (silent failure)Fix guide
- PRF-134Button does nothing on click (dead click)Fix guide
- PRF-117Console error on a funnel stepFix guide
- PRF-136Double-submit creates duplicate leads/ordersFix guide
- PRF-124CORS error blocking API call from the pageFix guide