Just installed GA and created a gallery. Clicking on the image titles shows the image in lightbox but no thumb exists, and no files exist in /thm folder, but files exist in /img and /prev. What is wrong?

Comments

Dinth’s picture

I have same issue with 1.14 gallery_assist. Ive tried both ImageAPI backends and unfortunately no luck. You can check my galleries here http://czernichow.gmina.pl/media

hasdf’s picture

Same here, but with files in the thm folder ;)

hasdf’s picture

Works for me:

Delete the ".htaccess" file in the "/sites/default/files" folder.

jcmc’s picture

Status: Active » Needs review

Hello to all
@Kevin Quillen,
@Dinth,
@m0rtel

excuse my delayed answer.

I have visited the page from Dinth and have investigated a little (as guest) the paths etc. I not have a idea why are desapeared the thumbnails in this case
.
Please can you add a change in the gallery module?

I see you not use Gallery Assist with ImageCache also you can add the following lines to the init function from gallery_assist.module.
after the line

  function gallery_assist_init() {
    // here

add

  variable_set('gallery_assist_imagecache_uninstalled', 1);

With this value "Gallery Assist" check the images paths, in case a file not exist, Gallery Assist will restore it from original.

Actually, this functionality is only available after uninstall Gallery Assist Image Cache, but would help here too.

NOTE:
This is not a solution for sites where ImageCache and GAIC are installed.

Regards
Juan Carlos

grung’s picture

Interesting idea. However I have find out something else also without "ImageCache module". For some reason entries from {files} table are disappearing and thanks to that gallery is not rendered.

In gallery_assist.module function "gallery_assist_load" is doing a query on {gallery_assist_item} with JOIN on {gallery_assist_translated} and {files}.

$query = "SELECT a.pid, a.nid, a.ref, a.gid, a.gref, a.sid, a.uid, a.fid, a.filename, a.opath,
a.ppath, a.tpath, a.copyright, a.weight, a.cover, f.timestamp, tp.lang, tp.ptitle, tp.palt, tp.pdescription, tp.format,
tp.did FROM {gallery_assist_item} a JOIN {gallery_assist_translated} tp ON a.pid = tp.pid
JOIN {files} f ON f.fid = a.fid
WHERE a.gref=%d AND tp.lang = '%s'";

However I found that entries from {files} table disappeared and this makes situation in which gallery is not rendered.

So to fix all my galleries I removed this join with {files} table and I did ugly hack: changed " f.timestamp" to "a.pid as timestamp". So finally this query looks like that:

    $query = "SELECT a.pid, a.nid, a.ref, a.gid, a.gref, a.sid, a.uid, a.fid, a.filename, a.opath,
    a.ppath, a.tpath, a.copyright, a.weight, a.cover, a.pid as timestamp, tp.lang, tp.ptitle, tp.palt, tp.pdescription, tp.format,
    tp.did FROM {gallery_assist_item} a JOIN {gallery_assist_translated} tp ON a.pid = tp.pid
    WHERE a.gref=%d AND tp.lang = '%s'";

Now everything works for me as I don't need timestamp field. However after this change to make galleries renderable it is very important to clear Gallery Assist Cache.

drahman’s picture

Deleting the .htaccess file worked. However, is the file necessary in that directory? will it recreate?

I had the problem as soon as I changed the Display thumbnail size from 100 to 75. Was that purely coincidental?

Tran’s picture

Is there no solution?

jcmc’s picture

can I see, can I investigate this?

jcmc’s picture

with the time is this issue gone and through more recent versions fixed.

jcmc’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.