Reputation: 601
Since a few days ago, we've a problem in an online shop. (Gambio bases on xtC)
We have a formula with more than 3000 text fields. About the first third of them work correctly; the rest is null, empty.
It seems that $_POST is filled correctly, but on the server, the app gets a reduced array.
I tested it on different computers, with different browsers, with different content: => always the same.
Server: Linux infong 2.4 #1 SMP Mon Oct 10 09:34:36 UTC 2011 i686 GNU/Linux
PHP Version 5.2.17 (build 12-29-2011)
post_max_size
is 8 MB.
The problems were recognized on 12-30-2011, so it might be connected with the new build on the server.
Has somebody ideas concerning this problem?
Upvotes: 2
Views: 450
Reputation: 51421
The problems were recognized on 12-30-2011, so it might be connected with the new build on the server.
If you're using a PHP version provided by your linux distribution, it's very likely that they backported this patch to PHP 5.3 and 5.4, designed to mitigate a possible attack vector that impacts PHP and numerous other languages and libraries.
If this is the case, try dumping a phpinfo()
and look for max_input_vars
. If it's there, you can set it in php.ini to a higher number, as you see fit. If you don't see it, it's likely that you didn't receive that exact patch and the number has been hard-coded by your distribution.
Upvotes: 1