I am using the latest version of Drupal. Data can be added and still displays for fields created before the upgrade with 6.1 but not in new fields created with 6.2. After adding and saving nothing is displayed. I tried everything i can think of. I reverted back to 6.1 and it still does not work. i deleted cck and all associated modules completely and resinstalled everything. i ran cron. i cleanded cache. i ran update.php. I wish I could just go back to 6.1 and would be happy with it but now it will not let me even do that. I am stuck. Please help. Many thanks. Kevin.

Comments

pyxio’s picture

Just to offer a step-by-step of my procedure ...

CCK 6.1 was working perfectly before I did...

1. Take site offline through site maintenance admin
2. Delete module folder for CCK 6.1
3. Upload module forlder for CCK 6.2
4. Run update.php
5. Put site back online

Then I tried to go back to work on my new content forms and the data will not appear in the display. But data from the CCK fields I created does still appear. I don't get it :o(

smsearcy’s picture

I had the same issue with fields created after upgrading to 6.x-2.2. Authenticated Users granted edit/view permission to all of the fields, but none of them show up when viewing the node.

When I updated "Display Fields" for the Content Type, changed one of the values from "Default" to "Plain Text", I could see all the fields when viewing the nodes. I changed it back to "Default" and I still see the fields.

It probably doesn't solve the underlying issue, but hope that helps.

yched’s picture

What did you upgrade from ? pure vanilla CCK 6.x-2.1 or some version of -dev between 2.1 and 2.2 ?
Also, did you experience this with a specific field type ? or with any field type you tried ?

karens’s picture

I just ran into a similar situation with Date fields. I created an install from an older version of code and brought it forward to test some updates and my date fields wouldn't show up until I explicitly set them in the 'Display fields' tab. I only had date fields installed, so no idea if other types of fields were affected. The date module made some changes to the formatters, so that could have been a Date issue, but there are similarities here, so maybe there is a connection.

As yched asked, it would help to know what kind of fields you were using.

ceejayoz’s picture

Subscribing.

I get the following in watchdog:

Invalid argument supplied for foreach() in /var/www/premium/html/sites/all/modules/cck/content.module on line 1008.

No record is populated in the content_type_article table in the database, either. Am having this happen in imagefield and normal text widgets.

smsearcy’s picture

I upgraded from CCK 6.x-2.1. The content type that had issues has several text fields and one date field (but none of them were displayed). I had just installed Date 6.x-2.0 yesterday (fresh install). All CCK fields were added after updating to 2.2. Thank you for the response.

yched’s picture

Still no idea what's going on here.
It would probably help if someone seeing experiencing the bug could provide credentials to the site (drupal site and phpmyadmin) using my g.d.o contact form...

@ceejayoz #5 : the line number in the error message you mention does not match with CCK 2.2. Is this really the version you are using ?

ceejayoz’s picture

Yeah, I was on CCK 2.2, but it seems I copied the error after I downgraded (downgraded CCK and still had the issue - it seems the schema cache got corrupted). Clearing the schema cache for content_type_article resolved the issue in 2.1. Haven't tried upping to 2.2 and clearing schema cache yet, but it may be a solution.