Clean URL setting seems to affect links ('%25' vs '%') through the Drupal l() or drupal_urlencode() functions. Also, ampersands don't seem to work properly in folder names, and images.

Imagecache and Internal Cache either like or don't like the '%25' and the UTF-8 encoding, so the separate cases have to be handled.

I'm working on a fix, but I definitely need people to test, especially if you're on a non-U.S. system.

Test cases to consider:

1. Clean URL on, Imagecache on
2. Clean URL on, Imagecache off
3. Clean URL off, Imagecache on
4. Clean URL off, Imagecache off
5. anything else you can think of ....

Remember for each test case, to clear the Internal Cache (Flush Internal Cache) and flush Imagecache thumbs to really know if the links and thumbnail generation are working.

Please review and post back results. Thanks!

Comments

stoltoguzzi’s picture

I installed this version because the last version did not work proberly.

- Windows Vista German version
- Uniform Server

structure is
- gallery
- hallo
images...
- test
images...

Installed on a fresh drupal 6.6
- installed imagecache the last version 2.0-beta
- the first scan, I got this message " EXIF data not supported on your host.", do I have to install another module?
- only the folder test is scanned an only one image but no thumbnail is generated
- going into this folder an klicking the not existing thumbnail opens lightbox but without image

no difference using clean URL or not.

then i switched of imagecache on the fast gallery advanced page i got this:
warning: Invalid argument supplied for foreach() in W:\www\includes\form.inc on line 1417.
warning: Invalid argument supplied for foreach() in W:\www\includes\form.inc on line 1417.

stoltoguzzi

ncy’s picture

you may have to find a different module :(. the only time that "EXIF data not supported on your host" will show is if this returns false:

<?php
  function_exists('exif_read_data');
?>

EXIF data is a crucial component to the sorting and caption features.

stoltoguzzi’s picture

an where this function comes from, is it part of PHP (Wamp-Server)?

ncy’s picture

here: http://us3.php.net/function_exists

i believe it will depend on your server's installation/configuration, whether 'exif_read_data' is defined or not

stoltoguzzi’s picture

ok, using xampp works fine.
For photos it looks ok, for flv files I get the movie icon but pressint this icon will show me a new window but it is empty no player loaded.

ncy’s picture

StatusFileSize
new5.75 KB

make sure you're using the dev version of lightbox, and that you have a flash player (e.g. JW FLV player). you have to save the path to the player in the Lightbox video settings.

you can also use this attached patch on Lightbox v1.8 instead of using the dev version. this patch includes options for flashvars.

stoltoguzzi’s picture

I use the dev version.

it looks like the path is wrong, the link shows:
..../sites/default/files/imagecache/fast_gallery_big/gallery/test/video.flv

but imagecache has nothing to do with videos? It will not create thumbnail?

the link should show:
..../sites/default/files/gallery/test/video.flv where the video is stored

ncy’s picture

StatusFileSize
new49.17 KB

try this. i wasn't correctly handling links for when Imagecache is set for a full-size image.

ncy’s picture

i'm going to push for this as 3.2-beta3 version, unless some beta testers tell me otherwise.

stoltoguzzi’s picture

I had to configure the complet path including http//:.... this way it is working.
but should be the relativ path what I see from the description?

ncy’s picture

strange. i get the opposite effect. it doesn't work when i include the http:// in the gallery path on the General settings page.

can you give more information about your setup?

stoltoguzzi’s picture

StatusFileSize
new36.56 KB

it is a vista computer using xampp.
Drupal is installed like this:

http://localhost/myweb

Filesystem is set to public

Clean URL is on

Attached a pdf with some settings from lightbox and fast gallery

ncy’s picture

ah, ok, you're talking about the Lightbox FLV path. that's a Lightbox thing. i think it's probably just a mislabel in the description text.

instead of typing in the whole "http:// ..." part of it, you can also have it like i saved my path, with the beginning slash:

"/files/players/flvplayer.swf"

where the dir "files" is in the root directory of the domain.

i.e.

"/sites/all/modules/lightbox2/player/player.swf"

if Drupal is installed in a subdirectory "sub", then

"/sub/sites/all/modules/lightbox2/player/player.swf"

if it's really a hassle, check out my Lightbox 1.8 patch (http://drupal.org/node/334747#comment-1114186). it handles relative path and also tags on the subdirectory automatically if it's not there.

rapsli’s picture

Status: Needs review » Closed (fixed)