Hi

I changed access rights and display of the calendar block and now a error message is displayed :

warning: Invalid argument supplied for foreach() in /mywebsite/modules/calendar/calendar.module on line 1204.

I spend a lot of time looking for a solution but i don't know a lot of things about programmation...
This error message is only displayed with the Deco theme.

Does anyone can help me ?

Comments

akasman’s picture

I have come across the similar error when enabling the Tagadelic Views module with Calendar enabled

There's a workaround that's described here:

http://drupal.org/node/144404

Does this help in your case? Could this fix be included in the calendar module?

Thanks.

sonicthoughts’s picture

same issue, but get error
Invalid argument supplied for foreach() in /home/jicnhol7/public_html/drupal/includes/tablesort.inc on line 149. also theme.in

I can't seem to figure this out - the view args are set.

karens’s picture

Status: Active » Closed (duplicate)

I think this is the same as http://drupal.org/node/212040.

VValdo’s picture

Title: Error : Invalid argument supplied for foreach() » Error : Invalid argument supplied for foreach() -- is patch applied?

Was the patch in http://drupal.org/node/212040 actually applied to the latest 1.x version? I'm using Calendar 5.x-1.7 and the patch is NOT there. I just added it manually however.

W