Topic: Config file not found - upgrade from 1.2 to 1.4

I have a site that's using dynamically generated config. files using php. It works absolutely fine under Juicebox 1.2, but if I try replacing the jbcore file with any version above 1.3, it results in the error "Juicebox Error: Config XML file not found."

If I look at the source code, the config. url is still listed correctly, and it still loads as an xml document correctly. The source code looks like this:

<script type="text/javascript" src="http://www.mydomain.com/gallery/jbcore/juicebox.js"></script>

<script type="text/javascript">        
new juicebox({    
containerId: "gallery_image_container",
configUrl: "http://www.mydomain.com/gallery/juicebox_config.php?variable=1"});
</script>

I've tried using modrewrite and mapping so I can call juicebox_config.php via juiecobox_config.xml in case the latest version didn't accept a php document as a config. file, and that made no difference. Any thoughts?

Re: Config file not found - upgrade from 1.2 to 1.4

Juicebox v1.4.2 can use a PHP file as a configURL (just like earlier versions).
The "Juicebox Error: Config XML file not found." message suggests that either:
(1) Your 'juicebox_config.php' file cannot be found on your web server.
(2) The the format of the XML data generated by your PHP file is incorrect.
(3) The web page containing the embedding code is on a different domain to that specified in the absolute path in your configURL. (If this is the case, try using relative paths instead of absolute paths in your gallery's embedding code.)

It would certainly be easier to troubleshoot your scenario if I could see the problem for myself so if you continue to experience difficulties, please post the URL to your gallery's web page so that I can take a look and help further.

Re: Config file not found - upgrade from 1.2 to 1.4

Steven wrote:

Juicebox v1.4.2 can use a PHP file as a configURL (just like earlier versions).
The "Juicebox Error: Config XML file not found." message suggests that either:
(1) Your 'juicebox_config.php' file cannot be found on your web server.
(2) The the format of the XML data generated by your PHP file is incorrect.
(3) The web page containing the embedding code is on a different domain to that specified in the absolute path in your configURL. (If this is the case, try using relative paths instead of absolute paths in your gallery's embedding code.)

It would certainly be easier to troubleshoot your scenario if I could see the problem for myself so if you continue to experience difficulties, please post the URL to your gallery's web page so that I can take a look and help further.

As I said, it works fine under the earlier version, and the config file is present and correct. All I'm changing on my website is the version of the juicebox.js file. As soon as I revert to the earlier version, everything works as normal.

All files are specified with absolute paths on the same domain. I'm wondering if it's an issue with the generated xml in the config file, so has something changed between versions?

The dynamically generated config file looks like this:

<?xml version="1.0" encoding="UTF-8"?><juiceboxgallery title="Juicebox Gallery"
imageShadowBlur="0"
thumbShadowBlur="0"
themeUrl="http://www.mydomain.com/gallery/jbcore/classic/theme.css"
thumbsPosition="top"
thumbWidth="75"
thumbHeight="50"
galleryWidth="100%"
galleryHeight="100%"        
frameWidth="2"
imageFrameColor="rgba(75,38,213,1)"
thumbPadding="10"
imageTransitionType="slide"
showOpenButton="false"
showImageOverlay="auto"
showAutoPlayButton="true"
showImageNav="false"
showNavButtons="true"
buttonBarPosition="overlay"
screenmode="auto"
buttonBarBackColor="rgba(75,38,213,0.5)"
imageScaleMode="SCALE_DOWN"
maxCaptionHeight="40"
showExpandButton="false"
useFullscreenExpand="false"
showImageNumber="false"
enableDirectLinks="false"
thumbCornerRadius="10"
thumbFrameWidth="2"
thumbSelectedFrameWidth="5"
showInfoButton="false"
captionPosition="NONE">
<image imageURL="http://www.mydomain.com/gallery/images/a.jpg" thumbURL="http://www.mydomain.com/gallery/thumbs/a.jpg" linkURL="" linkTarget=""><title></title><caption></caption></image><image imageURL="http://www.mydomain.com/gallery/images/b.jpg" thumbURL="http://www.mydomain.com/gallery/thumbs/b.jpg" linkURL="" linkTarget=""><title></title><caption></caption></image></juiceboxgallery>

Again, this config file works fine with version 1.2

Re: Config file not found - upgrade from 1.2 to 1.4

As I mentioned earlier, Juicebox v1.4.2 is certainly able to use a PHP file to dynamically generate XML data for a gallery.
In fact, WP-Juicebox (the Juicebox plugin for WordPress) does this and works fine with Juicebox v1.4.2.

In order to investigate further, I would really need to see your gallery live on your web server so please post the URL to your gallery or let me know if you would rather that I contact you via email so that you can email me the URL to your gallery instead.

Re: Config file not found - upgrade from 1.2 to 1.4

Steven wrote:

As I mentioned earlier, Juicebox v1.4.2 is certainly able to use a PHP file to dynamically generate XML data for a gallery.
In fact, WP-Juicebox (the Juicebox plugin for WordPress) does this and works fine with Juicebox v1.4.2.

Yes, I know. This is exactly what I've been doing up until this point. What I said was that I'm questioning whether the XML that's being generated is correct for versions of Juicebox higher than 1.2 (which is why I included the text).

In order to investigate further, I would really need to see your gallery live on your web server so please post the URL to your gallery or let me know if you would rather that I contact you via email so that you can email me the URL to your gallery instead.

There's nothing for you to see, because it works flawlessly under v1.2. The only problem is when I switch to a later version of the juicebox.js file, and I can't leave my website in that state because it would be totally broken.

Re: Config file not found - upgrade from 1.2 to 1.4

OK, I've set up a test page to demonstrate the problem. If you email me, I'll send you the URLs. I have two versions of the same page, where the only difference is the version of the juicebox.js file that they point to. One works, the other doesn't.

Re: Config file not found - upgrade from 1.2 to 1.4

What I said was that I'm questioning whether the XML that's being generated is correct for versions of Juicebox higher than 1.2 (which is why I included the text).

The required format of a gallery's XML file has not changed between v1.2 and the current version (v1.4.2).

There's nothing for you to see, because it works flawlessly under v1.2.

I would really need to see the gallery that does not work. I may or may not be able to determine the cause of the problem but without seeing the gallery in question, I can only guess at probably causes and from what you say, there does not seems to be any. Unfortunately, I cannot think of any reason why a gallery would work with the v1.2 'juicebox.js' file but not with the v1.4.2 version.

OK, I've set up a test page to demonstrate the problem. If you email me, I'll send you the URLs. I have two versions of the same page, where the only difference is the version of the juicebox.js file that they point to. One works, the other doesn't.

Thank you. Hopefully I will be able to figure out what is causing your problem.
Please check your email. I have sent you a message.

Re: Config file not found - upgrade from 1.2 to 1.4

Yeah, it seems odd. I'm out of obvious solutions. I've emailed you the two test URLs to see if you have any ideas.