This forum is no longer open and is for reading/searching only.
Please use our new MachForm Community Forum instead.
MachForm Community Forums » MachForm 3
Drop Down problems with large amount of items.
Started 11 years ago by Clint | 4 posts |
-
Fantastic piece of software!
I'm having a small issue with putting a large amount of items in a drop down. I'm trying to insert 417 items but it only shows 238. I've checked in the database and it only saves the first 238 rows. If I manually add a row in the database it will show up on the form.
I found some old posts about this limitation in version 2 but I'm using version 3.4. I've looked around in the code and database and can't find anything obvious that is causing this. Any ideas?
Thanks!
Posted 11 years ago # -
Hi Clint -- can you let me know what is your exact PHP version? We noticed this problem to be happened on some specific servers.
We can't figure it out yet because we weren't able to reproduce it on our test servers.If you have more detailed information regarding your systems, this would be very helpful.
Are you using MAMP, XAMPP or WAMP or any other?Also, if possible, please send me the result of your phpinfo.
You can mail it to: customer.service [at] appnitro.comMachForm Founder
Posted 11 years ago # -
Email sent with more details.
Posted 11 years ago # -
Problem solved.
Just a note for those having the same issues, we found out that PHP 5.3.x introduced a new setting called "max_input_vars" which set a limit on this.
The solution, try to edit your init.php file and add this line of code:
ini_set("max_input_vars",3000);
if that doesn't work, you need to edit your PHP configuration file (php.ini) directly and set this value:
max_input_vars = 3000
Also (based on the information provided by Clint) -- if your host implemented the suhosin extension, you will also need to increase the following settings:
suhosin.get.max_vars suhosin.post.max_vars suhosin.request.max_vars
MachForm Founder
Posted 11 years ago #
Reply
You must log in to post.