Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
5.x-1.0-beta
Component:
General
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Dec 2006 at 11:18 UTC
Updated:
30 Dec 2006 at 11:30 UTC
Getting these errors on the home page:
# warning: Invalid argument supplied for foreach() in /var/www-dev/drupal/htdocs/modules/cck/date.module on line 85.
# warning: Invalid argument supplied for foreach() in /var/www-dev/drupal/htdocs/modules/cck/content.module on line 878.
I looked at the offending code:
function date_field($op, $node, &$field, &$node_field, $teaser, $page) {
switch ($op) {
case 'view':
foreach ($items as $delta => $item) {
[...]
Now, I know nothing about CCK, but I think this is invalid PHP on its face. You're trying iterate $items, but I don't see how it could have a value. It's (1) not passed it, (2) not created in the function above where it's referenced, and (3) not referenced as "global".
Comments
Comment #1
deane commentedForget it -- this isn't in the dev release. Must have been fixed already.
Comment #2
(not verified) commented