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

stephen ollman’s picture

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

ambereyes’s picture

Title: Errors » Form not Prefilled with info from Content Profile
Status: Active » Needs review

I 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

ambereyes’s picture

Category: support » bug

change to bug report