I had a problem and figured out the fix. Symptoms were, after updating this module (upload_image-5.x-1.x-dev, from 1.17.2.2 to 1.17.2.3) and image.module (image-5.x-1.1 to image-5.x-1.4), uploaded image thumbnails disappeared from the bottom of the parent node views, and every page view included the message "The image Test Picture had missing derivative image which has been regenerated." -- for every uploaded image on it.

The problem is that this version of upload_image is storing the image derivative label (i.e., "Custom") in the variable table instead of the lower-case size ("custom") version of it. So when upload_image invokes image_display it can't find the right size, tries to regenerate everything, and passes nothing back. (This doesn't seem to have changed since the last version, so I don't know why it wasn't broken then, too; change in image.module, maybe?)

The fix is simply to make the admin page fill the "Upload image size" pulldown with 'size=>label' pairs instead of 'label=>label' pairs by changing (in this version) line 47 from

  $options[$field['label']] = $field['label'];

to:

  $options[$size] = $field['label'];

Then you have to go to the image admin page, select the correct image upload size again, and submit the form. Note that you will see the the image-regenerated notice one more time for every image (since you changed the image settings), but after that everything should work fine.

Comments

Nick Brown’s picture

Priority: Normal » Critical

I'm seeing a similar problem, with the message always being displayed on every page view repeated for images.
However I do not have the upload_image module installed.
I have the follow image related modules in stalled;

image: 1.209.2.36 2007/07/06 15:22:19
img_assist: 1.68.2.16 2007/08/15 23:29:33

Any idea if its related, and the fix?

Nick Brown’s picture

I'm still experiencing this with latest 5.x-1.x-dev version of each module:
image: 1.209.2.44 2007/08/22 22:38:28
img_assist: 1.68.2.18 2007/08/28 08:54:26

Can anyone suggest what I should be looking at, or config I need to change?

drewish’s picture

Status: Active » Fixed

committed Papayoung's changes to HEAD and DRUPAL-5

Nick Brown’s picture

Status: Fixed » Active

That did not fix it for me. :-( I updated to the latest 5 devel release;
image.module,v 1.209.2.45 2007/08/28 15:11:00

And my website still constantly displays the message. For example;
http://www.nickbroon.com/image/tid/31

drewish’s picture

Status: Active » Fixed

that's an image module bug. not upload_image. also when i committed this i had a typo. i've committed a fix but haven't built a new release yet because i want to make sure there's not some other bug.

Nick Brown’s picture

Fair enough. I've open a separate bug report. See http://drupal.org/node/171524

Anonymous’s picture

Status: Fixed » Closed (fixed)