Closed (duplicate)
Project:
Content Construction Kit (CCK)
Version:
6.x-1.0-alpha
Component:
General
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 May 2008 at 10:05 UTC
Updated:
8 May 2008 at 11:24 UTC
When I created a new content type, i was informed of the following, after saving the new content type:
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 178.
Comments
Comment #1
raveoli commented... And later, when displaying the node created with content type (a link) I was given this:
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 848.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 1096.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 1096.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 1136.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 353.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 1136.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 848.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 1096.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 1096.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 1136.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 353.
warning: Invalid argument supplied for foreach() in /mypath/html/sites/all/modules/cck/content.module on line 1136.
Comment #2
raveoli commentedAha! I found out it was because I had deleted the first content type created, making a new one, leaving two nodes from the previous content type. Anyhow, I have now reported it. As a non programmer I know s**t about PHP;-)
Keep up the good work guys!
Comment #3
wentingm commentedHi,
I got the same error message. Can I ask what steps have you done to remove the warning messages?
Wenting
Comment #4
locavore commentedPlease share with us how you fixed the error codes, I get the same error message and can not get the messages to go away.
Thanks
Comment #5
yched commentedhttp://drupal.org/node/237585
Comment #6
locavore commentedAfter reading here that the issue was caused by a node that was probably created by a deleted content type, using phpMyAdmin I went into nodes, found three there that I had created with a now deleted content type and deleted them.
That fixed the issue for me.