Needs review
Project:
Webform Profile
Version:
6.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Jul 2011 at 20:37 UTC
Updated:
18 Aug 2012 at 19:41 UTC
Hi,
I installed the module, but no fields are pre-populated when users use the webform. Also, an error on the webform ui appears reading:
warning: Invalid argument supplied for foreach() in /Modules/webform_profile 2/webform_profile.module on line 663
Any help would be greatly appreciated.
Comments
Comment #1
stephen ollmanHaving the same issue when adding a new webform component.
warning: Invalid argument supplied for foreach() in \sites\all\modules\contrib\webform_profile\webform_profile.module on line 1214.
To get this to work do I just create the 'profile' components and they should then appear as an option in the webform?
Any ideas?
Comment #2
ambereyes commentedI had similar problems with fields not prefilled.
I noticed in function webform_profile_add_data that the test on line 186 never failed. And since it never failed, the node was never loaded.
So I commented out lines 186-189 plus line 192, and now the fields are prefilling.
If this works for you, please create a patch for it.
cheers,
Katrina
Comment #3
ambereyes commentedchange to bug report