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