I am having a problem with "Warning: Invalid argument supplied for foreach() in element_children()..."

My searching shows me that this is not an uncommon error but one that appears in many diverse and interesting ways, tho seeming to be centered around Views & CTools mostly...

I've looked at http://drupal.org/node/1260000 for this issue with FullCalendar, but that's closed and a year old, so I'm opening this as a new issue. Sorry if I have the wrong protocol, or if I'm pointing in the wrong direction.

I am running:

Core 7.19
FullCalendar 7.x-2.0
FullCalendar plugin 1.5.4
Views 7.x-3.5
Chaos tool suite (ctools) 7.x-1.2

I have found after significant trial and error that I get the message (this and other nearby line numbers):

"Warning: Invalid argument supplied for foreach() in element_children() (line6370 of/ xxxxxxx/htdocs/orange_district/includes/common.inc)."

but I only get it if I try to use a Google Calendar overlay for holidays in addition to the events that are populating my calendar. Here's the Google Calendar I'm using:

https://www.google.com/calendar/feeds/en.usa%23holiday%40group.v.calenda...

If I remove the Google Calendar field, no warnings, and my calendar renders. If I put the Google Calendar field back in, pages of errors, but it eventually renders and does overlay the Google Calendar content.

Sorry if I'm barking up the wrong tree. As you see from my versions, I'm as current on everything as I can be (except for dev/beta releases).

-Joel

Comments

Another data point that I neglected to include...

The view was working fine with no warning thrown under an older version of PHP, but started throwing warnings when I moved to my ISP's recommended version of PHP in early December. I am currently running PHP 5.4.11.

did you ever resolve this?

No, never solved it...my workaround was "good enough" and I had other metaphorical fish to fry, so I moved on...