Topic: Config.xml not found - Dreamweaver [SOLVED]

I have a Dreamweaver design site with a Spry Menu structure for a large collection of photo galleries over the years (for friends). The menu connects to each gallery (currently most are TurningGate java galleries), and an "href<" call opens each gallery index.html as a new page. The gallery HOME button returns from gallery back to the DW site home page. The TTG galleries do not contain a separate config.xml file.

This is NOT an embed structure. I pass the Dreamweaver HOME page over to the gallery HOME page, the return with an href to the Dreamweaver HOME index.html through the JBX HOME button. I can't get the JBX galleries to load on the site.

I have begun rebuilding all these galleries in Jukebox Pro (much preferred for my purposes). I want to replicate the same menu structure, and simply substitute JBX gallery url in the menu code: see below example. BUT, all JBX galleries give the same error message: "Config.xml cannot be found." Each JBX gallery is fully functional on my local drive from its own index.html before import. All galleries located in "LRGalleries" folder main website directory. Each url href call is functional in Spry Menu the website the the TTG galleries except for the JBX "Texan Sculpture" JBX gallery. It finds the index.html in JBX gallery folder, but it appears that the code in that file cannot find the config.xml file in the same folder.

Can anyone tell me what I am doing incorrectly here to suit JBX requirements?

Site: MOREthanSnapshots.com

Spry Menu example: menu and submenu list in cascade choice selections.
<li><a class="MenuBarItemSubmenu" href="#">Recent</a>
          <ul>
            <li><a href="../LRGalleries/crestoneTTG/index.html">Crestone Mtns, CO</a></li>
            <li><a href="../LRGalleries/bartoncrkTTG/index.html">Barton Creek, Austin</a></li>
            <li><a href="../LRGalleries/TxCapSculptureJBX/index.html">Texan Sculpture</a></li>
            <li><a href="../LRGalleries/grandtetonsTTG/index.html">Grand Tetons</a></li>

JBX index.html code for Texan Sculpture gallery:

<!DOCTYPE html>


<html lang="en">
    <head>
        <title>Texas Pioneers, State Capitol Grounds</title>
        <meta charset="utf-8" />
        <meta name="description" content="" />
        <meta name="viewport" id="jb-viewport" content="minimal-ui" />
                <!--START OPEN GRAPH TAGS-->
        <meta property="og:description" content="" />
        <meta property="og:image" content="/images/TxSculpture-9.jpg" />
        <meta property="og:title" content="Texas Pioneers, State Capitol Grounds" />
        <meta property="og:type" content="website" />
        <meta property="og:url" content="/" />
        <!--END OPEN GRAPH TAGS-->
                <style type="text/css">
            body {
                margin: 0px;
                            }
        </style>
    </head>
    <body>
        <!--START JUICEBOX EMBED-->
        <script src="jbcore/juicebox.js"></script>
        <script>
            new juicebox({
                backgroundColor: "rgba(0,0,0,1)",
                containerId: "juicebox-container",
                galleryHeight: "100%",
                galleryWidth: "100%"
            });
        </script>
        <div id="juicebox-container">
                            <noscript>
                    <h1>Texas Pioneers, State Capitol Grounds</h1>
                                            <p><img src="images/TxSculpture-9.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-7.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-8.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-14.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-10.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-12.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-13.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-19.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-16.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-19_1.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-19_2.jpg" title="" alt="" /><br /></p>
                                            <p><img src="images/TxSculpture-15.jpg" title="" alt="" /><br /></p>
                                    </noscript>
                    </div>
        <!--END JUICEBOX EMBED-->
    </body>
</html>

Re: Config.xml not found - Dreamweaver [SOLVED]

The embedding code for your 'Texas Sculpture' gallery on this page: http://morethansnapshots.com/LRGallerie … index.html
... does not contain a configUrl or baseUrl so Juicebox looks for a file named 'config.xml' in the same directory as the HTML page containing the embedding code.
Therefore, there should be a 'config.xml' file here: http://morethansnapshots.com/LRGallerie … config.xml

However, going directly to that location in a browser results in an error 403 (permission denied).
It looks like your gallery's 'config.xml' file might be in the correct location on your web server but that its permissions are too restrictive. Check the permissions of the file (and its parent folders) on your web server (perhaps using a dedicated FTP program such as Filezilla of via your web hosting account's online CPanel).
Default permissions of 755 for folders and 644 for files should work fine.

Hopefully this will solve your problem.

Re: Config.xml not found - Dreamweaver [SOLVED]

Apologies for tardiness. Other work to do before I could get back to this.

I use bluehost, and have checked the permssions on all the folders and files. They are 755 and 644 as you mentioned. Either good or bad; I was hoping it would be that simple.  I am using a subdirectory to run the site, but the URL points to it, and the other galleries that are written in TTG java function just fine. For some reason, the gallery index.html will not pick up the config.xml file that is contained in its own folder.

Either I am not understanding "embedding" or you may have missed what I am trying to do.

I am NOT trying to embed the gallery inside one of my own DREAMWEAVER web page shells. I am trying to transfer directly from the DREAMWEAVER homepage Spry menu structure to the Juicebox gallery index.html page itself selected, so that the jukebox gallery "takes over the site." I then use the home button coding in the JBX gallery with absolute reference back to my DREAMWEAVER menu and home page master. So, it goes...

Dreamweaver home page with Spry menu [..//index.html ] Select Gallery Menu option...
to galleryfolder/index.html (with config.xml file in that folder as it should be)
      NOT embedding in a DREAMWEAVER page, but showing as fully functional gallery
on select JBX Home Icon, returns to DREAMWEAVER home page [...//index.html]

All the JBX galleries I have constructed are fully functional local in testing.
Is this possible, or do I need to construct a DREAMWEAVER page for every one of the galleries with embed code to make it appear the same way. The site has more than 20 galleries.

This works on the java galleries from TTG, but the do not use the config.xml structure in each gallery. I want to use JUICEBOX, which is much better for rendering photos with same proportions in horizontal and vertical formats. I'm not in a hurry, but I need someone who knows java better than I do, which is not much at all. Sorry to be so much trouble.

Re: Config.xml not found - Dreamweaver [SOLVED]

Whether you intend to display a Juicebox gallery in a web page alongside other content or just on a page of its own, it still needs to be embedded. When you create a gallery with JuiceboxBuilder-Pro or the Lightroom plugin, the gallery is automatically embedded into a page of its own (the 'index.html' page).

You should be able to create a gallery (with the method of your choice), upload the complete gallery folder to your web server and link to the 'index.html' page within the gallery folder.

Your problem is currently with the 'config.xml' file inside the gallery folder (your '/LRGalleries/TxCapSculptureJBX/' folder).
Try opening the 'config.xml' file directly in a browser: http://morethansnapshots.com/LRGallerie … config.xml
This bypasses Juicebox. You should be able to see the contents of the XML file in your browser. Instead, the following message is displayed.

403 Permission Denied
You do not have permission for this request /LRGalleries/TxCapSculptureJBX/config.xml

This suggests that the permissions on the file (or on one of its parent folders) are still too restrictive and your web server is preventing the browser from being able to read the file.
Compare this to the 'config.xml' file in a working gallery: http://www.juicebox.net/demos/lite/full/config.xml

It is not a problem with Juicebox functionality but rather a problem with the XML file on your web server.
Please double-check the permissions on your gallery's 'config.xml' file and on all the directories that the file is nested within ('LRGalleries' and 'TxCapSculptureJBX').

If you continue to experience difficulties, then it would help if I had access to your web server so that I could investigate further.
If you are agreeable to this, please let me know and I will send you a message with an email address where you can send me your FTP login details.
Thank you.

Re: Config.xml not found - Dreamweaver [SOLVED]

Thanks. I think I understand this now. Thanks for the clear explanation. I will search things out, and let you know when I get this solved. It may be in a parent folder, since it is happening to all the JBX galleries that I have placed. Will check permissions on every folder and file in the site. THANKS for all the extra trouble I have caused.

Re: Config.xml not found - Dreamweaver [SOLVED]

No problem.
Hopefully you'll be able to sort things out. It certainly looks like the problem is related to file or folder permissions on your web server.
If you continue to experience difficulties, I'm still happy to take a look for you so just let me know.

Re: Config.xml not found - Dreamweaver [SOLVED]

I have looked at every file in the public_html folder of the site, and all the permissions are folder/755 and file/644.

I'm on bluehost, and checked the the php version they run. It is 5.2 and is set to "Single php.ini". Could that be something? I examined the .htaccess file in public_html, and is a customized file for a site we used to run under joomla. It specifies single php.ini in the first two lines of code...
# Use PHP5 Single php.ini as default
AddHandler application/x-httpd-php5s .php

Then has several REWRITE lines in a Joomla! core SEF Section below.

Also, having seen that my galleries are embeds, do I need so put additional code into files? The site is in a subdomain in the public_html folder.

I told you I new just enough to be dangerous.

Re: Config.xml not found - Dreamweaver [SOLVED]

I'm on bluehost, and checked the the php version they run. It is 5.2 and is set to "Single php.ini". Could that be something?

A Juicebox gallery does not use or require PHP so this is not the cause of the problem.

Without being able to examine your .htaccess file, I do not know if there is any code in there which might be contributing to your problem. Take a look for any references to XML files. (Search the file for the term 'xml' and temporarily remove any entries found to see if this helps.)

Perhaps the best thing to do would be to contact your web host and ask them why your http://morethansnapshots.com/LRGallerie … config.xml file is not publicly accessible and why trying to access it in a browser results in an error 403 (forbidden) message.

Also, having seen that my galleries are embeds, do I need so put additional code into files?

No. For what you are trying to do (link directly to full-browser gallery pages), all you should need to do is:
(1) Create a gallery with JuiceboxBuilder-Pro (or whatever other method you like).
(2) Upload the complete gallery folder (not just the contents) to your web server (without making any modifications to the contents of the gallery folder at all).
(3) Link to the gallery's 'index.html' file (inside the gallery folder) from your main web page.

If your web server was allowing access to your gallery's XML file, then you would not be experiencing any problems.
Your web host should hopefully be able to quickly and easily determine the exact cause of your problem and fix it for you.

Re: Config.xml not found - Dreamweaver [SOLVED]

I have talked at length with bluehost.com. Permissions were checked with no errors found, but they did a global reset to folders 755, files 644. They find no problem with connection to the server.

The website locally opens all jukebox galleries with no problem. All galleries are generated out of Lightroom 5 plug-in. It is synced through Dreamweaver and cache is cleared after each upload. All of the juicebox galleries still return "config.xml" cannot be found, but the files identical to local. Bluehost suggests I return to Juicebox to have you examine the link in the gallery html call to config.xml. Where is this call? How can I help you verify it is correct?

Re: Config.xml not found - Dreamweaver [SOLVED]

Bluehost suggests I return to Juicebox to have you examine the link in the gallery html call to config.xml. Where is this call? How can I help you verify it is correct?

In the gallery's embedding code (in the HTML web page which contains the gallery), Juicebox can use a configUrl (to point towards a specific XML file) or a baseUrl (to point towards a specific gallery folder). If neither a configUrl nor a baseUrl are used, then Juicebox, by default, will look for a file named 'config.xml' within the same directory as the HTML web page which contains the gallery.

However, the problem is not with Juicebox but with direct access to the 'config.xml' file on your web server.
When you open the 'config.xml' file (http://morethansnapshots.com/LRGallerie … config.xml) directly in a browser (taking Juicebox out of the equation), you should see the contents of the file (like when viewing this sample 'config.xml' file directly in a browser). However, in your case, you see an error 403 (forbidden) message. It is incidental that the 'config.xml' file in question happens to be part of a Juicebox gallery.

Please ask your web host specifically why your http://morethansnapshots.com/LRGallerie … config.xml file is not publicly accessible and why trying to access it directly in a browser results in an error 403 (forbidden) message. This is certainly the root of the problem.

In the meantime, try deleting the 'config.xml' file from your web server and re-upload it (and double-check its permissions afterwards) in case something happened during the initial upload which resulted in a corrupt file which might somehow be contributing to your problem.

Re: Config.xml not found - Dreamweaver [SOLVED]

Thanks, again. I will cut and paste the above and send to bluehost, and ask specifically for a tech level who can search out the problem at bluehost. I appreciate your patience and will let you know the results for future reference here.

Re: Config.xml not found - Dreamweaver [SOLVED]

FWIW, I use Bluehost as well, for all of my galleries (about 70 of them). I just looked at my permissions, and they are listed (in Filezilla) as -rw-r--r-- (whatever that is in numbers), for the images, gallery.html, index.html, and config.xml. These are unembedded galleries, and are uploaded via jAlbum's internal uploading applet.

The directories themselves -- hi-res, res, slides, and thumbs -- are listed as drwxr-xr-x.

I never specified anything about permissions, so this is what happens by default, apparently, using Bluehost and saying nothing about the matter to jAlbum and the Juicebox-Pro skin I use.

Cheers,

Bill P.

Re: Config.xml not found - Dreamweaver [SOLVED]

@wspollack
These default values (644 and 755) look to be fine and should not produce a forbidden 403 error.

@dmeriwether
I hope that you and your web host are able to resolve the issue on your web server.

Re: Config.xml not found - Dreamweaver [SOLVED]

Steven wrote:

@wspollack
These default values (644 and 755) look to be fine and should not produce a forbidden 403 error.

@dmeriwether
I hope that you and your web host are able to resolve the issue on your web server.

Steven: right, no problems here. I was only posting to let you and the OP know that -- at least as far as I'm concerned -- there is not a problem with Bluehost... which the OP and I both use. So it looks as if he must somehow be altering the default situation, however he gets the JB files from his PC/Mac to Bluehost.

Re: Config.xml not found - Dreamweaver [SOLVED]

Mystery solved! The tech at bluehost discovered a legacy code in the .htaccess file from customization required on old work on a joomla site. Cleared the file, and all the galleries appear.

Thanks to Bluehost, and thanks for the patience to everyone in the forum.

Re: Config.xml not found - Dreamweaver [SOLVED]

I'm glad your problem has been resolved.
Thank you for posting back to let me know.