Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #2
Sagar Ramgade CreditAttribution: Sagar Ramgade as a volunteer commentedIt might be related to http://stackoverflow.com/questions/28978977/post-array-getting-truncated..., could you please try this and check?
Comment #3
marco_gambero CreditAttribution: marco_gambero commentedYes, 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.
Comment #4
marco_gambero CreditAttribution: marco_gambero commentedI've tested it locally with PHP 5.3.29. Still the same weird message.
Comment #5
DanChadwick CreditAttribution: DanChadwick commentedSounds 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.
Comment #6
DanChadwick CreditAttribution: DanChadwick commentedComment #7
marco_gambero CreditAttribution: marco_gambero commentedThank you. Works like a charm.
I've written two lines of code in webform_service to supply form_id in $form_state['input'].
Comment #9
Anonymous (not verified) CreditAttribution: Anonymous commented@marco_gambero
Marco, can you please describe in detail about the two lines that you added to webform_service?