I have like 10 content types in my site but on two of those content types this error returns persistently every time i 'save' and 'preview' my node type.

    * warning: Invalid argument supplied for foreach() in /home/mysite/public_html/sites/all/modules/cck/content.module on line 1112.
    * warning: Invalid argument supplied for foreach() in /home/mysite/public_html/sites/all/modules/cck/content.module on line 1152.
    * warning: Invalid argument supplied for foreach() in /home/mysite/public_html/sites/all/modules/cck/content.module on line 1152.
    * warning: Invalid argument supplied for foreach() in /home/mysite/public_html/sites/all/modules/cck/includes/content.token.inc on line 18.

I don't know what's causing this and how to fix it. Please help. Thank you very much.

Comments

yched’s picture

Status: Active » Postponed (maintainer needs more info)

- What are the fields in your content type ?
- Do the errors persist if you disable all non-cck contrib modules ?

halloffame’s picture

As it turns out all of my content types that has a link field return these errors. I tried disabling Link and it well went fine and when I enabled it again the problem still persist. I was using Link 6.x-2.2 so I figure with the latest version of Link my problem will be solved. I upgraded Link to its latest version but the problem does not seem to go away. If I also leave the link field blank the errors are not showing up anymore. Nonetheless, existence of the errors does not prevent the content to be published/saved.

yched’s picture

Project: Content Construction Kit (CCK) » Link
Version: 6.x-2.0-rc4 » 6.x-2.3
Component: General » Code

Moving this to Link, then.

halloffame’s picture

Btw, this only started to happen when I upgraded to D6.3 and CCK 6.x-2.0-rc4.

Anyone having the same problem? I've looked around and looks like I'm all alone with this.

halloffame’s picture

Well guys I've tried all sort of stuff trying to get rid of these errors to no avail. I tried deleting the link module itself, made a fresh install and created new link fields but the errors still persist. I also did the same for CCK and still nothing... nada... (Grrrrrrrrrrr).

I'm aware of the fact that by doing this I'll risk losing my current fields. (good thing I did backup).

I created a new content type with new link fields thinking that all new link fields will be ok but the errors keep popping up on my face!

halloffame’s picture

I just found out that after doing all those stuff and messed around with my database the errors now only persist when previewing the content, not anymore upon saving it. Still I want to get rid of it so badly.

halloffame’s picture

It is so nice talking to myself. ;)

halloffame’s picture

Status: Closed (fixed) » Postponed (maintainer needs more info)

I can't just sit here and wait for Christmas and help comes. I've been trying to figure this one out for 4 days now to no avail and its so darn frustrating.

Well, following my efforts figuring this one out on my own (being a total newb) I did 2 fresh install of Drupal 6.3 both in my local machine and a webserver. Different database but exact same modules. I'M STILL HAVING THE SAME ERRORS when previewing a node with a link field! So it's happening in 3 sites now.

It started to happen when I upgraded to D6.3 with CCK's both stable and dev versions and Link 2.2, 2.3 and 2.3.1.

I have practically switching all the modules on and off to see if it has something to do with compatibility issue but no matter which-what-how modules and fields are enabled these errors still persist.

You can login here http://.com/ with testuser and 123456 as the pw. Create a 'Test Content with Link' then preview that so you can see the error and check whats going on.

It's either no one has discover this one yet to report the issue or there's really something wrong at my end.

halloffame’s picture

Title: Help! CCK error. » HELP! Link Causing CCK error
Priority: Critical » Normal
Status: Postponed (maintainer needs more info) » Closed (fixed)

I'm closing this thread. I'm opening a new one for a clean and concise post.

Here .

keathmilligan’s picture

I'm having this issue as well. I have a node type that has a link field in it that uses the token module to automatically set the title of the link to the title of the node. The error goes away if I disable the token module.

Jaxen’s picture

I got the same problem! Did some updates and now my CCK Link Module is out of function..............did you find out the cause of this error?

Brutal that Drupal gives the "critical update" message......but after you update everything breaks!?

Status: Postponed (maintainer needs more info) » Closed (fixed)