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, it is not possible to preview galleries locally in browsers which use the Chromium web engine (Chrome, Edge and Opera). Please use either Firefox or Safari (using the tweak above) to preview galleries locally.

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.

Edit:
An alternative would be to set up a local web server environment on your computer using a program such an MAMP or XAMPP.
This is not as simple as just changing a browser setting but it would allow you to view a gallery locally in any browser you like.

2 (edited by fkelly12054 2021-08-29 20:43:54)

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

Oh man!  Thank you.  If there is any way you can highlight this or emphasize it, I would bet there are a LOT OF USERS who would appreciate seeing it.  I just blew through 2 hours trying to diagnose this before stumbling across it in Forums.   

Maybe even change the Juicebox Builder Pro program where it says "view in browser" to put some kind of warning in. 

I realize that this Forum posting is a year and a half old, but that just means that a large majority of users are either not going to be able to use the preview or will have to tweak their settings.

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

Hi.

I'm sorry that it took you so long to figure out the solution to the problem but I'm glad that you found this thread.

I've now stickied this topic so that it at least appears at the top of the 'Tricks and Tips' forum.

Maybe even change the Juicebox Builder Pro program where it says "view in browser" to put some kind of warning in.

That would, indeed, be the ultimate solution but, unfortunately, development is rather slow at the moment.

I'll contact the developers and see if there is any other way to increase relevant traffic to this thread.

Thanks.

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

Thank you.  Any increased attention to the browser issue would be helpful.  Usually programmers can modify "labels" even if the underlying logic is left alone.  Where it says "View in Browser" now it could just say "View in Firefox or Chrome (with appropriate settings)" ... but sigh I know that's a bit wordy and subject to changes beyond your control.

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

Thanks for your input! It's most appreciated.

Unfortunately, there are a couple of slightly different issues regarding local viewing so I think if the developers were to address the problem, they'd probably want to change the code to deal with the individual issues rather just push a new release with updated labels (although I agree that this would be a step in the right direction).

Being that I'm not the author of Juicebox and cannot make any changes myself, I think the best I can do is probably add a link to this forum thread from the FAQ that is already linked to from the Juicebox error message.
I've asked the developers if this would be OK. It might at least help users find a solution to the problem.