Re: lbv forms

bato001 wrote on Wednesday, May 20, 2015:

Hi. I am creating a rather long LBV form and everything was going fine until last night.

I created a new group, and the label and data columns are now resetting to 0 or 1 for label, and 0 for the data column upon saving. This happens in just the new group. Is the form just too long or is it an error in my database?

wizard353 wrote on Wednesday, May 20, 2015:

There is a limit to the number of fields you can put into a LBV form if you use the recommended max_input_vars value of 3,000 in the PHP configuration portion of OpenEMR. If you set max_input_vars to 6,000 or 10,000, you can make much larger LBV forms. See:

Double-click C:/xampp/xampp-control, then click 'stop' for apache
Click 'Config' button for Apache and select the 'PHP (php.ini)'
Search for 'max_input_vars', uncomment it (remove the semicolon), 
and set it to 6000 ('max_input_vars = 6000').
Save and close the file
On xampp-control click 'start' for apache 

Dave

bato001 wrote on Wednesday, May 20, 2015:

Thank you for the excellent information. Unfortunately for me I am running Ubuntu instead of windows on my server. Does anyone know how to reset this on in Apache running on Ubuntu?

yehster wrote on Wednesday, May 20, 2015:

On Ubuntu, the setting can be changed by editing the php ini
/etc/php5/apache2/php.ini

http://php.net/manual/en/info.configuration.php#ini.max-input-vars
There is likely a line in that file which looks like this:

; max_input_vars = 1000

Remove the semicolon (a comment marker) if present and change the number.

restart apache or reboot to force the change to be picked up.

bato001 wrote on Wednesday, May 20, 2015:

Thankyou!!! You guys are the best!!!