When creating a gallery the bg_cached_resized_* files are not being created. I have checked the permissions of the module and the permissions of the folder that it is suppose to created at and they seem to be fine. It does in fact create the bg_picasa_orig_* folders with all the files in there.

I scrubbed the source code got all the names that they are suppose to be, resized the pictures myself and ftp'd them up there, and used that as a workaround for the one gallery.

I am using dreamhost as my provider, not sure if that is an issue.

I am sure I am not providing enough information, but after searching through known issues, I don't see where I can be going wrong. Every other similar issue seemed to have pointed to permissions, but I can't see how I have it wrong here.

#13 thumbnails.jpg86.1 KBKradenko
Members fund testing for the Drupal project. Drupal Association Learn more


arilinn’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Category: bug » support
Priority: Major » Normal

I'm having the same problem -- this is really annoying as it renders the entire gallery useless. :(

What makes it even more peculiar: when you're logged in, try clicking on all your gallery thumbs -- this will trigger the resized versions to be created in the brilliant_gallery_temp folder.

So, the problem seems to be that the auto-generation of resized images is not being executed if an anonymous user hits the gallery. Unfortunately I don't see why the logged-in state of a user should make a difference here.

Please, help! Permissions all check out fine on my side, too.

arilinn’s picture

Version: 7.x-1.x-dev » 7.x-1.2
Category: support » bug
Priority: Normal » Major
rallycivic’s picture

Version: 7.x-1.x-dev » 7.x-1.2
Category: support » bug
Priority: Normal » Major

I think you need to give the "anonymous user" role the
access brilliant_gallery
TODO Add a description for 'access brilliant_gallery'
permission. After doing that the missing thumbnails appear to all on my site.

arilinn’s picture

@rallycivic, thanks for your post, but it misses the problem entirely.

The issue aren't missing thumbnails, it's the missing resized images (i.e. the "full size" versions you're seeing after clicking on a thumbnail). Since BG points the thumbs to images that don't exist (i.e. they can't be found in the folder where BG should create them), the gallery is useless.

darkdantae and my guess is that it could be an access rights problem to the folder where the images are supposed to reside, but we don't see how. :(

cates111’s picture

I'm having the same problem. It created the first few resized images, but stopped after that.

@rallycivic, I tried that too and it didn't work.

Is there a way to clear the Brilliant Gallery cache and have it recreate all the resized images?

cates111’s picture

I'm also getting this error message:

•Notice: Undefined index: imgcrop in resizeimage_wrapper_dbcache() (line 381 of /home/lavozlat/public_html/modules/brilliant_gallery/functions.inc).
•Notice: Undefined index: imgcrop in resizeimage_wrapper_dbcache() (line 381 of /home/lavozlat/public_html/modules/brilliant_gallery/functions.inc).

robbdavis’s picture

I'm getting the same error message as posted by @cates111

I'm also getting this error message:
Warning: imagejpeg(): Filename cannot be empty in resizeimage() (line 470 of /Users/rob/sites/nomadmotel/sites/all/modules/brilliant_gallery/functions.inc).

postak’s picture

it worked for me as described by #3 rallycivic - under Brilliant Gallery Configuration I granted permissions to anonymous user as well as logged user
thumbnails and (resized) pictures are then accessible

ralcaz’s picture

Ok for me was very easy. I access to the news node where is the code:

For example: [bg|folder_images|5|150|15|#000000] and change one parameter (150->100)

It update the black box or broken images links and now it works perfectly.

Good luck with brilliant Gallery !!

moserhe4’s picture

Version: 7.x-1.2 » 7.x-1.x-dev

Same problem with me. I started from scratch several times, for troubleshooting I have installed only 2 modules:
- Brilliant Gallery 7.x-1.2+3-dev
- Lightbox2

Drupal Filesystem configuration: "sites/default/files2"
Main gallery folder used for local galleries: "bg_galleries"
Custom path for a cache folder: "brilliant_gallery_temp"
I assigned "access brilliant_gallery" permissions to anybody/authent.user/administrator"

I put pictures to 2 subdirectories: "/var/drupal/sites/default/files2/bg_galleries/wsv01" and
"/var/drupal/sites/default/files2/bg_gallieries/wsv02". For troubleshooting I've put 777 to these directories and pictures.

Performing "admin/config/brilliant_gallery/manage" I see both directories ("bg_galleries/wsv01" and "bg_galleries/wsv02") but it does not list any picture.

Adding a node with "[bg|wsv01]" it does not show any picture, but I get errormessage in errorlog of apache:
[Thu Oct 11 22:44:26 2012] [error] [client] File does not exist: /var/drupal/sites/default/files2/brilliant_gallery_temp/bg_cached_resized_ec4230168ef641a7d536a630da50f7d8.jpg, referer: http://localhost/?q=node/2
[Thu Oct 11 22:44:26 2012] [error] [client] File does not exist: /var/drupal/sites/default/files2/brilliant_gallery_temp/bg_cached_resized_16616e66d91f3bb57adee963b6abbba0.png, referer: http://localhost/?q=node/2

I have checked "/var/drupal/sites/default/files2/brilliant_gallery_temp". There is no bg_cached_resized_xxx file at all.

I looks like these files are not created.

It would be great if anybody could give me the hint what I am doing wrong !!


Drupal 7.15
Brilliant Gallery 7.x-1.2 (same issue with 7.x-1.x-dev)

PHP: 5.3.3-7+squeeze14
PHP memory limit 128M
GD library PNG support 2.0
GD library rotate and desaturate effects 2.0

Athrylith’s picture

I was having the same problem until I enabled Clean URLs. I forgot to copy the .htaccess file to the new website.

Hope this helps

moserhe4’s picture

You made my day ! Many thanks for your help.

Kradenko’s picture

Version: 7.x-1.x-dev » 6.x-4.x-dev
Category: bug » support
86.1 KB

Hi all,

I have tried to all these options mentioned above but the thumbnails are just not getting generated. I have gone through some of the code and it appears to collect the details no problem. Not sure why it's doing this :( I have checked that Clean URL's are active, and they are. The folder has full read and write access. As seen in the attached screenshot it is actually picking up the folders and the files in them.

Any assistance will be much appreciated,