Closed (duplicate)
Project:
Mollom
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Sep 2011 at 10:54 UTC
Updated:
11 May 2012 at 17:28 UTC
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
Comment #1
sunOffending 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.
Comment #3
PixelClever commentedI 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.
Comment #4
sunMarking as duplicate of #804466: Orphan forms of other modules cause errors on administration page