Invalid argument supplied for foreach() occurs in _webform_components_tree_flatten() in webform.module.

Comments

pdrake’s picture

Patch for 7.x-4.x.

pdrake’s picture

Patch for 6.x-3.x.

pdrake’s picture

Status: Active » Needs review
quicksketch’s picture

Can you describe how this problem occurs? I'm not experiencing it with the stock installation of either 3.x or 4.x. I'm guessing the problem is that it's being called with a NULL value to begin with, which shouldn't be happening.

pdrake’s picture

We are running webform_profile in addition to webform (not sure if that contributes) and I am seeing this during node access rebuild.

oriol_e9g’s picture

I'm experimenting the same problem with _webform_components_tree_flatten: Invalid argument supplied for foreach() a xxx/drupal/sites/all/modules/webform/webform.module a la línia 3267

I'm using:

Webform 6.x-3.18
Form builder 6.x-1.1
Options element 6.x-1.7
jQuery UI 6.x-1.5

fenstrat’s picture

I'm not experiencing this issue either. @oriol_e9g are you using webform_profile as @pdrake was, and does the patch in #2 help?

quicksketch’s picture

Status: Needs review » Postponed (maintainer needs more info)

We need instructions on how to reproduce this issue. It doesn't seem to be apparent with stock installations of Webform/Options Element/Form Builder.

oriol_e9g’s picture

I'm not using webform_profile, I need more research to find the bug or the steps to reproduce the bug:/

danchadwick’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

I'm closing this. It's been 2 years with no reproduction instructions. I would think that if this happened in the course of normal operation, we'd be hearing more complaints by now. Please re-open if you can reproduce it in the current 7.x-4.x-dev (which is currently beteen rc3 and the upcoming rc4).