I have tried to get brilliant gallery to work for some time now. No problem with thumbs but I cannot seem to get the images to load, not in Lightbox, thickbox or even without any overlay image handler at all.
Drupal is installed in a subfolder 'mrr'. images is stored under the folder 'files'.
on http://waxjoms.se/mrr/node/7 you can see a test gallery.
Images in this example are stored in waxjoms.se/mrr/files/u1/frontpage.
When I hover with my mouse over one of the images the link adress is shown. It is linking to:
http://waxjoms.se/mrr/files/%252Fu1/frontpage/jesper1.jpg <----Please note what happened to the folder 'u1'
Also I have the private file setting in drupal, so linking to one of the images to show would mean that the url
would look like this:
http://waxjoms.se/mrr/system/files/u1/frontpage/jesper1.jpg
I am totally stuck and have no idea of what to do more. Please help.
Comments
Comment #1
vacilando commentedTry the dev version - I recently fixed issues that caused similar behaviour - and let me know.
Comment #2
hixx commentedI hope I did it the right way, I downloaded the files in the CVS repository because I could not find a "dev-package":
Brilliant Gallery doesnt even show in the modules area but i get this error message:
warning: Error parsing modules/brilliant_gallery/brilliant_gallery.info on line 5 in /customers/waxjoms.se/waxjoms.se/httpd.www/mrr/includes/module.inc on line 195.
Comment #3
Meathor commentedHi
thumbs Loaded fine, but there are only a Place holder when i klicking on a thumb...
Here is a link to the gallery:
http://pkfans.pk.funpic.de/drupal/
Hope you are able to help me...
(sry... my englisch is bad :( but im working on it)
mfg
Meathor
EDIT: .htacces file deletet and now it runs fine :)
Comment #4
meichr commentedHi,
I just tried to check your site and found that the link to the fullsize images in the overbrowser is a direct link to your files which needs direct accessibility of the files via the internet.
So I tried to use the link of one of your fullsize images in a seperate browser window and encountered a 500 Internal Error of your server. That means your images are not reachable by the internet (changing .htaccess probably corrects this).
The link was (try it to check your web server configuration):
http://pkfans.pk.funpic.de/drupal/files/album/pk-bilder-neu/Image21009.jpg
I see/assume you have found the problem already.
Regards,
Christian.
Comment #5
vadim.bich commentedAre your images small? Brilliant Gallery (all latest versions I checked, dev and stable) has a bug - there is a code which checks image dimensions and if the original image is smaller than minimum, it uses path to the image directly, without sending it through image.php . I guess this was done to improve performance but this completely ignores the fact that image may be private and unaccessible via direct url.
Are you using filesystem cache? In this case there is another problem - support for filesystem cache in image.php is broken.
If you use private files, be aware, that the brilliant_gallery does not protect your images completely, anyone with knowledge of direct url will be able to get the original, no passwords checked. I made a patch (http://drupal.org/node/253348), fixing these issues as well as issue with the file cache, if you feel like it, you may try it out.
Comment #6
Democron commentedI have the same problem like hixx described in first post, bug with mysterious %252F, only I'm using drupal 6 version.
Here is my solution:
Find this line in brilliant_gallery.module
$path = url(file_directory_path() . '/' . $galleryfolder, $options = array(NULL, NULL, TRUE));(it could look a little different in 5.x)
Just remove the . '/' part so it looks like this:
$path = url(file_directory_path() . $galleryfolder, $options = array(NULL, NULL, TRUE));Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #8
steveray commentedThanks! This fix worked for me too.
Using Drupal 6.4 and BG 6.x-1.2
Steve
Comment #9
solar345 commentedI noticed an additional %252F in the generated links. As a result the images don't appear when clicking on the thumbnails. I have not had time yet to investigate the cause of this.
Anyways for those of you in hurry. There is a quick fix.
Add
$path = str_replace( "%252F","",$path);
in the render_brilliant_gallery function towards the end.
I did this to replace the additional string in line 551 and it works.
Note: This is by no way the right way to fix this. Use it only if you are really in a hurry.