We are using conditionals to switch between fieldsets for seperate locales. However, one global field turned out to not be necessary anymore, so we had deleted it. We had forgotten that there was still a conditional using this field, and upon deleting it we were greeted with the following error messages:

  • Notice: Undefined index: rules in webform_conditional_prepare_javascript() (line 906 of /.../public_html/sites/all/modules/webform/includes/webform.conditionals.inc).
  • Warning: Invalid argument supplied for foreach() in webform_conditional_prepare_javascript() (line 906 of /.../public_html/sites/all/modules/webform/includes/webform.conditionals.inc).
  • Notice: Undefined index: rules in _webform_client_form_rule_check() (line 2615 of /.../public_html/sites/all/modules/webform/webform.module).
  • Warning: Invalid argument supplied for foreach() in _webform_client_form_rule_check() (line 2615 of /.../public_html/sites/all/modules/webform/webform.module).dule).

After some research, we've found out this is most likely due to remnants in the database. What can we do to safely remove these error messages?

Thanks in advance!

Comments

DanChadwick’s picture

Assigned: doornbos » Unassigned
Category: Support request » Bug report
Status: Active » Postponed (maintainer needs more info)
Issue tags: -notices, -error, -bug

Are you able to delete the conditional that uses the deleted component, or edit the rule to not use the deleted component?

Was the deleted component the source of the conditional (i.e. tested in some way) or target (i.e. shown or hidden)? If it was the source, were there other source fields (joined with an AND or OR)?

Judicious deletion from the webform_conditional and webform_conditional_rules should solve the problem, but it is a bug that this happened.

DanChadwick’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

No Steps To Reproduce.