Layoutys in 3.0

omo66 wrote on Tuesday, March 24, 2009:

I am testing the DEMO CVS to upgrade later.
I noticed that Layouts SAVE did not work after adjusting the drop menu for UOR.
Jason any ideas?
Thanks. 

bradymiller wrote on Tuesday, March 24, 2009:

hey,

I think it has to do with too many variables in POST from looking at your php log:
http://opensourceemr.com:2089/log/logPhp.txt

No clear setting in php.ini script, logks like related to some "suhosin" thing which limits variables for security purposes.  From an installation perspective this could create some headaches; is there a way to re-work that page to decrease number of post variables?

-brady

bradymiller wrote on Tuesday, March 24, 2009:

hey,

Turns out suhosin is a php security extension (add-on), and one of it’s functions is limiting size and number of post variables.  It appears that mandriva 2008 is installing this extension with php which is why it’s in the demo.  The question is if other OS’s (especially ubuntu and windows) also include “suhosin” php extension with their out of box php?

-brady

drbowen wrote on Tuesday, March 24, 2009:

I have been running FreeBSD with the Suhosin on my demo.  I have not yet upgraded to 3.0.1 on the demo but so far I haven’t had any problems with 2.9.0.

Sam Bowen, MD

bradymiller wrote on Tuesday, March 24, 2009:

hey,

Sam, you’ll likely experience this in your system with new version when using the admin->layout scripts (i don’t think these were in 2.9.0).

Looks like possible fix may be inserting something like this in php.ini like (not tested, just guessing) (answer may be OS dependent, since suhosin config script can be in several places):
[suhosin]
suhosin.post.max_vars = 2000 (default is 200 variables which the layout scripts easily surmounts)

This is going to be a painful issue.  Especially for users whom are using a host which won’t allow modifcation of suhosin settings, which is going to be common since suhosin is used by host to harden php security.  Long-term, could decrease the amount of post variable on developer side by editing single rows at a time or can ajaxify this stuff.

Rod, this bug is going to be compounded by your default state pull down entry.  Because of this, I’d seriously consider making the default state demographic box an empty text box and not a pull down with just California (or i suppose you could put all states).  Many more users then will be happy with the out of box settings and won’t need to use layouts script right away (and if they do, we can help this small number with custom suhosin fixes as needed).

-Brady

anojgoel wrote on Thursday, March 26, 2009:

i do not think, all the possible combinations in layouts including the states should be built in.

easier would be have an add button pointing to layout maintenance screen in a separate window next to states or any other field where drop down option is present to edit the field list as needed.

anoj

cfapress wrote on Friday, March 27, 2009:

Brady,  Thank you very much for sniffing out that problem. I don’t think would have ever guessed a limitation with POST variables in Apache.

Omar,  Have you tried Brady’s solution? Did it work for you?

Anoj,  When you edit the layouts, in v3.0, you can choose what list is associated with a list box. The admin tool has changed with the new release.

Everyone Else,  The layout tool needs enhancements. I’ve suggested we design it so that it looks more like the custom form creation sites like:

http://www.phpform.org
http://wufoo.com

Jason

ideaman911 wrote on Wednesday, April 08, 2009:

Guys;

My 2 cents, based on past practice, the first thing I did was change the Provider UOR from Required to Optional, and that had no problem with a save in Windows XP.  So I don’t think the limit is a problem in XP.  Hope that helps.

But as I noted in the Bugs, we lost the ability to move individual fields between, say, Who and Choices.  Precedence of those groups can be done with the Move buttons, but only as a group.

Joe Holzer    Idea Man
http://www.holzerent.com

cfapress wrote on Wednesday, April 08, 2009:

Here’s a link to the thread discussing how to re-order fields within a group in the Layout tool:

http://sourceforge.net/forum/forum.php?thread_id=3184376&forum_id=202506

Jason