I having some problems with the flash gallery module. When I view a gallery the flash only displays Xs. No errors display on the screen or in the admin log. The thumbnails are in the thumbs directory. Any clues to what the problem might be. Any help appreciated. Thanks.

Using:
latest 4.7 drupal
latest 4.7 flash gallery module
image and image gallery modules are enable
PHP version: 4.4.4
MySQL version: 4.1.21-standard
Original photos are JPEG image data, EXIF standard 2.1
Flash thumbnails: JPEG image data, JFIF standard 1.01, comment: "CREATOR: gd-jpeg v1.0 (using IJ"

Comments

mr john’s picture

I found some errors in my sys log:

[Sun Sep 10 15:15:43 2006] [error] [client 71.141.248.10] File does not exist: /home/jmiller/public_html/files/images/flash/thumbs115-1583_IMG.preview.JPG

It looks like there is a missing forward-slash between thumbs and the jpg name. Getting similar errors for the image directory. Could this be the problem and it so does anyone know how to fix it.

Thanks

mr john’s picture

Well I got it working... I added some forward-slashes within function flash_gallery_xml_options($tid) changing:
$op[] = 'imagePath="'. flash_gallery_image_url() .'"';
$op[] = 'thumbPath="'. flash_gallery_image_url() .'/flash/thumbs"';

to this:
$op[] = 'imagePath="'. flash_gallery_image_url() .'/"';
$op[] = 'thumbPath="'. flash_gallery_image_url() .'/flash/thumbs/"';

Not sure if this is the correct fix but it seems to work. If someone has a better solution, please let us know.

rxfelix’s picture

Interestingly, the fix above works for me with Firefox, but with Internet Explorer the result is "GALLERY NOT FOUND"

mr john’s picture

Seems to work ok for me in IE 6.0.

rxfelix’s picture

Give it a try with both browsers -- if it works in IE, I'd love to know.

https://www.felix.org/fgallery/55

mr john’s picture

Yea, I get gallery not found on IE too for your site....
Works on firefox.

shane’s picture

Howdy! The Flash Gallery is fantastic ... but! I've got a brand new Drupal 4.7.3 setup. I installed and have image and image_gallery working just fine. I have two test image galleries, which are viewable via the image_gallery setup.

I installed flash_gallery per the doc. But I get the "X" display problem. I did the misc->rebuild thumbs - they rebuilt successfully. I checked the http://drupal.org/node/83421 posting, which led me to edit the code as follows:

// SYG hack - broken thumbnail path viewing
//  $op[] = 'thumbPath="'. flash_gallery_image_url() .'/flash/thumbs"';
  $op[] = 'thumbPath="'. flash_gallery_image_url() .'/flash/thumbs/"';

Now the thumbnail navigation shows just fine. BUT - the image is still "X"d out. Happens for both IE and Firefox.

I can right click on the "X" where the image is supposed to display in the Flash display, and select "Open Image in New Window". It reloads, with a URL path that is simply missing a "/" between "images" and the filename.

I checked the functions flash_gallery_image_url() and flash_gallery_image_path() which use an "rtrim()" to strip a trailing "/". I removed the rtrim() functions, but that doesn't fix it.

Any beta on how to fix this? I'm pretty certain it should be easily fixable, just need to modify the display path to not strip the "/", or add one, as appropriate. Help! Thanks!

Reference site is http://home.tuna.org/fgallery -thanks!

mr john’s picture

I have to fix the imagePath also to get things working.
Also I read somewhere that when setting the image directory that it shouldn't end with a backslash.

hope that helps....

shane’s picture

Hey John - thanks for the reply. I look forward to seeing the fix. Any ideas on timeline for that? I'd LOVE to go live with the flash_gallery on my site, since the existing Drupal image/image_gallery is pretty straight laced boring. I haven't been able to sort out exatly where the problem is, otherwise I'd provide a patch for it... Thanks John!

shane’s picture

For those of you who may be tracking this thread - I hacked (ugly) the flash_gallery code to work for me, under Drupal 4.7.3. The last hack I had to make is as follows:

function flash_gallery_image_url() {
// SYG hack
  // return rtrim(file_create_url(variable_get('image_default_path', 'images')), '/');
  $PATH = variable_get('image_default_path', 'images') . '/';
  return file_create_url($PATH);
}

Like I said, it's ugly, but it works beautifully for me now.

sime’s picture

I implemented a fix as per this patch. I'd be interested if it works for you.

-=-=-=-=-=-=-=-=-

(Flash Gallery users please note: http://drupal.org/node/116077)

sime’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)