Closed (fixed)
Project:
Content Construction Kit (CCK)
Version:
6.x-2.0-rc9
Component:
General
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Oct 2008 at 23:01 UTC
Updated:
10 Dec 2009 at 08:57 UTC
Hi there,
I updated to the dev version and then rc9 and am getting the following warning messages:
# warning: Invalid argument supplied for foreach() in /home/sustain/public_html/sites/all/modules/cck/content.module on line 1157.
# warning: Invalid argument supplied for foreach() in /home/sustain/public_html/sites/all/modules/cck/content.module on line 1197.
# warning: Invalid argument supplied for foreach() in /home/sustain/public_html/modules/taxonomy/taxonomy.module on line 1189.
(keeps repeating)
Both versions (dev and rc9) were giving me the problem.
Thanks for your help.
Comments
Comment #1
marchanda commentedHi there:
I'm not sure now if it's an issue with CCK. I had a few unpublished "ghost posts" in my view and I have no idea how they got there since they were posted in 1969 by Anonymous (Anonymous doesn't have create privileges). As a bandaid fix, I filtered out user posts by Anonymous which got rid of the warnings.
The post data: Posted Wed, 12/31/1969 by Anonymous
Comment #2
karens commentedIt sounds like you have corrupt data. All these errors are coming from places where the code expects content type information that is missing. Your ghost posts could be orphans from a deleted or bad content type. Somehow your content type data is not correct. Scan through your node_type table for type names that are not valid and scan through your node table for nodes with type names that are not valid. If you have a backup where things were working right you may have to go back to that.
Anyhow, fixing this is outside the scope of CCK and it's not a CCK issue.
Comment #3
eikes commented---deleted---
i had been referencing NULL nodes...
Comment #4
eikes commentedi'll close it again, as it was my programming error and not a cck problem
Comment #5
david-en8 commentedTake a look at http://drupal.org/node/295235