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

raveoli’s picture

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

raveoli’s picture

Priority: Normal » Minor

Aha! 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!

wentingm’s picture

Hi,
I got the same error message. Can I ask what steps have you done to remove the warning messages?

Wenting

locavore’s picture

Please 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

yched’s picture

Status: Active » Closed (duplicate)
locavore’s picture

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