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

troutdun’s picture

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.

bherring’s picture

did you ever resolve this?

troutdun’s picture

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

carlodimartino’s picture

Yes. I get this when using PHP 5.4 or 5.5 all works fine again going back to 5.3
Only noticed it when moving to another server that defaulted to PHP 5.5