Total variable length issue

adop 17 May, 2012
Hi GreyHead,

I'm trying to replicate the structure of events represented in the attachment. This works well when run locally on the development machine.However when I try to set it up online I am not allowed to save it as it is and some actions, the innermost, are dropped. When I check my log files I find a long list of messages like:

ALERT - configured request variable total name length limit exceeded - dropped variable '_form_actions_events_map[myform][events][submit][actions][cfaction_check_token_27][events][cfactionevent_check_token_27_success][actions][cfaction_auto_serverside_validation_29][events][cfactionevent_auto_serverside_validation_29_success][actions][cfaction_db_save_59]'

This is suhosin complaining.
To fix it I tried to increase the variable length in suhosin.ini:
suhosin.get.max_name_length = 1024
suhosin.post.max_name_length = 1024
suhosin.request.max_varname_length = 1024

However despite several increases in steps even 1024 does not seem enough.
When I debug locally I cannot see any variable of such length requiring 1024 length.
I have seen other posts regarding suhosin but all related to the number of variables, not the length. In my case I have already increased these limits to:
suhosin.post.max_vars=2000
suhosin.get.max_vars=2000
suhosin.request.max_vars=2000

On the basis of your experience what is the standard length to allow for? Does the length keep increasing with the number of nested events?
Any other comment on the way to resolving this issue is appreciated.

Regards,
adop
adop 17 May, 2012
I have solved the issue above by taking out the Check Token On Success events and putting them below as subsequent actions as explained in this tutorial http://greyhead.net/how-to-docs/cf-v4-basics-2. In this way the number of nested levels is reduced and length var in suhosin.ini is back to 64.

Regards,
adop
GreyHead 17 May, 2012
Hi adop,

I'm not sure what units suhosin uses. The dropped string is 269 characters long which suggests the limit is maybe 255 or 256 characters. In UTF-8 at 4 bytes per character that might break the 1024 limit (though I don't think UTF-8 always uses 4 bytes).

Bob
This topic is locked and no more replies can be posted.