1 (edited by Ann 2025-05-11 00:01:48)

Topic: "Uncaught ReferenceError: juicebox is not defined"

Steven:

I have run into a major problem: my web site makes extensive use of Juicebox Galleries and none of the most recent ones will display on my browsers.
(Old galleries are fine but the trouble lies with newly-created Galleries.)

I am using an M1 Mac running on Sequoia; and I use iPower.com to host my site.

The worrying message from Firefox is:
"Uncaught ReferenceError: juicebox is not defined
    <anonymous> https://www.shelbourne-america.net/SunB … ex.html:27
index.html:27:2"

Have you had any dealings with iPower.com?

They were recently acquired by new owners but I have had my site with them for many years without any problems.

Do they need to "define Juicebox" or does JB need a new Script?

Or do I need to fix anything at my end?

I also see this: "Juicebox js: An error occured trying to load resource"

Please advise!

Ann

Re: "Uncaught ReferenceError: juicebox is not defined"

Check out this gallery as an example: https://www.shelbourne-america.net/SunB … index.html

The gallery's 'juicebox.js' file should be located here: https://www.shelbourne-america.net/SunB … uicebox.js
... but going to that location directly in a browser results in an error 404 (file not found).

It looks like your gallery's 'juicebox.js' file is simply not present on your web server. (This would account for the error message you've been getting, too.)

Try re-uploading your gallery and make sure that its 'jbcore' folder is complete.

This should hopefully resolve your problem.

Re: "Uncaught ReferenceError: juicebox is not defined"

Steven:
Thank you very much for your prompt response.

This  is a very interesting finding because I loaded that very gallery into iPower.com, through FileZilla, and it shows as being loaded into "public_html" there which is where I believe they load websites.

I will open a conversation with iPower and see what goes on!

Re: "Uncaught ReferenceError: juicebox is not defined"

I hope you get on OK.
You could try re-uploading your gallery before contacting your web host (in case something happened during the original upload resulting in missing files). This might be enough to resolve your problem.
However, if this does not help, then maybe your web host could shed some light on things.
Just for the record, it looks like the entire jbcore folder is missing. Maybe it has been uploaded to a different location and the path to the juicebox.js file in your gallery's embedding code needs to be adjusted? Just a thought.

Re: "Uncaught ReferenceError: juicebox is not defined"

The jpcore was apparently loaded — but when i opened it I found it had no contents! 
That may be the clue to the mystery?

I will let you know what I discover but at least I know now that Juicebox is not the culprit.