Closed (fixed)
Project:
Webform
Version:
7.x-3.18
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
16 Jan 2013 at 16:19 UTC
Updated:
24 Jun 2013 at 21:20 UTC
Jump to comment: Most recent
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
Comment #1
sidharthapI 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
Comment #2
Anonymous (not verified) commentedI 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.
Comment #3
Anonymous (not verified) commentedI made an issue here:
http://drupal.org/node/1937672
for the "webform component roles" module.
Comment #4
globexplorer commentedI 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.
Comment #5
quicksketchThis 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.
Comment #6
globexplorer commentedThank you quicksketch for your prompt reply!
Comment #8
amnesiac commentedI'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?