Hello,

I have a webform with 100+ fields. I'm submitting values via webform_services 7.x-3.x-dev. When a new submission is inserted I see a weird log message:

TYPE
webform

MESSAGE
POST truncated to 0 input vars. PHP max_input_vars is 1000. Increase max_input_vars.

SEVERITY
error

I've already tried increasing max_input_vars and even max_input_nesting_level on my php.ini (and yes, I've checked the runtime conf w/ phpinfo()) but it doesn't make any difference. The form has 100+ fields but I'm submitting only two values for testing.

Thank you.

Drupal v 7.39
PHP 5.6.13
Debian 3.16.7-ckt11-1+deb8u4

Comments

marco_gambero created an issue. See original summary.

Sagar Ramgade’s picture

It might be related to http://stackoverflow.com/questions/28978977/post-array-getting-truncated..., could you please try this and check?

marco_gambero’s picture

Yes, I've set max_input_var in both /etc/php5/apache2/php.ini and /etc/php5/cli/php.ini. phpinfo() reports /etc/php5/apache2/php.ini as the runtime configuration file.
I still see the error.

marco_gambero’s picture

I've tested it locally with PHP 5.3.29. Still the same weird message.

DanChadwick’s picture

Issue tags: -webform, -max_input_vars, -PHP

Sounds like webform_service is not supplying a form_id in $form_state['input'].

This is code which was introduced to help administrators detect when their PHP max_input_vars has been exceeded. I suggest you open an issue in webform_service.

DanChadwick’s picture

Status: Active » Fixed
marco_gambero’s picture

Thank you. Works like a charm.

I've written two lines of code in webform_service to supply form_id in $form_state['input'].

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

Anonymous’s picture

@marco_gambero
Marco, can you please describe in detail about the two lines that you added to webform_service?