Topic: "Config file not found." message whilst viewing a gallery locally

FAQ: When I view my gallery locally, I see the message "Juicebox can not display locally in this browser". Why?

If you receive the "Config file not found." message whilst viewing a gallery locally (from your computer's hard drive rather than from a web server) in Firefox or Safari, then please read on.

Recently, both Firefox and Safari have introduced security restrictions which prevent the loading of local files, resulting in the inability to preview Juicebox galleries from your computer's hard drive.
Because these security restrictions were introduced after the current version of Juicebox was released, Juicebox is unaware of the problem and displays the "Config file not found." message (instead of a more descriptive message).

There are, however, workarounds for the problems in these browsers:

Firefox (68 or later):

  • Enter about:config in your Firefox browser's address bar.

  • Click past the warning via the "I accept the risk!" button.

  • Enter privacy.file_unique_origin in the search bar.

  • Double-click the Preference Name to change the Value from 'true' to 'false'.

Safari (11 or later):

  • Pull down the 'Safari' menu and choose 'Preferences'.

  • Click on the 'Advanced' tab.

  • Check the box next to 'Show Develop menu in menu bar'.

  • Close 'Preferences'. The 'Develop' menu will now be visible between Bookmarks and Window menus.

  • Pull down the 'Develop' menu and choose 'Disable Local File Restrictions'.

Please note that relaxing browser security restrictions should be done at your own risk (but it should be no more of a risk than using the previous versions of the browsers before the security restrictions were introduced).

Incidentally, you can also preview galleries locally in Edge (for Windows users) without any modifications required.

Also, it is important to note that this problem applies only to previewing galleries locally (from your computer's hard drive).
There is no problem once the galleries have been uploaded to a web server where they can be viewed without issue in any modern browser.


Re: "Config file not found." message whilst viewing a gallery locally

Hi Steven. I have tried the above fix and I am still getting the error locally and live. Also, when I open the index.html file for this it says the same thing. I am using Firefox v76. I have tried on other browsers with the same thing happening. I have a photogallery directory on the root and then a quebeccity directory in that and that is where all the files, images etc. are. I have placed the below code in the page where I want this gallery to appear. Here is my code:

<script src="photogallery/quebeccity/jbcore/juicebox.js"></script>
new juicebox({
containerId: "juicebox-container",
galleryWidth: "800",
galleryHeight: "400",
backgroundColor: "rgba(255,255,255,1)"
<div id="juicebox-container">
<!-- Image gallery content for non-javascript devices -->
<p><img src="photogallery/quebeccity/images/quebeccity1.jpg" title="quebeccity1" alt="" /><br>quebeccity1 </p>
<p><img src="photogallery/quebeccity/images/quebeccity2.jpg" title="quebeccity2" alt="" /><br>quebeccity2 </p>
<p><img src="photogallery/quebeccity/images/quebeccity3.jpg" title="quebeccity3" alt="" /><br>quebeccity3 </p>
<p><img src="photogallery/quebeccity/images/quebeccity4.jpg" title="quebeccity4" alt="" /><br>quebeccity4 </p>
<p><img src="photogallery/quebeccity/images/quebeccity5.jpg" title="quebeccity5" alt="" /><br>quebeccity5 </p>
<p><img src="photogallery/quebeccity/images/quebeccity6.jpg" title="quebeccity6" alt="" /><br>quebeccity6 </p>
<p><img src="photogallery/quebeccity/images/quebeccity7.jpg" title="quebeccity7" alt="" /><br>quebeccity7 </p>
<p><img src="photogallery/quebeccity/images/quebeccity8.jpg" title="quebeccity8" alt="" /><br>quebeccity8 </p>
<p><img src="photogallery/quebeccity/images/quebeccity9.jpg" title="quebeccity9" alt="" /><br>quebeccity9 </p>
<p><img src="photogallery/quebeccity/images/quebeccity10.jpg" title="quebeccity10" alt="" /><br>quebeccity10 </p>
<p><img src="photogallery/quebeccity/images/quebeccity11.jpg" title="quebeccity11" alt="" /><br>quebeccity11 </p>
<p><img src="photogallery/quebeccity/images/quebeccity12.jpg" title="quebeccity12" alt="" /><br>quebeccity12 </p>
<p><img src="photogallery/quebeccity/images/quebeccity13.jpg" title="quebeccity13" alt="" /><br>quebeccity13 </p>
<p><img src="photogallery/quebeccity/images/quebeccity14.jpg" title="quebeccity14" alt="" /><br>quebeccity14 </p>
<p><img src="photogallery/quebeccity/images/quebeccity15.jpg" title="quebeccity15" alt="" /><br>quebeccity15 </p>
<p><img src="photogallery/quebeccity/images/quebeccity16.jpg" title="quebeccity16" alt="" /><br>quebeccity16 </p>

I can't for the life of me figure this out and if it does not work then I need to get a refund. Please help, it's driving me crazy!!

Re: "Config file not found." message whilst viewing a gallery locally

If you see the "Config file not found." message for a gallery which has been uploaded to a web server, then the tips above will not help. They are specifically for help with local viewing only (viewing a gallery from a computer's hard drive rather than from a web server).
Please see my response to your query in this forum thread. I hope my suggestions over there help.