Acidfree isn't displaying some thumbnail images after an upgrade from v4.7 to v5.1. This is an intermittent problem - of the 40 or so images that are on the site about 12 of them are not displaying thumbnails. The incorrect thumbnails show no pattern - one full album has no thumbnails, one album has some thumbnails working, two albums are fully correct.

All files have been migrated properly and are available on disk. So for example I have files/80_large.jpg. files/80_thumb.jpg, files/80_small.jpg all on available. Each of these files has the correct image which I can display from the filesystem. The Acidfree node shows the three files as attachments to the node.

The thumbnail image isn't being shown either in the album view or in the image view. The preview and the fullsize images are displayed fine. It's only the thumbnail that can't be displayed. The "Random Image" block I have also shows up blank when one of the affected images is listed.

No errors are shown in the apache error log, nor in watchdog.

Any ideas?

Comments

vhmauery’s picture

Acidfree shows the files as attachments to the nodes? I don't understand that statement. Were there any errors while upgrading? Are you using any node_access modules? Are you using drupal to serve files or apache? Did you have filemanager set to serve the files before? I am just trying to get an idea of what could be going on here.

So the files exist in the filesystem the same as other files?

Right click on a working image and view the image directly. Please post the path (just the path is sufficient -- no need for the server name if you don't want to). Do the same for a broken image (you might have to view the source of the page to extract the path from that if you don't see the broken image logo).

Please execute the following sql query (replacing XXX with the nid of the image nodes) for both a working image and a broken image:

sql> select * from files where nid=XXX;
vjordan’s picture

Clarifications:
When I edit the photo the three attachments are shown in the 'file attachments' section. These are not shown when viewing an Acidfree image.
No errors displayed nor shown in the watchdog during upgrade.
No node access modules in place. Only non-core modules are: Acidfree, Image, Views, Views UI, Google Analytics, XMLSitemap, Update Status.
Theme is bog-standard blue-marine with different colour scheme using modified css.

I'm using apache to serve the files. (By this question I take it to mean Home » Administer » Site configuration » File System shows "public" as the download method.) Yes, filemanager was in use for v4.7 to serve the files.

Code below taken from Acidfree Album display, viewing image in size=thumbnail view ('preview' and 'original' work perfectly). No 'broken image' logo appears by the way.
A/ Where the broken image appears is this:-

<div class="acidfree-item acidfree-image"><a href="/node/76?size=_original" class="active"></a></div></div>
    <div class="links">&raquo; <ul class="links inline"><li class="first statistics_counter"><span class="statistics_counter">1198 reads</span></li>

B/ Code for a working image is this:-

<div class="acidfree-item acidfree-image"><a href="/node/80?size=_original" class="active"><img src="http://www.example.com/files/gch/images/80_thumb.jpg" alt="Fiona Hayes" title="Fiona Hayes"  class="image image-thumbnail " width="75" height="120" /></a></div></div>
    <div class="links">&raquo; <ul class="links inline"><li class="first statistics_counter"><span class="statistics_counter">1073 reads</span></li>

So it appears for some reason the img tag isn't being prepared for 'broken' image thumbnails. Same code there / not there on 'random image block' I have on the right sidebar.

And to close out all your questions, although they may not be needed now...
All image files can be served out directly by typing in the URL. Example of a broken image which all come up beautifully from the filesystem
http://www.example.com/files/gch/images/76_large.jpg
http://www.example.com/files/gch/images/76_small.jpg
http://www.example.com/files/gch/images/76_thumb.jpg

And a working image
http://www.example.com/files/gch/images/80_large.jpg
http://www.example.com/files/gch/images/80_small.jpg
http://www.example.com/files/gch/images/80_thumb.jpg

Not working image:

SQL query: select * from files where nid = 76 LIMIT 0, 30 ; ;
Rows: 3
fid 	nid 	filename 	filepath 	filemime 	filesize
58 	76 	_original 	images/76_large.jpg 	image/jpeg 	629392
59 	76 	preview 	images/76_small.jpg 	image/jpeg 	52324
60 	76 	thumbnail 	images/76_thumb.jpg 	image/jpeg 	3158

Working image:

SQL query: select * from files where nid = 80 LIMIT 0, 30 ; ;
Rows: 3
fid 	nid 	filename 	filepath 	filemime 	filesize
70 	80 	_original 	images/80_large.jpg 	image/jpeg 	92320
71 	80 	preview 	images/80_small.jpg 	image/jpeg 	45595
72 	80 	thumbnail 	images/80_thumb.jpg 	image/jpeg 	3097
vjordan’s picture

Status: Active » Closed (fixed)

The problems outlined above seem to have cured themselves without any explicit action on my part. I've cleared the drupal cache several times, for other reasons, and the missing thumbnails are now presenting entirely as expected.