Skip to content
FunnelGuard

Fix guide by FunnelsGuard

'Something went wrong' after form submit: how to find and fix it

PRF-137High impactDetectedBy FunnelGuardPublished Updated
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.

Where the journey breaks
  1. Ad clickVisitor lands on the page
  2. Fill in formFields completed
  3. SubmitRequest returns an error
  4. Thank-you pageNever shown
  5. 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.

Leads reaching the CRMExample numbers
Leads reaching the CRM (example)Submit working: 100 leads per week; Submit failing: 0 leads per week038771000Submit workingSubmit failingleads per week

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

Reproduce and trace the error
  1. Open developer tools

    In Chrome or Edge press F12 (Cmd+Option+I on Mac), then open the Network tab and tick 'Preserve log'.

  2. 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.

  3. 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.

  4. Check the Console tab

    A red JavaScript error at the moment of submit means a script failed, even if the request itself succeeded.

  5. 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.

What the status code usually points to
StatusTypical meaningWhere to look
400 / 422Server rejected the dataField validation, required fields, format rules
403Request blockedSecurity plugin, firewall, expired nonce or token, spam filter
404Endpoint not foundWrong form action URL, removed route or webhook
429Too many requestsRate limits on your host, API or form service
500Server crashedServer error log, plugin conflict, code error
502 / 504Upstream timed outSlow API, CRM or email service the form calls
200 but error shownScript mishandled the responseConsole 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.

General fix
  1. 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.

  2. 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.

  3. 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.

  4. Log the error

    Send failed submissions to your error log or alerting so you learn about them without a customer telling you.

Fix by platform
  1. 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.

  2. Find a plugin conflict

    Temporarily deactivate security, caching and optimisation plugins one at a time, retesting the form after each.

  3. Check caching

    If the error is about an invalid nonce or security token, exclude the form page from page caching.

  4. Check the form plugin's email and integration settings

    Review the notification, SMTP and CRM connections inside your form plugin.

Client-side handling that tells you what failedjavascript
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

Confirmation checks
  • 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

Prevention habits
  • 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
How the problem usually unfolds
  1. Day 1

    A plugin update or expired API key makes the submit request fail.

  2. Day 1 to 5

    Visitors see 'Something went wrong' and leave. Page views look normal.

  3. Day 6

    Someone notices fewer leads than usual.

  4. 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: not_text / success assert.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.