Download & Extend

Invalid argument supplied for foreach() in element_children() when using Page Break and Fieldset components together

Project:Webform
Version:7.x-3.18
Component:Code
Category:bug report
Priority:major
Assigned:Unassigned
Status:active

Issue Summary

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

#1

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

#2

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.

#3

I made an issue here:

http://drupal.org/node/1937672

for the "webform component roles" module.

nobody click here