<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Environment_-_max_input_vars</id>
	<title>Environment - max input vars - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Environment_-_max_input_vars"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Environment_-_max_input_vars&amp;action=history"/>
	<updated>2026-05-07T03:11:24Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Environment_-_max_input_vars&amp;diff=3701&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Environment_-_max_input_vars&amp;diff=3701&amp;oldid=prev"/>
		<updated>2024-10-18T06:37:52Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:37, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Environment_-_max_input_vars&amp;diff=3700&amp;oldid=prev</id>
		<title>1&gt;Fox: French link</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Environment_-_max_input_vars&amp;diff=3700&amp;oldid=prev"/>
		<updated>2024-07-01T08:33:39Z</updated>

		<summary type="html">&lt;p&gt;French link&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;The PHP setting &amp;#039;&amp;#039;&amp;#039;max_input_vars&amp;#039;&amp;#039;&amp;#039; determines how many input variables may be accepted (limit is applied to $_GET, $_POST and $_COOKIE superglobal separately). If there are more input variables than specified by this directive, an E_WARNING is issued, and further input variables are truncated from the request. &lt;br /&gt;
&lt;br /&gt;
There are a lot of big or potentially big forms in Moodle, such as:&lt;br /&gt;
* Site administration tree search&lt;br /&gt;
* Editing roles&lt;br /&gt;
* Grading courses with big number of participants&lt;br /&gt;
* Large quizzes and quiz settings&lt;br /&gt;
The default value for max_input_vars in PHP is &amp;#039;&amp;#039;&amp;#039;1000&amp;#039;&amp;#039;&amp;#039;, this is not enough for many cases.&lt;br /&gt;
&lt;br /&gt;
If you are using PHP 7 the recommended value for the &amp;#039;&amp;#039;&amp;#039;max_input_vars&amp;#039;&amp;#039;&amp;#039; in Moodle is &amp;#039;&amp;#039;&amp;#039;5000&amp;#039;&amp;#039;&amp;#039; but you can still use Moodle with the lower value. Moodle code has a workaround that allows to submit the forms even with bigger limit however this workaround is not perfect. It is much better to increase the setting.&lt;br /&gt;
&lt;br /&gt;
e.g. in Ubuntu 20.x, within /etc/php/7.4/apache2/php.ini, find this section and remove the comment (semi-colon) and edit the line to increase the size:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;;&amp;lt;/nowiki&amp;gt; How many GET/POST/COOKIE input variables may be accepted&lt;br /&gt;
&lt;br /&gt;
&amp;lt;nowiki&amp;gt;;&amp;lt;/nowiki&amp;gt;max_input_vars = 1000&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;max_input_vars = 5000&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
If you are using PHP 8 the minimum value of 5000 &amp;#039;&amp;#039;&amp;#039;is required&amp;#039;&amp;#039;&amp;#039;. By default PHP 8 sets to display startup errors (see [https://php.watch/versions/8.0/startup-errors-enabled]). This means that the warning about exceeding max_input_vars appears before the workaround even applied.&lt;br /&gt;
&lt;br /&gt;
To change max_input_vars you can either set it in php.ini or modify it in runtime, for example for Apache you can create &amp;#039;&amp;#039;&amp;#039;.htaccess&amp;#039;&amp;#039;&amp;#039; file:&lt;br /&gt;
&amp;lt;code&amp;gt;&lt;br /&gt;
php_value max_input_vars 5000&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
[[Category:Environment|PHP]]&lt;br /&gt;
[[es:admin/environment/custom check/max input vars]]&lt;br /&gt;
[[fr:Environnement_-_max_input_vars]]&lt;/div&gt;</summary>
		<author><name>1&gt;Fox</name></author>
	</entry>
</feed>