I am not trying to lay this at ImageField's feet - I'll be the first to say there could be another culprit. However, this seems like as good a place to start as any.

After a recent upgrade to Drupal core, ImageField, ImageCache, and a ton of other modules, the Alt and Title content are no longer displaying in the image tags.

Text can be found in the Alt and Title fields when editing the page, and the text is very simple (no apostrophes, etc). However, when viewing the page, the following is displayed:

<img src="therighturl" alt title width="110" height="110" class="imagecache imagecache-blog" >

The image displays fine, at the right location, size, etc.

The problem is that "alt" and "title" display in the img tag, but with no content. Might not be that big a deal, except that it also messes with any Facebook status update someone tries to post, since Facebook doesn't think it's a valid image...

Drupal 6.27
CCK 6.x-2.9
ImageCache 6.x-2.0-rc1
ImageField 6.x-3.10

Comments

quicksketch’s picture

Priority: Major » Normal

Hm, seems like this might be an issue with ImageCache. ImageCache is providing the formatter that outputs the HTML. Could you try switching the formatter to use the original image instead and see if the attributes print out? Seems like that would narrow down the culprit to one or the other. However, trying both the latest versions ImageCache and ImageField I can't reproduce this particular problem, so it may be a 3rd culprit. Custom code is always a likely source, so you might also try looking through any theme overrides you have in your template.php file.

quicksketch’s picture

Issue summary: View changes

Forgot the code tags