Just finished an update to Drupal core 6.14, and suddenly I'm getting the following error message for content types which have fivestar fields:

This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled.

Green Rating (field_green_rating) is an inactive Fivestar Rating field that uses a Stars widget.

I've got the most recent version of the module installed. I'm apparently not the only person this has happened to...I'm starting to see questions about this in other forums.

Wuzzup?

Comments

drupup’s picture

Mind you, existing content with fivestar fields are displaying correctly. But I can't access the field for editing, either in the content type editing screens (Manage Fields/Display Fields), in the edit screens for existing content, or when I create new content.

ezra-g’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks for reporting this.

Did you also upgrade CCK to a new version? If so, what was your previous and current version of CCK? Are you having this problem with any other cck fields?

ezra-g’s picture

Hmm, seems like some other users are reporting this in this forum issue: http://drupal.org/node/583476 .
I know some other modules experienced breakage with the update to 6.14 so it seems possible we're experiencing that here. Your CCK information would be helpful in case I have trouble reproducing the problem though.

drupup’s picture

Thanks for the quick response. I'm apparently going bleeding edge with CCK: 6.x-3.x-dev (2009-Sep-21). There are some Rules integration features that were incorporated into this that solved another problem (I was getting sick of patches), but I suppose I could back down to the 6.x-2.5 version if this ends up being part of the problem. I was using this version of CCK prior to the core update, however. I'm about to do a new install...I'll use the 6.x-2.5 version there and let you know if that makes a difference.

drupup’s picture

Okay, here's what I've learned:

On a fresh install of Drupal 6.14, with CCK at the 6.x-2.5 version, there are no problems. I can create FiveStar fields and they work correctly.

On my existing installation, I backed the CCK version to 6.x-2.5 and did a complete uninstall/reinstall of FiveStar. The problem persists for both existing fields and a new field I created. Admittedly, I didn't do a complete uninstall/reinstall of CCK, I don't want to lose all the fields I've created. Don't think CCK is the culprit.

I've also found references to this problem for previous Drupal updates dating back to 6.6:

http://drupal.org/node/327041#comment-1354364

The workaround suggested here (manually activating the fields in the mySQL tables) worked for me as well. The FiveStar field and widget were both tagged as Active:0 in the database. Went in, set the appropriate database fields to 1, and everything is back in gear.

There's a patch mentioned in the above issue, but I didn't touch it.

Apparently FiveStar is like some of my co-workers: resistant to change!

ezra-g’s picture

Status: Postponed (maintainer needs more info) » Active

Marking as active since @drupup helped us identify the likely problem.

ezra-g’s picture