When WPForms shows its success message and nothing arrives, one of six steps in the submission failed, and only two of them leave a trace where a site owner would think to look. That is what makes a broken form expensive. The form keeps saying “Thanks for contacting us”, the site keeps looking healthy, and the first person to notice is a sales rep asking why the leads dried up three weeks ago. The six steps are the browser’s POST, the nonce check (a one-time security token), field validation, the entry write, building the notification, and handing the email to wp_mail() and the mail relay. Below, each step gets a command that proves whether it worked, followed by a small probe you leave in place so the next failure announces itself within minutes.
What you’ll accomplish
- A test submission traced end to end, with a recorded answer at every link rather than a guess.
- A must-use plugin probe that logs
wpforms_process_completeandwp_mail_failed, so a future failure writes a line instead of vanishing. - A definite answer to whether entries are missing because storage is off, because the tier has no entries table, or because the submission never reached PHP.
- The separation of “WPForms did not send” from “the mail server did not accept” — two problems that get confused constantly.
- A short monitoring loop you can run from cron so silent failure has an upper bound measured in hours.
Prerequisites
You need shell access to the WordPress install with WP-CLI available, plus the ability to write into wp-content/mu-plugins/. Everything below runs from the WordPress root; WP-CLI resolves wp-config.php from the working directory. Reading the mail log in step 10 additionally needs root or a hosting control panel that surfaces it.
Tier matters more than version here. WPForms Lite does not create the entries tables at all, so “entries not saving” on Lite is not a bug and no amount of setting changes will produce one; only the Pro tiers write to wp_wpforms_entries. Step 2 tells you which you have without trusting the admin screen.
WordPress 6.x is assumed. The wp_mail_succeeded action used in the probe arrived in WordPress 5.9 — on anything older, drop that block and rely on wp_mail_failed alone, which has been present since 4.4. PHP 8.x changes one thing that matters: a fatal TypeError in a payment or CRM addon now aborts the request outright where PHP 7 would sometimes limp on, which is why an addon exception can swallow a notification without printing anything.
Throughout, 214 stands for a real form ID and wp_ for the real table prefix. Substitute both; wp db prefix prints the second.
How it works
WPForms posts to admin-ajax.php with action=wpforms_submit, and everything after that happens inside one PHP request. The handler checks the nonce and the anti-spam gates, runs field validation, writes an entry row if the tier and the form settings both allow it, resolves smart tags against the submitted fields to build each notification, and calls wp_mail() once per notification. Only then does it return the JSON that makes the success message appear.
That last detail is the whole problem. The success message is a statement about the request completing, not about mail leaving the building. wp_mail() returns true when PHPMailer accepted the message for sending, which on a box with no MTA and no SMTP plugin can happen well before anything is transmitted — and when it does return false, WPForms has no obligation to surface that to the visitor filling in the form.
Each stage fails in its own characteristic way. A WAF or a mod_security rule rejects the POST before PHP sees it, so nothing in WordPress records anything. A page cache serving a stale nonce produces the family of complaints people search for as corrupted or invalid post data — the token in the cached HTML expired long before the visitor arrived. Validation can fail on a conditionally hidden field and render an error message somewhere off screen. Entry storage can be switched off per form. An addon can throw between the entry write and the notification build. And wp_mail() can fail outright, firing wp_mail_failed with a perfectly good explanation that nothing in the stack is listening for.
The chain is strictly ordered, and stages 4 and 5 are observable from inside WordPress. If an entry row exists, the POST arrived, passed the nonce, and passed validation — three questions answered by one SELECT. If wpforms_process_complete fired with a non-zero entry_id, everything up to the notification build worked. That is why the order below is not negotiable.
Step-by-step
-
Establish which tier and version you are actually running. The admin footer lies after a failed update; the plugin list does not.
wp plugin list --status=active --fields=name,version,status --format=csv | grep -i -E 'wpforms|smtp|cache|security'Expect something like
wpforms-lite,1.9.7.1,active. A slug ofwpforms-liteis the free tier;wpformsis Pro. Note every caching and security plugin the grep returns — each is a candidate for stages 1 and 2. -
Confirm whether an entries table exists at all. This settles the most common false lead in one command.
wp db prefix wp db query "SHOW TABLES LIKE '%wpforms%';" --skip-column-namesOn Pro you get
wp_wpforms_entries,wp_wpforms_entry_fields,wp_wpforms_entry_metaandwp_wpforms_payments. On Lite you typically get onlywp_wpforms_tasks_meta— no entries table, which means submissions were never stored and never could have been. Stop chasing the storage setting and go straight to the notification half of the chain. -
Read the per-form storage switch rather than trusting the builder screen. Form configuration lives as JSON in the
wpformspost type.wp post list --post_type=wpforms --fields=ID,post_title,post_status --format=csv wp post get 214 --field=post_content | tr ',' '\n' | grep -i entriesA line reading
"disable_entries":"1"means storage is off for this form and every submission is fire-and-forget. No output at all means the key is unset, which is the default and the correct state. -
Install a probe that records the two moments WPForms will not report. A must-use plugin loads before everything and cannot be deactivated by an update.
mkdir -p wp-content/mu-plugins cat > wp-content/mu-plugins/wpforms-probe.php <<'PHP' <?php // Records the links in the chain that fail without an error. add_action( 'wpforms_process_before', function ( $entry, $form_data ) { error_log( 'WPFORMS_PROBE before form=' . $form_data['id'] ); }, 10, 2 ); add_action( 'wpforms_process_complete', function ( $fields, $entry, $form_data, $entry_id ) { error_log( 'WPFORMS_PROBE complete form=' . $form_data['id'] . ' entry_id=' . (int) $entry_id ); }, 10, 4 ); add_action( 'wp_mail_failed', function ( $error ) { error_log( 'WPFORMS_PROBE wp_mail_failed ' . $error->get_error_message() ); } ); add_action( 'wp_mail_succeeded', function ( $mail ) { error_log( 'WPFORMS_PROBE wp_mail_succeeded to=' . implode( ',', (array) $mail['to'] ) ); } ); PHP wp plugin list --status=must-use --fields=name,status --format=csvThe last command should print
wpforms-probe.php,must-use. If it prints nothing, the file landed outsidewp-content/mu-plugins/orWPMU_PLUGIN_DIRhas been moved. -
Give
error_log()somewhere readable to write. Without this the probe runs and its output goes to the PHP error log, or nowhere.wp config set WP_DEBUG true --raw wp config set WP_DEBUG_LOG true --raw wp config set WP_DEBUG_DISPLAY false --raw wp config get WP_DEBUG_LOGThe final command prints
1. SettingWP_DEBUG_DISPLAYto false keeps notices out of the AJAX response — a stray notice printed into that JSON is itself a cause of forms that appear to hang. -
Submit the form for real while watching the log. Open a second shell, tail, then fill the form in a browser like a visitor would.
tail -f wp-content/debug.log | grep WPFORMS_PROBEA healthy submission prints three or four lines in order:
WPFORMS_PROBE before form=214 WPFORMS_PROBE complete form=214 entry_id=1183 WPFORMS_PROBE wp_mail_succeeded to=leads@example.comNothing at all means the POST never reached PHP — go to the WAF. A
beforewith nocompletemeans something aborted mid-process. Acompletewithentry_id=0means the notification path ran but no entry was stored. -
Prove the entry row against the database, not the admin list. The admin Entries screen filters by status and hides spam.
wp db query "SELECT entry_id, form_id, status, date FROM wp_wpforms_entries ORDER BY entry_id DESC LIMIT 3;" --skip-column-namesYou want your test submission at the top with a recent timestamp:
1183 214 2026-09-07 14:02:11. An emptystatuscolumn is normal for an ordinary entry. A row withstatusreadingspamexplains an entry the admin screen refuses to show you. -
Test
wp_mail()on its own, with WPForms out of the picture. This separates a plugin problem from a mail problem, which is the single most useful cut in this whole exercise.wp eval 'var_dump( wp_mail( "you@example.com", "WPForms probe", "direct wp_mail test" ) );'bool(true)means WordPress handed the message off.bool(false)means it did not, and the probe has already written the reason intowp-content/debug.log— check it before doing anything else. The mechanics of whytrueis weaker evidence than it looks are covered in diagnosing silent wp_mail failures; thewp_mail()reference documents both hooks the probe uses. -
Read the notification the form will actually send. Smart tags and sender addresses are stored with the form, not with WPForms’ global settings.
wp post get 214 --field=post_content | python3 -c 'import json,sys; print(json.dumps(json.load(sys.stdin)["settings"]["notifications"], indent=2))'You are checking three things in the output: that
emailis a real mailbox and not a smart tag pointing at a deleted field, thatsender_addressis on a domain you control rather than the submitter’s address, and thatsubjectandmessagereference field IDs that still exist. A smart tag for a removed field renders as literal text and is a reliable sign the form was edited after the notification was written. -
Confirm the relay accepted the message. WordPress is finished at this point; this is the mail server’s record.
tail -100 /var/log/maillog | grep -iE 'wpforms|status=(sent|bounced|deferred)'On Debian and Ubuntu the file is
/var/log/mail.log. A line containingstatus=sentwith a250response from the receiving side is proof of handoff.status=deferredorstatus=bouncedgives you the remote server’s own explanation, usually about authentication rather than about WordPress.
Validate it works
Run one clean end-to-end submission and require all four answers to line up, rather than accepting any single one as proof.
wp db query "SELECT MAX(entry_id) FROM wp_wpforms_entries;" --skip-column-names
Note that number, submit the form once from a browser in a private window, then re-run the same command. It must increase by exactly one. Then confirm the notification half:
grep WPFORMS_PROBE wp-content/debug.log | tail -5
grep -c 'wp_mail_failed' wp-content/debug.log
The first should show a complete line whose entry_id matches the new maximum, followed by a wp_mail_succeeded line. The second should print 0. Finally, confirm the message arrived in the destination mailbox, spam folder included: accepted and then filed as junk is a delivery problem, not a WordPress one.
To keep this working, leave the probe in place and give the silence an upper bound with a cron entry that alerts when a form that normally receives traffic receives none:
wp db query "SELECT COUNT(*) FROM wp_wpforms_entries WHERE form_id = 214 AND date > DATE_SUB(NOW(), INTERVAL 24 HOUR);" --skip-column-names
A 0 from a form that normally sees a dozen a day is the alert you wish you had had three weeks earlier.
Troubleshooting
Everything logs correctly but nothing ever arrives. wp_mail() returned true, no wp_mail_failed fired, and the mail log has no record of the message. The site has no MTA and no SMTP plugin, so PHP’s mail() accepted the message into a queue that goes nowhere. Route through an authenticated relay; WP Mail SMTP setup covers mailer choice and keeping credentials out of wp_options.
The form spins forever or reports corrupted post data. The nonce in the cached HTML expired before the visitor submitted. Exclude the page holding the form from full-page caching, or confirm the caching plugin’s nonce handling is active. If the form has many fields — repeaters, checkboxes, multi-page — also raise PHP’s max_input_vars from its default of 1000, because fields dropped past that limit arrive as a partial POST that fails validation in a way no one can read.
Entries are missing but notifications arrive. Storage is off, or the tier has no entries table. Step 2 and step 3 answer this in ten seconds. On Lite there is no fix short of upgrading; a stopgap is to add a second notification to an archive mailbox so submissions exist somewhere other than one inbox.
A before line appears with no matching complete. Something threw between the two, and on PHP 8 that ends the request. Look for a fatal in wp-content/debug.log immediately after the before line — payment and CRM addons are the usual source, especially when an API key was rotated or a Stripe account moved between test and live mode. Deactivate addons one at a time and re-submit until complete reappears.
No probe lines at all, and the browser network tab shows a 403 on admin-ajax.php. The POST is being rejected before PHP runs. That is mod_security, a WAF, or a security plugin’s firewall — not WPForms. Read the server’s mod_security audit log for the rule ID, then request an exclusion for that rule on admin-ajax.php rather than turning the ruleset off. The same symptom on a form with a file upload is usually a body size limit.
When this is the wrong approach
If the form has never worked since the day it was built, the chain above is more machinery than the problem deserves. Rebuild the notification from scratch in the form builder and send a test through the plugin’s own tools first; a form that never worked usually has a configuration mistake, not a failure.
If the complaint is that submissions are landing in spam at the recipient’s end, none of this helps. Every stage will report success because every stage succeeded. That is a sender-reputation problem, addressed with SPF, DKIM and DMARC on the sending domain.
If you are running WPForms alongside another form plugin on the same site, diagnose the migration rather than the form. Two plugins registering handlers on the same page produces conflicting nonces and duplicate submissions, and the failure pattern will not match anything described here; Contact Form 7 common issues covers the other half of that pairing.
And if the answer to “how long have leads been missing” is “we don’t know”, the diagnostic is the smaller half of the work. Getting one form working takes an afternoon; knowing within an hour that it stopped takes monitoring, which is a property of how the site is operated rather than of the plugin. WPForms’ own documentation covers the plugin; nothing in it covers noticing.
Running WordPress that earns real money deserves an operator — Stack Harbor runs that stack under Enterprise WordPress; book an infrastructure consult.