After doing a Drupal 5 -> Drupal 6 upgrade, all my imagefield_crop fields are unavailable. It reports the following error message at the top of the Manage Fields page

This content type has inactive fields. Inactive fields are not included in lists of available fields until their modules are enabled.
image (field_my_image_filed) is an inactive Image field that uses a image crop widget.

I have the module enabled and am able to create new fields without any problems.

CommentFileSizeAuthor
#3 imagefield_crop_d6_upgrade.patch839 bytesmrfelton

Comments

yhager’s picture

Can you check the upgrade without imagefield_crop? I believe this is related to imagefield more than to imagefield_crop, since the latter is simply a widget, not a field module.

mrfelton’s picture

I'm pretty sure this issue lies in the imagefield_crop module. See http://drupal.org/node/296195 for details and solution for an almost identical problem with the imagefield module.

From a quick look at your code I can see that you have named your widget 'image crop' in the drupal 5 version, and 'imagefield_crop_widget', yet you do not include an update_6000() that makes this change when upgrading from D5 to D6.

mrfelton’s picture

Status: Active » Needs review
StatusFileSize
new839 bytes

Attached is a patch which makes the needed updates (it's based on the update code that runs in in the imagefield module). Seems to have fixed the problem :)

yhager’s picture

Status: Needs review » Fixed

Committed and tested on 6.x-1.0-beta1.
Thanks!

Status: Fixed » Closed (fixed)

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