When I'm trying to enter comment, instead of preview I'm getting
Invalid argument supplied for foreach() in sites\all\modules\fileframework\contrib\cck\file_cck.module on line 93.
Invalid argument supplied for foreach() in sites\all\modules\cck\content.module on line 1278.

Any suggestions ?
Thanks.

Comments

Ether’s picture

Title: Error trying Previre comment » Error trying Preview comment
miglius’s picture

Status: Active » Postponed (maintainer needs more info)

From the error it looks like you're using cck node type without any cck fields configured? Is this right? If yes, maybe it's better to use blog or story content type instead?

miglius’s picture

Issue tags: +file_cck
Ether’s picture

I'm not drupal expert, just trying to use it for my site.
Independend what content type I'm using (page, story, image) I'm getting these errors. No cck field added to these content types. What I did is have removed (and disabled in module list) Upload module to avoid dublication with File framework. Could be this the reason ?

Ether’s picture

UPDATE.
When I'm trying to preview comment as user (not guest) I'm losing all CSS formating on the page.

Ether’s picture

Problem solved by disabling Embed and Attachments modules from File Framework.

fastballweb’s picture

Title: Error trying Preview comment » CCK error in comment preview
Status: Postponed (maintainer needs more info) » Active

I'm getting a similar error, although my line number is different. (Different version of CCK a year later, I imagine?)

The farthest I can get in terms of troubleshooting is that CCK's _content_field_invoke_default() is being run without a node parameter passed in. I am not sure why CCK code would be run while previewing a comment, and I'm not aware of any connection between CCK and comments on my site.

Miglius, you wrote: "From the error it looks like you're using cck node type without any cck fields configured? Is this right? If yes, maybe it's better to use blog or story content type instead?"

I have no idea what you're talking about--I don't want File Framework to do anything with comments, not sure what that has to do with node types. My error is also solved by disabling the Attachments module, but I would like to use it for nodes, so that's not a real solution.

Is this fixed in dev by chance?

miglius’s picture

I cannot troubleshoot the issue unless I can replicate it. So please post as much information as possible. Modules versions, configuration description in details, exact error messages, etc.

miglius’s picture

Status: Active » Fixed

I was able to replicate it. Fixed.

Status: Fixed » Closed (fixed)

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

jockox3’s picture

I am getting this error too - where can I get the fix, please?

All the best, Jock