I've built a multistep webform with page breaks component and several fieldset components on each page/step. Everything is working fine, except that I'm getting the following warnings for each fieldset component, that is NOT on the current rendered page/step, which is defined by the Page Break component:

Warning: Invalid argument supplied for foreach() in element_children() (line 6370 of /home/somesite/public_html/includes/common.inc).

Btw. the error appears in the frontend (not in the backend e.g. when adding a fieldset component).

Does anybody have the same problem/warnings? What could be wrong with the fieldset component rendering?

Comments

sidharthap’s picture

I tried to recreate this issue in my local but no luck. I could not replicate it. Could you post some more steps to recreate it.
here is some more info related to it. http://drupal.org/node/1086990

Anonymous’s picture

I seem to be getting this same message error message with fieldgroups on a multipage form. Pretty basic install. I had only installed Webform and "Webform Component Roles". If I disable the "Webform Component Roles" module, the errors go away.

Anonymous’s picture

I made an issue here:

http://drupal.org/node/1937672

for the "webform component roles" module.

globexplorer’s picture

I can confirm the issue with webform 7.x-3.18 and 7.x-3.19.
I only have Webform installed.

If I would have had 3 Fieldsets, then I would get 3 Errors on the page_break.

quicksketch’s picture

Category: bug » support
Priority: Major » Normal
Status: Active » Fixed

This has been fixed by Webform Component Rules, which @mikegoodwin pointed at in #3: #1937672: Invalid argument supplied for foreach() in element_children() when using Page Break and Fieldset components together.

globexplorer’s picture

Thank you quicksketch for your prompt reply!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

amnesiac’s picture

I've the same error, but I haven't the webform component roles in my project.
I'm using Drupal core 7.52 and Webform 7.x-3.27.
Any suggestion?