Upgrade to D6 blocks access to Content types
asb - June 24, 2009 - 22:38
| Project: | Nodereferrer Create |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | active |
Jump to:
Description
Hi,
when upgrading to D6, one of my sites had an nodereferrer_create field; this field seems to block access to the content type in question. I'm getting the error message:
This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled.
Programme mit diesem Werk (field_programm_ref) is an inactive Node Referrers field that uses a nodereferrer_create_list widget.Whatever this means: NodeReferrer 6.x-1.0-beta1 is installed and active, and update.php has been run several times. What do I have to do to get access to this content type back?
Thanks & greetings, -asb

#1
btw: according to KarenS in All CCK custom fields are inactive after upgrading, this behaviour is not caused by CCK but by the contributed module ("If disabling and re-enabling the field module doesn't work you may have a field module that isn't implementing all the hooks").
Greetings, -asb
#2
My approach to resolve this issue (with crucial help from attheshow):
UPDATE `content_node_field_instance` SET `widget_type` = 'optionwidgets_select',`widget_module` = 'optionwidgets' WHERE `field_name` = 'field_[YOUR-FIELD-HERE]';
TRUNCATE `cache`;
After this, the field is still marked as "inactive" by CCK. So I once again disabled CCK and all related modules, ran update.php, enabled content.module, ran update.php again, enabled option widgets, ran update.php again and so forth. After enabling the rest of the CCK related modules, I got access to my CCK field back.
Hope this helps others, greetings,
-asb