# How to Diagnose PHP max_input_vars Truncating a Form

https://ferkesh.net/uk/baza-znan/stattia/php-max-input-vars-form-truncation

![Workflow: Reproduce with test data; Read effective limits; Reduce scope first; Verify every segment.](https://ferkesh.net/kb-media/ferkesh-guide-diagrams-batch-14.svg#php-max-input-vars-form-truncation)

A large administrative form can load normally and save only part of its fields. Compare the submitted structure with what PHP parses before retrying a live bulk update.

## Procedure

1. **Reproduce with test data.** Choose a staging case with many harmless fields and record the exact operation and active PHP handler. Compare the number of submitted form variables with a smaller passing case.
2. **Read effective limits.** Check the documented max_input_vars setting for the relevant request context. Include the PHP error log and distinguish variable truncation from request body size or application validation.
3. **Reduce scope first.** Test smaller batches or a supported bulk operation. If the application needs a different limit, assess the host’s supported configuration and expected workload.
4. **Verify every segment.** Compare beginning, middle and end records after a staged save. Document safe batch size or the approved setting and confirm ordinary forms still behave normally.

## Related guides

- [How to Compare PHP Settings for Web and CLI Runs](https://ferkesh.net/knowledgebase/article/php-web-cli-configuration-mismatch)
- [How to Find Which Layer Returns HTTP 413 on Upload](https://ferkesh.net/knowledgebase/article/trace-http-413-upload-limit)
- [Developer Resources articles](https://ferkesh.net/knowledgebase/category/developer-resources)

## Official references

- [PHP core directives](https://www.php.net/manual/en/ini.core.php)

Ferkesh Hosting. Last reviewed November 26, 2026.
