Hello,

I am currently using webform 7.x-4.10 and webform-rules 7.x-1.6.

When I want the use token in webform like [webform:{component}-value] where component is one of my "Field Key", I got this message in Drupal:

Notice: Undefined index: webform in webform_rules_tokens() (line 213 of /var/www/web/sites/all/modules/webform_rules/webform_rules.module).

Warning: array_keys() expects parameter 1 to be array, null given in webform_rules_tokens() (line 213 of /var/www/web/sites/all/modules/webform_rules/webform_rules.module).

Warning: in_array() expects parameter 2 to be array, null given in webform_rules_tokens() (line 228 of /var/www/web/sites/all/modules/webform_rules/webform_rules.module).

I am not quite sure if it's an issue related to webform, to rules...

After some search around the web, I didn't find much about this... except maybe this post

Anyway, I tried to disable webform-rules module, I didn't got the error in drupal anymore, but tokens doesn't work better... (but just disabling the module is probably not relevant...)

Regards.

PS: form information, I can use token like [submission:values:name] in the email validation...

Comments

fumble created an issue. See original summary.

fumble’s picture

Issue summary: View changes
danchadwick’s picture

Project: Webform » Webform Rules
Version: 7.x-4.10 » 7.x-1.x-dev

Moving to the webform_rules issue queue, which seems to be incompatible with the latest 7.x-4.x branch of webform.

2pha’s picture

I am using the dev version of webform rules with webform 7.x-4.10.
The only issue I have faced is posted HERE
If you post your exported rule here it may help track down the issue.