If you enable the daily module after installing the CCK module, you get a warning about an invalid for-each.
After this, everything seems to work without any problems, though.

Comments

Frodo Looijaard’s picture

This 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

Invalid argument supplied for foreach() in [...]/drupal/modules/cck/content.module on line 178.

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

Frodo Looijaard’s picture

Project: Daily » Content Construction Kit (CCK)
Version: 6.x-1.0 » 6.x-1.0-alpha
Component: Code » content.module
Assigned: Frodo Looijaard » Unassigned

Reassigned to CCK, as this is not a daily bug - or if it is, several core modules have the same problem.
  Frodo

yched’s picture

Status: Active » Closed (duplicate)

I 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

Frodo Looijaard’s picture

Status: Closed (duplicate) » Active

There 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

ar-jan’s picture

Status: Closed (duplicate) » Active

The 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

yched’s picture

Status: Active » Closed (duplicate)

@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.

Status: Active » Closed (duplicate)