{"id":7858,"date":"2026-04-23T09:50:53","date_gmt":"2026-04-23T07:50:53","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=7858"},"modified":"2026-06-08T09:54:56","modified_gmt":"2026-06-08T07:54:56","slug":"what-is-max_input_vars","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/en\/knowledgebase\/what-is-max_input_vars\/","title":{"rendered":"What is max_input_vars?"},"content":{"rendered":"\n<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">The <code>max_input_vars<\/code> parameter is a PHP configuration directive that limits the number of variables your server can process in a single function call. These variables include data sent via GET and POST requests, as well as cookies.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In the mybox ecosystem, the default limit is set to <strong>6000<\/strong>. This threshold is designed to protect your server&#8217;s resources from potential denial-of-service (DoS) attacks that use hash collisions. However, for modern, data-heavy web applications, this default may need adjustment.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/what-is-max_input_vars\/#Why_increase_max_input_vars\" >Why increase max_input_vars?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/what-is-max_input_vars\/#Practical_Implications\" >Practical Implications<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/what-is-max_input_vars\/#How_to_increase_max_input_vars\" >How to increase max_input_vars<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/en\/knowledgebase\/what-is-max_input_vars\/#Summary\" >Summary<\/a><\/li><\/ul><\/nav><\/div>\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Why_increase_max_input_vars\"><\/span>Why increase max_input_vars?<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<\/div>\n\n<div id=\"mybox-2317599971\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Early access<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Still need help?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contact our customer service team.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Message us<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">When a form or configuration page exceeds the <code>max_input_vars<\/code> limit, PHP stops processing any additional data. This results in data loss without showing a specific error message on the page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Common scenarios where an increase is necessary include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>WordPress Menu &amp; Theme Settings:<\/strong> Large navigation menus or complex theme customizers often send hundreds of variables at once.<\/li>\n\n\n\n<li><strong>E-commerce Management:<\/strong> In PrestaShop or WooCommerce, saving a product with many variations or bulk-updating an inventory list can exceed the limit.<\/li>\n\n\n\n<li><strong>Advanced Page Builders:<\/strong> Plugins like ACF (Advanced Custom Fields) or WPML (for translations) generate a high volume of input fields on a single page.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Practical_Implications\"><\/span>Practical Implications<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you notice that settings &#8220;revert&#8221; after you click save, or if only a portion of a long form is being recorded in your database, it is likely that the <code>max_input_vars<\/code> limit has been reached. Increasing this value ensures that the mybox panel and your PHP environment can process the full scope of your application&#8217;s requests.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"How_to_increase_max_input_vars\"><\/span>How to increase max_input_vars<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">At mybox, you can adjust PHP parameters directly through your website&#8217;s configuration files rather than editing a global <code>php.ini<\/code> file. This allows for specific settings for each individual project.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>To change the limit via .htaccess:<\/strong><\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>Connect to your server using FTP.<\/li>\n\n\n\n<li>Locate the <code>.htaccess<\/code> file in your website&#8217;s root directory (typically <code>\/public_html<\/code>).<\/li>\n\n\n\n<li>Add the following line to the bottom of the file: <code>php_value max_input_vars 8000<\/code><\/li>\n\n\n\n<li>Save the file and refresh your application to test the change.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The <code>max_input_vars<\/code> parameter ensures that complex forms and large datasets are processed completely by your server. While <strong>6000<\/strong> is sufficient for most websites, increasing this to <strong>8000<\/strong> or higher is a standard adjustment for advanced CMS configurations and e-commerce platforms.<\/p>\n<\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[39],"manual_kb_tag":[2433,3458,3779,9117,9118,9119,9120,9121,718,2319],"class_list":["post-7858","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-php-operations","manual_kb_tag-mybox-hosting","manual_kb_tag-php-ini","manual_kb_tag-htaccess-configuration","manual_kb_tag-max_input_vars","manual_kb_tag-what-is-max_input_vars","manual_kb_tag-increase-max_input_vars","manual_kb_tag-php_value-max_input_vars","manual_kb_tag-php-value-directive","manual_kb_tag-htaccess-file","manual_kb_tag-php-configuration"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/7858","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":2,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/7858\/revisions"}],"predecessor-version":[{"id":7859,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb\/7858\/revisions\/7859"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/media?parent=7858"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manualknowledgebasecat?post=7858"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/en\/wp-json\/wp\/v2\/manual_kb_tag?post=7858"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}