A particularly maddening cPanel symptom: a large WordPress menu saves, but only the first 50-odd items survive; a theme-options page with many settings keeps reverting some of them; a big form submission arrives with fields missing and no error anywhere. Nothing in the logs screams, the page returns 200, and the data is just… truncated. The cause is almost always max_input_vars — a PHP setting that caps how many input fields a single request may carry. When a form sends more variables than the limit, PHP silently discards the overflow and processes the rest, which is why the failure is partial and quiet rather than a clean error. Raising it is a one-setting fix; the trick is knowing it exists and where to change it on cPanel.
What’s happening
max_input_vars limits the number of input variables PHP will accept from a single request — across $_GET, $_POST, and $_COOKIE combined. The default is 1000. That sounds like a lot until you meet a real WordPress site: a navigation menu where each item carries half a dozen hidden fields, a WooCommerce product with many variations and attributes, an Advanced Custom Fields or page-builder screen with hundreds of inputs, or a settings page that serializes a large array of options. Any of these can blow past 1000 input variables in one save.
When the count exceeds the limit, PHP does not reject the request — it truncates the input array at the limit and keeps going, so the script runs normally but only sees the first N variables. WordPress then saves what it received (the first portion) and silently drops the rest. There is no exception, no 500, often not even a warning at default logging levels — just data that did not stick. This is what makes max_input_vars so confusing: every other “data lost” symptom usually throws something, but this one is designed to fail silently. The related suhosin.post.max_vars exists on some older stacks, but on a modern cPanel host max_input_vars is the lever.
How to verify
Check the current value as PHP actually sees it for the account’s PHP version:
# The active value (run as the account, or check the right ea-php binary)
php -i | grep max_input_vars
/opt/cpanel/ea-php82/root/usr/bin/php -i | grep max_input_vars
# What a phpinfo() page shows for the site (most reliable — it's the real runtime)
# Create info.php with <?php phpinfo(); then load it, then DELETE it
Confirm a form is actually exceeding the limit — count the inputs it sends:
# Roughly how many fields a saved WordPress menu/form posts
# (in the browser devtools Network tab, inspect the POST payload's parameter count)
# Which php.ini governs this account's PHP version?
grep -ril max_input_vars /opt/cpanel/ea-php*/root/etc/php.ini ~/public_html/.user.ini ~/public_html/php.ini 2>/dev/null
See whether a per-account override is already in place:
# Per-account overrides on cPanel commonly live in these files
cat ~/public_html/.user.ini 2>/dev/null | grep -i input
cat ~/public_html/php.ini 2>/dev/null | grep -i input
The fix
- Confirm the symptom is
max_input_vars, not something else — partial saves that silently drop the overflow of a large form point squarely at this setting. If the whole save fails or throws an error, it is a different cause (a timeout, a memory limit, a validation error) and raising input vars will not help. The signature here is specifically “first N fields saved, rest gone, no error.” - Raise it in cPanel » MultiPHP INI Editor for the account — the cleanest path on cPanel is MultiPHP INI Editor, Editor mode, selected for the right domain: add or set
max_input_vars = 5000(a value comfortably above the form’s field count). This writes the override for that account’s PHP version through cPanel’s own mechanism, so it survives and applies correctly. - Use a
.user.iniif you manage the account at the file level — for PHP-FPM/CGI handlers, a.user.iniin the document root works: addmax_input_vars = 5000. Note.user.inichanges are not instant — PHP re-reads it on theuser_ini.cache_ttlinterval (300s by default), so wait a few minutes or restart PHP before testing. This is handy when you do not have WHM access but do have the file system. - Set it server-wide in MultiPHP INI Editor (all PHP versions) if many accounts hit it — as a host operator, you can raise the default for every account by setting
max_input_varsin the global INI for each ea-php version (WHM/MultiPHP INI Editor governs these). Raising the server default to, say, 3000 heads off the problem for typical large WordPress sites without per-account edits. Each PHP version has its own INI, so set it for the versions in use. - Pick a value with headroom, not an enormous one — set the limit comfortably above the largest form (a big menu might post 1500-2500 variables, so 5000 is generous), but do not set it to 100000 “to be safe”. A very high limit removes a guardrail against malicious oversized requests and lets a runaway form consume more memory and parse time. Enough headroom for legitimate use is the goal, not infinity.
- Restart PHP so the change takes effect — after editing the INI, the PHP-FPM/lsphp workers must reload to pick it up. Through cPanel the INI Editor handles this; via the file system, restart with
/scripts/restartsrv_lsphp(LiteSpeed) orsystemctl restart php-fpm/ rebuild the PHP-FPM config. A.user.inichange just waits out its TTL. Confirm withphpinfo()that the new value is live. - Verify the full form now saves end to end — reload
phpinfo()(orphp -i) to confirm the new value, then re-do the exact action that truncated: save the full large menu, submit the big form, and confirm every field persists. The proof is the complete data sticking, not just the higher number inphpinfo— re-test the real workflow.
max_input_vars is the rare setting whose default failure mode is silence, which is exactly why it eats hours of debugging when no one suspects it. Once you recognise the partial-save signature, the fix is a single value in MultiPHP INI Editor with sensible headroom. Stack Harbor tunes PHP runtime settings per account under cPanel/WHM management — start a conversation when forms or menus keep losing data.