When I create a new content type and click "edit";

I can't see the "add field", "add group" etc. links on top. So as a beginning i can't add new fields to a newly created content-type.

I also can't add a new field to a previously created content-type (which includes created fields o various types). when i click "add field" there. I get the error;

No field modules are enabled. You need to enable one, such as text.module, before you can add new fields.

All the modules under the CCK group are enabled, so the cause of the problem is not about that. Also i ran the update.php, tried to enable modules in different order. Nothing happened.

Comments

korayal’s picture

Category: support » bug

any help?

korayal’s picture

Status: Active » Fixed

solved by emptying the "cache_content" table.

korayal’s picture

Title: Getting "No field modules are enabled" error although enabled. » Cache problem
Status: Fixed » Active

When I make a change about fields (for example; adding a new field) I can only see the changes when I manually truncate the cache_content table.

karens’s picture

Status: Active » Postponed (maintainer needs more info)

I'm totally unable to reproduce this. Be sure you're using the very latest development code. If you still have problems there, provide more information about what you mean when you say you can't see the changes. What did you change? Where are you expecting to see something change that doesn't, etc.

korayal’s picture

I have the latest dev version. I tried it again. After creating a field, I can't see the field in the fields list until I empty the cache_content table.

Also I can't delete a field which I just created. When I click Remove, the same page refreshes and everthing stays the same. I can only delete fields using phpmyadmin.

The problem I have can be caused by not installing it to a fresh DB. I upgraded my site from Drupal 5.7 so I guess the CCK module is using the previous versions tables unless it had any DB updates in recent 6.x dev modules (I don't see any in the update.php list so I don't think it did).

Edit: I guess this module is listed as content.module, if so it says no update is available (latest version is 6003)

karens’s picture

There are lots of updates that needed to be run between Drupal 5 and Drupal 6. If you skipped them, you will definitely have problems. The field tables were renamed and new columns were added.

korayal’s picture

How can I find out if they are updated or not?

I applied every update on the update.php

As an addition, I can still see the fields that I disable from the module list (even after the truncation of cache_content) . the only way that I can disable a field type is manually editing the "active" rows in "content_node_field" and "content_node_field_instance"

korayal’s picture

Status: Postponed (maintainer needs more info) » Fixed

fixed in 6.x-2.0-beta

Anonymous’s picture

Status: Fixed » Closed (fixed)

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