Unfortunately, kicks in my installations after the update of form Builder 6.x-0.9-> to: 6.x-1.0 from the 2012-03-08 of following errors on:
warning: Invalid argument supplied for foreach() in /var/www/xxx/sites/all/modules/webform/includes/webform.components.inc on line 500.
Is there a tip to the problem?

Comments

quicksketch’s picture

Did you make sure you were also running the latest version of Webform? Both modules should be updated at the same time. On which pages do you see this error (i.e. editing a webform, viewing, submitting, etc.)?

efarg’s picture

StatusFileSize
new62.9 KB

We installed:

  • webform 6.x-3.17 from 07.03.12
  • form-bulider 6.x-1.0 from 08.03.12
  • options_element 6.x-1.7 from 17.03.12
  • jquery_ui 6.x-1.5 from 17.06.11

The error appears in the edit mode of the fields, see snapshot in the attachment.
(We installed the applications to the test also in a "fresh" Drupalwebsite; the error also appears in this.)

atilla’s picture

I get the same error.

BTW great module, but needs to get stable.

rrpg’s picture

I get the same error on D7.12. I entered a few fields then after saving recieved the following error:

•Warning: Invalid argument supplied for foreach() in form_builder_webform_form_builder_load() (line 283 of /var/www/clients/client3/web1/web/sites/all/modules/form_builder/modules/webform/form_builder_webform.module).
•Warning: Invalid argument supplied for foreach() in form_builder_webform_form_builder_load() (line 283 of /var/www/clients/client3/web1/web/sites/all/modules/form_builder/modules/webform/fo

Any thoughts?

quicksketch’s picture

Status: Active » Postponed (maintainer needs more info)

There is a similar but different issue over in #1479330: Invalid argument supplied for foreach() in element_children() when Hidden components are used. I haven't been able to reproduce this particular error. Steps to cause the problem from a fresh install would be appreciated.

monsoon’s picture

StatusFileSize
new57.52 KB

Same error here for D7.

I installed fresh D7 core and enabled modules one by one based on dependency, and tried to be careful.
When tried to create WebForm in add content section. I got similar error.
Please see attachment.

Warning: Invalid argument supplied for foreach() in form_builder_webform_form_builder_load() (line 283 of /home/polisp/public_html/sites/all/modules/form_builder/modules/webform/form_builder_webform.module).
Warning: Invalid argument supplied for foreach() in form_builder_webform_form_builder_load() (line 283 of /home/polisp/public_html/sites/all/modules/form_builder/modules/webform/form_builder_webform.module).

quicksketch’s picture

It looks like you're using Webform Alternate UI, which is where this problem is coming from. The normal Form Builder Webform Integration does not need this module, and it wouldn't cause this error upon content creation.

SebCorbin’s picture

quicksketch’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

Closing. Seems like this is split between the issue @SebCorbin mentioned (which is fixed) and using Webform Alt UI, which is a separate module.