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

mbrowd’s picture

I"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.

quicksketch’s picture

@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?

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

Hm, 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.

drubin’s picture

Similar 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.

mkostrzewa’s picture

It does happen on every webform.

quicksketch’s picture

Status: Postponed (maintainer needs more info) » Active

Thanks guys, I'll give this another shot at reproducing.

DanChadwick’s picture

Issue summary: View changes
Status: Active » Closed (cannot reproduce)

I'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.