Topic: Javascript Errors

I'm trying to embed a juicebox gallery into a wordpress site, but am getting javascript errors and the images don't appear. It's on this page/site: http://wwwsevenarrows.zippykid.it/index … -of-india/

Below is the one of the errors that I see, there are many.

Thanks for any help you can offer.

Andrew


(TOO LONG TO PASTE WHOLE MESSAGE WITH ERROR CODES)

Re: Javascript Errors

For this same gallery, i'd like to have it so that juicebox only has the thumbnails for the gallery. It seems that maybe wordpress has put it's thumbnails above the juicebox gallery? How do i remove the thumbnails above the juicebox gallery, since when i click on them, they just go to a blank page. Please see screenshot: http://cl.ly/1d1w241M0d0P0E3B2a1n

Re: Javascript Errors

the images don't appear

You do not seem to have attached any images to the post which contains the gallery as your gallery's XML file contains no images: http://wwwsevenarrows.zippykid.it/wp-co … ebox/2.xml

It seems that maybe wordpress has put it's thumbnails above the juicebox gallery?

It looks like you may have clicked 'Insert Gallery' on the 'Add Media -> Gallery' tab.
This refers to a WordPress gallery and has nothing to do with Juicebox but may account for the images above the Juicebox gallery on your page.
After adding images, clicking 'Save Changes' and being redirected to the 'Gallery' tab, simply close the upload window and publish or update the post.

Re: Javascript Errors

Thanks Steven,

The main issue is that we are getting some javascript conflict.

Timestamp: 7/10/2012 12:09:04 AM
Error: detail_panel.get_current_photo() is undefined
Source File: http://wwwsevenarrows.zippykid.it/wp-co … ?ver=1.1.0
Line: 14

juicebox is not displaying the gallery, it is black.

Re: Javascript Errors

detail_panel.get_current_photo() is undefined

This JavaScript error is generated because there are no images listed in your XML file.
Once you create a working gallery (with images), this JavaScript error will not be generated.

Re: Javascript Errors

hmmmm, i went back and did add the images as you suggested. Not sure why they aren't appearing. I setup another site with juicebox and was able to get that working without any issue. I wonder if there is some plugin issue or conflict.

Re: Javascript Errors

In your original site, go into your WordPress Media Library and look to see if there are any images attached to the post containing your Juicebox gallery.
If there are images showing as being attached to your post, go back to 'Edit' your post and click 'Update'.
If there are no images showing as being attached to your post, attach some (upload some first if you have to) and then go back to 'Edit' your post and click 'Update'.

Re: Javascript Errors

Thanks, what i discovered was that I can't create a gallery inside of the woo themes shortcode, I have to place it outside. I added this juicebox gallery: http://wwwsevenarrows.zippykid.it/curri … -of-india/

I had to make the height only 250 pixels, in the juicebox gallery settings. If they are more, then the gallery goes under the purple line on the bottom and the content doesn't automatically expand. I wonder if there is a way to do that?

Re: Javascript Errors

It sounds like your theme sets a fixed height for your page which you would need to change in order to add any element (whether it is a Juicebox gallery or something else) with a height of greater than 250px.
I am not familiar with WooThemes but perhaps there is an option in the theme's settings (within the WordPress Dashboard) to alter the page height parameter.
If you cannot find such an option, then perhaps the WooThemes support pages and forum may help further.

Re: Javascript Errors

Error: detail_panel.get_current_photo() is undefined

This bug has now been fixed in v1.1.1. (Juicebox no longer throws a JavaScript error with an empty gallery.) Please see this Juicebox Blog entry for further details.