First a public thanks for everyone supporting this module, and it's integration with ImageMagick - I've been lusting for a upgrade that includes both.

My problem is that all my 600+ images have an additional CCK node reference field. This information lives in table content_type_image.

When I updated to the latest Image Module, it seems that update.php has erased this table, and I can no longer create images with either gallery or related node as dropdown selections. (FWIW, dropping the table completely and then restoring it with the original data did not help anything.)

Have I done something foolish, or is a bug in this version? - Are there dependencies on a specific CCK version?

If anyone is interested I've described my upgrade in excruciating detail in the following monologue:

Thanks if you can help!

----------------------------------------------------------------------------

Currently running drupal 5.3, MySQL 5.0.27, PHP 4.4.4, under WAMP Apache/2.0.59 (Win32) PHP/4.4.4 with the following:
image-5.x-1.0
img_assist-5.x-1.1
image_enhanced_scaling-5.x-1.0
cck-5.x-1.4
views-5.x-1.5

600+ images where there is an additional CCK node reference field which seems to be stored under table content_type_image with fields vid, nid, and the field_related_xxx_nid

Currently when I add a new image, in addition to the usual, I can select the Image Gallery, and related node for each new image.

Updated to the following modules:
img_assist-5.x-1.x-dev
image-5.x-1.x-dev

by the following steps:
Empty cache and backup 11mb database.

Disable Image dependent modules and save configuration
image attach 5.x-1.0
image_enhanced_scaling-5.x-1.0
image gallery 5.x-1.0
image import 5.x-10
img_assist-5.x-1.1

Disable Image and save configuration
image-5.x-1.0

Remove old modules from sites\all\modules\:
image-5.x-1.0
img_assist-5.x-1.1
image_enhanced_scaling-5.x-1.0 and old
image.imagemagick.inc from includes directory

Add new modules to sites\all\modules\:
img_assist-5.x-1.x-dev
image-5.x-1.x-dev and copy new
image.imagemagick.inc to the includes directory

Refresh admin/build/modules - F5
Enable New Image Module and run update.php ...
(2 updates to image module)
Much database manipulation occurs... 25%, 50%, 75%, 100%
as I anxiously await... and Update #4 has massaged my 600+ images

Back to admin/build/modules to enable the 5 modules dependent upon image and run update.php..
image attach has 1 update, and image import has 1, while img assist has 2 updates.
All appears to go well.

However....
A quick check with phpMyAdmin confirms that the table content_type_image has been emptied of all content..

As such, when I try to create new image content, I no longer have the option of selecting a gallery, or related node. Yet, the existing galleries appear to work fine. (using a different theme since _image_get_dimensions() is changed? )

Another interesting issue, is that the few pages that have an image using image_attach, seem to be regenerating derivative images upon every viewing.

As a final curiosity, the image thumbnails don't appear on the pages using my theme (which includes tabs for all content - unless I edit anything on the page, and then resubmit it.. from then on it will work fine) - If I use plain bluemarine, the thumbnail images appear and function normal.

Comments

herb’s picture

OK - I think I've got it working.. I'll leave it as a bug till someone more knowledgeable says it's not.

The steps taken to "fix" it, in case anyone else has the same issue are as follows:

Before the upgrading image to a site that uses images with cck fields enabled, backup the CCK content_type_image table.

Upgrade as normal, drop and restore the content_type_image table.

"Reattach" the content_type_image table to the image by adding the cck field to the image content type, using the same name for the field that was originally used. (It will complain that the field already exists, but will continue.) Configure the field as it was before.

Once done, the cck field should appear for all new image content generation, and for existing image editing.

To get the galleries to work, I did approximately the same thing.

Go to admin/content/taxonomy and edit the vocabulary of Image Galleries. Reselect the type Image and save.

Now the gallery drop-down box will appear for new and existing images.

Hopefully this might help someone else, and or assist with debugging the module.

Rowanw’s picture

Version: 5.x-1.x-dev » 5.x-1.6
Priority: Normal » Critical

Same thing happened here, when I try to add the CCK field (single checkbox) again it doesn't display the label or option on the image edit form.

sun’s picture

Status: Active » Closed (won't fix)

Image module depends on a content-type that is internally called "image". If you already have a content-type with that name, all sorts of strange things can happen. Sorry, we cannot prevent that.