just update to the lastest build of Date and i got this in my view preview and when i used that view in a panel:

warning: Invalid argument supplied for foreach() in sitename/sites/all/modules/date/date/date.module on line 696.

Comments

choster’s picture

Title: Warning in Panel and View of cck » Invalid argument warning on line 696

I do not use panels, and am also seeing this error whenever a node with a date field is viewed, edited, or appears in a view. It is still present in the Nov 21 snapshot.

KarenS’s picture

Status: Active » Fixed

That line number does not match what is in the present snapshot, the new line number is 699, below some code to catch this error. So you must have an older version of the module before the error was fixed.

It was fixed on Nov 22, the timestamp of the latest version looks like:

// $Id: date.module,v 1.61.2.4.2.33 2008/11/22 14:28:26 karens Exp $

That change did not make it into the last release, I need to re-roll.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.