Hello,

When I changed my Drupal File System properties to Private and copied all files the correct folder, the BG only showed the thumbnails. When I saw a thumbnail properties in my browser, the original pictures URL was wrong.
My document root is: /home/www/vhosts/domain.tld/public_html
I set drupal Private folder: /home/www/vhosts/domain.tld/files
My BG folder is: pictures (under /home/www/vhosts/domain.tld/files)
By this time the BG generate the wrong URL for the original picture: http://domain.tld//home/www/vhosts/domain.tld/files/pictures/xy.jpg
I used the latest develepoment release of BG. Do you need more information?
Ps.: When I changed back Drupals File System properties to public and copied back the files inside the Drupals root folder, the BG worked fine.

Comments

laszlo.laszlo’s picture

Is there any solution for this problem?

omnyx’s picture

can one use BG when files settings are set to 'private' ?
My site is configured like that and now I need to choose appropriate gallery module. Can I still go with BG? (and I'd definitely love to be able to :)

cardsup’s picture

I have the same problem...

Images appear in the code as:

http://www.site.com//home/site/files/albums/pictures/10004.jpg

Is there a solution to that?

ericinwisconsin’s picture

I have the same problem. I may have to forgo using the private file system seting, since Brilliant Gallery doesn't support it. :(

jan.n’s picture

I use BG with private filesytem and there's no problem.
Nevertheless, I remember that the drupal documentation advises you NOT to change the filesystems setting after having built and used your site for quite some time...

vadim.bich’s picture

Are those images small? BG has an old but still alive bug which causes it to fail on small images and private filesystem.

This code attempts to optimize by not resizing small images and using original image url directly and not feediing it to image.php, but it obviously fails with private filesystem as the file is not accessible directly.

                         if ( $smallenough === true ) {
                              $result .= '<a href="' . $fullimgpath . '"';
                            } else {
                              # Important to begin with the "/" otherwise thumbnails in non-root folders fail. See http://drupal.org/node/175292
                              #$result .= '<a href="' . $modulepath .'/image.php?imgp=' . base64_encode( $absolpath . '/' . $retval[$poct-1] ) . '&amp;imgw=' . $imgwbig . '&amp;imgh=' . $imghbig . '"'; #&dummy=.jpg
                              $result .= '<a href="' . $modulepath .'/image.php?imgp=' . base64_encode( $absolpath . '/' . $retval[$poct-1] ) . '&imgw=' . $imgwbig . '&imgh=' . $imghbig . '"'; #&dummy=.jpg
                            }

If your files are small, then there's a chance that fixing that if statement will make it work.

peterh’s picture

Version: 5.x-1.x-dev » 5.x-4.4

This worked for me:

//$path = url(file_directory_path() .'/'. $galleryfolder, NULL, NULL, TRUE);
$path = url('system/files' .'/'. $galleryfolder, NULL, NULL, TRUE);

line 576 brilliant_gallery.module