Skip to content
FunnelGuard

Fix guide by FunnelsGuard

Form shows 'something went wrong' on submit: how to fix it

CNV-045High impactDetectedBy FunnelGuardPublished Updated
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.

Where the lead is lost
  1. Ad clickVisitor lands on the page
  2. Fills in formAll fields completed
  3. Clicks submitRequest fails; 'something went wrong' shown
  4. Thank-you pageNever reached
  5. Lead in inbox/CRMNothing arrives

The visitor does everything right, but the submit request fails and the lead never arrives.

Leads per 100 form attemptsExample numbers
Leads per 100 form attempts (example)Form working: 100 leads; Form failing half the time: 50 leads; Form failing every time: 0 leads03877100500Form workingForm failing half the…Form failing every ti…leads

Example: illustrative numbers only. If the form fails for a share of attempts, those visitors are lost.

Common causes

What usually sits behind a generic form error
CauseWhat you will see in the Network tabTypical fix
Server error in the form handlerStatus 500 or 502 on the submit requestCheck server or PHP error logs, fix the code or plugin conflict
Expired security token (nonce/CSRF)Status 403 or 419, often on cached pagesExclude the form page from page cache or refresh the token
Spam filter rejectionStatus 200 or 4xx with a spam or blocked message in the responseCheck the spam plugin settings and logs
Blocked by firewall or security pluginStatus 403 from a WAF or security ruleAllow the form endpoint in the firewall rules
Broken or removed integrationError in the response body mentioning email, SMTP or APIReconnect the email service or CRM connection
Cross-origin (CORS) blockRequest shown as blocked or failed in the consoleAllow your domain on the receiving endpoint
Required field mismatchStatus 400 or 422 with a field error in the responseAlign the form field names with what the endpoint expects

How to check if your site has it

Find the failing request in your browser
  1. 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'.

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

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

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

  5. Check the Console tab

    Red errors such as CORS, 'Failed to fetch' or a JavaScript exception explain failures that never reach the server.

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

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

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

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

  4. Check email sending

    If the failure is in sending, configure authenticated SMTP through a mail plugin instead of the server's default mail function.

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.

Show a specific error and log the causejavascript
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.';
  }
});
What changes after the fix

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

Confirmation checklist
  • 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.

Prevention habits
  • 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
How it often unfolds
  1. Day 0

    A plugin update or security rule change breaks the submit request.

  2. Day 0 to 3

    Visitors see 'something went wrong' and leave. No error reaches you.

  3. Day 4

    Someone notices fewer leads than usual.

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

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: assert success / text_absent.

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.