after upgrading to drupal 6.14, i'm having problems with a thickbox/imagecache/views combination that i use to generate a gallery page on a site. the page uses views to select random images from a database, imagecache to generate thumbnails and fullsize versions and thickbox to display the fullsize image in an ajax popup, when the thumbnail is clicked. all was working perfectly until i upgraded drupal to 6.14 [thickbox, imagecache and views have also been upgraded to their current versions, as and when these have been released].
i originally posted the following to an imagecache issues thread, as imagecache seemed the obvious culprit [which is why imagecache is mentioned so much], but if you read through it, you'll see that, in the end, the evidence seems to suggest that the problem lies with thickbox itself [at least insofar as it integrates with the current versions of the views and imagecache modules]
....
after ugrading to drupal 6.14 i had the following symptoms:
- image thumbnails and fullsize versions created by ubercart/imagecache [on another part of the site] were working fine
- image thumbnails created by views/imagecache for the gallery page where not displaying all. instead i was getting a text link which pointed to <full path to appropriate imagecache folder>/<'alt text' for image> so, as opposed to pointing to the name of the image file, the link points to its alt text [???]
- gallery thumbnail images were being created properly by imagecache as i could see them being created on my server
- gallery thumbnail images would also display properly inside the views module when i hit the live preview button - just not on the actual pages themselves
- the views module generated gallery thumbnail images were supposed to link to thickbox popups of the full size image.
since i'm juggling three variables here; imagecache, views and thickbox, i decided to simplify things a bit and so changed the views module output to just generate the imagecache gallery thumbnail linked directly to the imagecache fullsize , rather than imagecache thumbnail linked to imagecache fullsize displayed in a thickbox popup.
success! - all my imagecache thumbnails are now displaying properly on my pages again and, clicking on them links to the full version [although obviously i've now lost my thickbox ajax popups]. so, i'm now coming round to thinking that the guilty party might actually be thickbox, rather than imagecache.
anyone else seeing anything like this?
[Drupal 6.14, ImageCache 6.x-2.0-beta10, Thickbox 6.x-1.5, Views 6.x-2.6]
Comments
Comment #1
frjo commentedDo you have a theme override for theme_imagefield_image_imagecache_thickbox() in your theme?
In Thickbox 6.x-1.5 that function was updated (http://drupal.org/node/570774) so you will need to update it in your theme also.
If that is not your problem I don't know what it can be. I'm using Drupal 6.14, ImageCache 6.x-2.0-beta10, and Thickbox 6.x-1.5 on numerous sites myself without problems.
Comment #2
madra commentedyou're a life-saver, mate!
that was exactly what the problem was. i'd overridden that function to give each image thumbnail the same 'rel' value, thus allowing arrowing through the images in the gallery like a slideshow.
it was so long ago, i'd completely forgotten i'd even done it.
thanks a lot. i could have spent weeks wrestling with this problem and never even thought to look in my theme's template.php file
[memo to self: make a list of all the hacks you do next time!]
BTW - for anyone else's benefit, the offending function is on line 234 of the thickbox.module file:
function theme_imagefield_image_imagecache_thickbox($namespace, $field, $path, $alt = '', $title = '', $gid = '', $attributes = NULL)in the old version has changed to:
function theme_imagefield_image_imagecache_thickbox($namespace, $path, $alt = '', $title = '', $gid = '', $attributes = NULL)in the new [loose the $field variable]
Comment #3
madra commentedbetter mark this closed now!