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.
When a conditional is set and the form is submitted the following notices appear:
Notice: Undefined index: extra in _webform_client_form_rule_check() (line 2299 of /var/www/drupal-training/docroot/profiles/drupal_training/modules/contrib/webform/webform.module).
Notice: Undefined index: extra in _webform_client_form_rule_check() (line 2304 of /var/www/drupal-training/docroot/profiles/drupal_training/modules/contrib/webform/webform.module).
Notice: Undefined index: page_num in _webform_client_form_rule_check() (line 2311 of /var/www/drupal-training/docroot/profiles/drupal_training/modules/contrib/webform/webform.module).
Notice: Undefined index: pid in _webform_client_form_rule_check() (line 2322 of /var/www/drupal-training/docroot/profiles/drupal_training/modules/contrib/webform/webform.module).
Notice: Undefined index: cid in _webform_client_form_rule_check() (line 2329 of /var/www/drupal-training/docroot/profiles/drupal_training/modules/contrib/webform/webform.module
This also happended in Alpha8 version.
Comments
Comment #1
mbrowd CreditAttribution: mbrowd commentedI"m seeing a similar notice.
The conditional is set to show a field on page 2 of the form. When navigating to that page the following notice appears.
Notice: Undefined index: submitted in webform_client_form_validate() (line 2555 of ../sites/all/modules/webform/webform.module).
Otherwise the form seems to be working fine.
Comment #2
quicksketch@mkostrzewa: Did you run update.php after upgrading? We added a new "extra" column to the webform_emails table in #687606: Add conditional email sending feature. That error would be caused if the appropriate column didn't exist in the database table.
@mbrowd: Seems like a separate issue. Could you open a new issue and describe how to reproduce the problem from scratch?
Comment #3
quicksketchHm, actually the error lines mentioned by the original poster all point to missing values in the $component variable, not an $email variable, so I don't think this is related to the recent addition of the "extra" column.
From the looks of things, it seems like there's a component in your form that might not be a legitimate component. Are you doing things like injecting fake components into the $node->webform['components'] array?
Does this problem happen on every Webform? Or just one particular form? I'll need instructions on how to reproduce this problem in order to fix it.
Comment #4
drubin CreditAttribution: drubin commentedSimilar to @mbrowd. Fresh install of Surveyor. Created a multipage form with a simple same page conditional on second page hide/show markup dependent on Select options. Top of second page shows:
Notice: Undefined index: submitted in webform_client_form_validate() (line 2555 of .../sites/all/modules/contrib/webform/webform.module).
Same in alpha8 version
ETA: I am only seeing this notice on pages with same page conditionals.
Comment #5
mkostrzewa CreditAttribution: mkostrzewa commentedIt does happen on every webform.
Comment #6
quicksketchThanks guys, I'll give this another shot at reproducing.
Comment #7
DanChadwick CreditAttribution: DanChadwick commentedI'm going to close this lacking further information for reproducing it. I am assuming this was an issue in updating or in an early alpha which no longer exists. Please re-open if you can reproduce this in the latest 7.x-4.x-dev.