Closed (fixed)
Project:
Webform Rules
Version:
7.x-1.5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Feb 2013 at 15:16 UTC
Updated:
5 Mar 2013 at 18:02 UTC
Jump to comment: Most recent
I'm using webform, webform_protected_downloads, webform_phone_number and webform_rules (versions below--all up to date). I just tested a webform I created, that has attached webform_protected_downloads files to it, and when I submit the form as an administrator, I get this error message:
Notice: Undefined index: webform in webform_rules_tokens() (line 213 of /www/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 /www/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 /www/sites/all/modules/webform_rules/webform_rules.module).I did a google search with no luck. Any suggestions? Thanks!
Webform 7.x-3.18
Webform Rules 7.x-1.5
Webform Protected Downloads 7.x-1.0-beta1
Webform Phone Number 7.x-1.11
Comments
Comment #1
cmejo commentedI fixed it; I had a bad token in the webform_protected_downloads email text area field. Watch those tokens!
Comment #3
viewattselevel commentedCan you tell me what you needed to do to the token and how you figured out that was what was breaking it?
Comment #4
cmejo commentedThe tokens need to actually be valid. Make sure your tokens are valid. If they are verified valid and you're still getting this error, let me know.
Comment #5
n8thanael1900 commentedI had inherited many tokens to check... to figure out the invalid token, I placed this code on line 213 inside webform_rules.module FOR TROUBLESHOOTING ONLY