Closed (duplicate)
Project:
Content Construction Kit (CCK)
Version:
6.x-1.0-alpha
Component:
content.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2008 at 12:36 UTC
Updated:
2 Jan 2014 at 19:06 UTC
Jump to comment: Most recent
Comments
Comment #1
Frodo Looijaard commentedThis seems not to be a bug in the daily module, but a CCK problem.
Reproduction scenario:
* Start a new Drupal site and visit install.php to create the database
* Activate the Content module of CCK
Now, activating some modules seem to trigger the warning
but once you have seen this error once, it does not seem to happen again.
Modules that trigger this are at least forum, blog and daily. Not all node modules do, though: book, for example, does not.
Frodo
Comment #2
Frodo Looijaard commentedReassigned to CCK, as this is not a daily bug - or if it is, several core modules have the same problem.
Frodo
Comment #3
yched commentedI know at some point there was a problem in daily.module - see my comment in http://drupal.org/node/237585#comment-795435.
I think Karen fixed some issues about this in latest D6 branch. Other than that, let's keep the discussion in http://drupal.org/node/237585
Comment #4
Frodo Looijaard commentedThere are (at least) two separate issues going on here.
The first was a real bug in daily.module. It was fixed in #242995: Invalid argument supplied for foreach(). It had to do with calling node_view without providing a valid node. That is also the bug #237585: Invalid argument supplied for foreach() reported originally.
The second seems to be a bug in CCK. It is triggered by daily.module, but also by several core modules. That is this issue.
I still propose we keep both issues separate, so I un-duplicated this one. If you disagree, feel free to set this one to duplicate again and I won't touch it again.
Frodo
Comment #5
ar-jan commentedThe same error message also appears when adding a new Content Type when CCK is installed:
warning: Invalid argument supplied for foreach() in /home/users/myftp/mysite.com/drupal/sites/all/modules/cck/content.module on line 178.
Edit: I do not use the Daily Module
Comment #6
yched commented@Frodo : thanks for the update - makes things clearer :-)
This leaves us with this thread and http://drupal.org/node/237585 as duplicates. Both issues start out as issues with daily, but the latter holds more info on the purely-CCK aspects, so I think it's best to leave that one open.