I imported a CCK type via the Content Copy sub-module. The imported type contains some Date fields that used the Date Popup widget which I had forgotten to activate together with the main Date (main, API...) modules earlier.

When I visited the /admin/content/node-type//fields page, I saw the message "This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled." with additonal lines about the Date Popup module not being activated.

So I proceeded to activate the Date Popup module. But this didn't solve the problem and the warning messages remained.

I finally solved the problem by amending the widget_active flag from 0 to 1 in {content_node_field_instance} table in the database.

I thought the code to be corrected could be in Date module, but then again, seems like it'd be a generic action for CCK to do whenever a new related module is turned on, shouldn't it ?

Comments

yched’s picture

Project: Content Construction Kit (CCK) » Date
Version: 6.x-2.0 » 6.x-2.x-dev
Component: General » Date Popup

Content.module already has this in place, it's just that date_popup misses a call to content_notify('enable') in it's hook_enable()

newbuntu’s picture

How can I remove the inactive fields and add them back in? I tried to delete the type and re-added it in. However, those fields are still remembered.

karens’s picture

Status: Active » Fixed

We can't use content_notify() because Date Popup is not a CCK module. The problem happens if Date Popup is not enable at the time Date is enabled, because the Date module won't include the popup as an active value.

I fixed this by adding in a different hook_enable() that will update the tables when Date Popup is enabled.

Status: Fixed » Closed (fixed)

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