When I visit the mollom settings page, the following warning is posted to watchdog:

Warning: Invalid argument supplied for foreach() in node_mollom_form_info() (line 2576 of /xxx/xxx/xxx/modules/mollom/mollom.module).

Comments

sun’s picture

Category: bug » support
Status: Active » Fixed

Offending line: http://drupalcode.org/project/mollom.git/blob/refs/heads/6.x-1.x:/mollom...

That most likely means you have a stale/orphan node type record in your database, which CCK does not know about.

I tested this manually, and cannot reproduce it. CCK's content type information always contains a 'field' key.

Status: Fixed » Closed (fixed)

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

PixelClever’s picture

Title: Warning in watchdog » Error when content type no longer exists
Status: Closed (fixed) » Active

I am reopening this because I found that this bug was set off on my installation. Conditions: protection was turned on for forum posts and then when the forum module was disabled the error appeared. There should be checks on the validity of the array before running a foreach on it.

sun’s picture

Status: Active » Closed (duplicate)