The module itself works great. I run into some problems when adding CCK-fields to the node. I get the following error:

warning: Invalid argument supplied for foreach() in /home/wheelman/public_html/sites/all/modules/cck/content.module on line 1022.

Any ideas on how to solve this?

CommentFileSizeAuthor
#3 node-ct_gearth.tpl_.php_.txt7.44 KBpomgod

Comments

btomic’s picture

Hi
What sort of CCK you have used. I have tested with number, and date fields and it workes. According error massage you have, it looks like that problem is in CCK type you have used.

pomgod’s picture

I've used several types. Currently it gives problems with the "link" CCK-field. The data is saved though and the view is alright. So not sure what's happening. I don't have the same problem with the same field in a different node type. I'm using CCK 6.x-2.9.

pomgod’s picture

Status: Active » Fixed
StatusFileSize
new7.44 KB

Got the problem solved. Not sure what did the trick though. I've attached a new tpl file where it works. I've also made a small change so that it now doesn't use the file attached field but the CCK-filefield with the name "kml". Doesn't cause troubles anymore

Status: Fixed » Closed (fixed)

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