Hello,

I am on D6.20 and CCK 6.x-2.9.

I originally posted this problem in this thread: [#1119508], as a general support request, but after completely rebuilding my application from scratch on a brand new install, and with only one user (user 1) I am still getting the following errors and behaviors:

Created custom content type called "flyer". It contains 4 fields: 3 plain text fields and a computed field with automatic node titles on. Nothing fancy.

As User 1, I create a flyer node and immediately get these errors:

* warning: Invalid argument supplied for foreach() in /sites/all/modules/cck/content.module on line 1284.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/cck/content.module on line 1244.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/cck/content.module on line 1284.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/cck/content.module on line 1284.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/cck/includes/content.token.inc on line 42.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/cck/modules/fieldgroup/fieldgroup.module on line 611.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/cck/modules/fieldgroup/fieldgroup.module on line 626.
* warning: Invalid argument supplied for foreach() in /sites/all/modules/cck/content.module on line 1284.

Along with this, the standard message you get when creating a node, for example "Flyer has been created" only appears as the first attached image shows.

In my content listing, (content management>content>list), the new node is listed without a title, without a node type and even though the node was created as user 1, shows that it was created by the anonymous user, see 2nd attached image.

These messages do not occur when any other content type is created.

I've never seen such strange behavior before and would appreciate any help in trying to determine what the cause could be. I've tried checking for stray nodes from deleted content types as one other thread suggested, but that didn't help, and isn't even a factor in this scenario as there hasn't been any deleted content types. The errors seem to be pointing to cck, so thought I'd post the support request/bug report here since I was able to recreate the problem on a brand new install.

Any suggestions would be greatly appreciated.

CommentFileSizeAuthor
content.PNG3.98 KBfmesco
created.PNG970 bytesfmesco
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

johnnymugs’s picture

I'm getting similar errors in a D5 to 6 upgrade. Subscribing.

johnnymugs’s picture

Hey fmesco does this patch fix your problem? http://drupal.org/node/716878 It fixes my problem but I'm not sure if it's the best way to handle this situation.

xurizaemon’s picture

Category: Bug report » Support request
Issue summary: View changes
Status: Active » Fixed

Look for nodes which have no type set, in which case content_types('') returns an array of content types, and $type['fields'] is unlikely to be set ... unless in turn you have a content type of type 'fields' :)

Duplicate of eleventy-squillion other CCK issues.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.