Hello, I upgraded from 4.7 to 5.7 and used cck before for creating customized content types and fields.
Since I upgraded, my customized fields don't show anymore on the node page. Everything is in the DB but they don't show.
I updated one of my custom content type that was created before upgrade, I filled all the fields and it worked.
So perhaps there is a problem in the DB.

I had an other problem that I could solve. In fact the table (node_activitylog) of my custom content type "activitylog" did not change its name during the upgrade, so I had to rename the table manually to content_type_activitylog.

What can be the problem with my not showing custom fields?

Comments

daja’s picture

With fields not showing I mean field's content not showing. The fields are there but are empty.

emackn’s picture

Did you figure anything out? I'm having the exact same problem. The data is in the content_field_body table but does not get displayed on the edit page. I followed the CCK upgrade instructions precisely and still have issues.

emackn’s picture

My upgrade started with Drupal 4.7.2. Upgraded to 4.7.11 then on to 5.7. The move to 5 was with a default theme and all modules turned off as recommended by the CCK upgrade thread.

Here's what worked for me.. After trying every which way I could think of, it came down to resetting the 'content_schema_version' variable with the devel module (or via sql) and re-running the content updates via update.php from version 1000.

daja’s picture

I still didn't solve my problem. What do you mean wiht resetting the 'content_schema_version' variable?
This variable is in the table 'variable' and its value is set to 'i:1003;' in my DB.
If I would like to reset it via sql, should I delete completely this variable from my 'variable' table or should I only delete it's value and then update with update.php?
Thank for your help.

emackn’s picture

ok.. i dont think the variable was what fixed my data.. it was just the last thing that I tried. Here's exactly what I did to get my data back.

from stable drupal 4.7.11 install

  1. disable any theme specific blocks etc.
  2. change theme to bluemarine
  3. disable all modules
  4. backup db
  5. upgrade to 5.7
  6. hit /update.php - reload page if you dont get the expand select versions option
  7. update, then log back in as admin
  8. go to modules, enable, admin menu and devel module, and save
  9. enable cck module, and all other cck field modules, save, then go to update.php, you will see errors.
  10. on the update page, the 1000 version of content should be selected, (if not, set it to 1000). Set the other cck modules to version "1"
  11. Click Update Button, dont worry about the warnings
  12. now, CLEAR CACHE! (http://example.com/devel/cache/clear), then visit content page. viola!

Hope that helps you.

daja’s picture

Waw, thank you, it worked for me also. The only thing I had to do was to run update.php and choose the version number 1000 for content module (I had the 1003 version running). And my custom cck fields were back and showing again.
This was really helpful.

sun’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

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