Topic: Strange bug prevents expanding some images

I'm encountering a bug that effects both 1.4.2 and 1.4.3.

For some images in a juicebox gallery, clicking the "expand" button leads to a File Not Found error. In the URL, juicebox has substituted my domain name for the name of the image file.

So I'll see the tab trying to resolve to "http://www.paulraphaelson.com/portfolio … aelson.com" when it should be "http://www.paulraphaelson.com/portfolio … xxxxxx.jpg"

It does this for some images but not other. It is consistent about doing this (if I rebuild the web galleries from scratch, the same images are always effected). I've been unable to discern any pattern in the file names or anything else that could account for this. But something must be going on that's specific to the images in question. It makes no difference if the gallery resides on my local machine or on a web server.

To see the bug in action, visit www.paulraphaelson.com/portfolios/domino
I have no trouble expanding the first two images, but am unable to expand the second two. It's hit or miss from there on.

I'm creating the gallery with the Lightroom plugin and editing in the Builder app.

Thoughts?

Re: Strange bug prevents expanding some images

The problem is due to linkURL entries in your gallery's XML file such as the following:

linkURL="www.paulraphaelson.com"

If a linkURL is present, then Juicebox will use this instead of the imageURL when the Open Image Button is clicked.
Because your linkURL does not start with http://, Juicebox sees the path as being relative (to the HTML page containing the gallery's embedding code).

Try one of the following:
(1) Change your linkURLs to be the same as your imageURLs (and the images will be opened when the Open Image button is clicked).
(2) Leave your linkUR s empty (and Juicebox will use the imageURLs). (Same result as #1 above.)
(3) Change your linkURLs from www.paulraphaelson.com to http://www.paulraphaelson.com and when the Open Image Button is clicked, the user's browser will open the address http://www.paulraphaelson.com.

3 (edited by paulr 2015-03-11 02:56:20)

Re: Strange bug prevents expanding some images

Hi, thanks for the reply.

I looked at the gallery xml file, and sure enough, some of the link URLs are set to the image address, and some to the main site URL.  But I don't know why this would be ... this file was automatically generated by Juicebox builder.

How can I make sure that it gets generated properly every time?

I looked at my preset for this gallery, and there is no line for linkURL.

Re: Strange bug prevents expanding some images

Ok, fixed.

I did it by re-creating the gallery in Lightroom, and unchecking linkURL.
I still don't understand why this setting effected some images and not others ...

Re: Strange bug prevents expanding some images

I can't explain how your web address was used as the linkURL in several (but not all) of the images in your gallery but I'm glad that you have been able to resolve your problem. Thank you for posting back to let me know.

Just for the record, linkURLs can be entered (and deleted) on the 'Images' tab of JuiceboxBuilder-Pro.
Click a thumbnail and the Title, Caption and Link URL input fields for that particular image will be displayed.

If you wanted to remove all linkURLs from a gallery's XML file, you could open the file in a text editor which supports regular expressions, (such as Notepad++), do a global regular expression search for the following:

linkURL=".*?"

... and replace all instances found with:

linkURL=""

This will replace all linkURLs with linkURL="" in a single action and imageURLs will be used for all images.