After creating a new content and new views for Juicebox, the images that upload do not show up.

Notice: Undefined index: width in theme_juicebox_embed_markup() (line 25 of /home2/xxxxxx/public_html/sites/all/modules/juicebox/themes/juicebox.theme.inc).
Notice: Undefined index: height in theme_juicebox_embed_markup() (line 26 of /home2/xxxxxx/public_html/sites/all/modules/juicebox/themes/juicebox.theme.inc).

I received this error which only shows once after trying to view gallery.

Comments

rjacobs’s picture

Hi eujc21,

It sounds like you setup a view and told it to render as a Juicebox gallery but did not actually configure the Juicebox page display settings. In other words, I'm guessing you only did steps 1-4 from the "Using the Juicebox views style plugin" section of the documentaion and still need to complete the rest of the configuration steps (specifically step 7).

Please let me know if this addresses things.

rjacobs’s picture

Status: Active » Closed (works as designed)

I haven't heard anything back on this in many days so I'm just hoping my comments in #1 helped sort things out. If this is still a problem, it can be re-opened.

daubrey86’s picture

Version: 7.x-1.0-beta2 » 7.x-1.0-alpha2

I am having a similar issue.

When I view the node (without using views) it works correctly:
http://www.robpage.ca/

however, when using the views as described in the tutorial (I am really only using views so that I can remove the node title), the thumbnails show but the slide images do not.

http://www.robpage.ca/

I have tried in both firefox and IE... I have also tried clearing cache and have tried adjusting the juicebox settings within views

any ideas?

rjacobs’s picture

Hi daubrey86. I don't think the problem you are seeing is views specific. My guess is that you are using a different image style for your main images in each example, and the one set in the views example is causing an issue.

Regardless, you are indicating that you have version 7.x-1.0-alpha2 of this module installed, which is quite old. Please note that version 7.x-1.0-rc2 is now available and a lot of things have been fixed/improved between the version that you have and this current one. My main suggestion is that you upgrade and you will hopefully see the problem go away. If you continue to see issues with version 7.x-1.0-rc2 or greater please let me know or open a new issue.

Cheers

rjacobs’s picture

Also, in terms of the initial error report for this thread, I still think this was a case where the view was not yet fully configured. However, as this can be any easy mistake to make, a reminder message has been added in the most recent version (see #1993290: Notice: Undefined variable: field_options in juicebox_style_plugin->options_form() ) to help ensure people don't forget. The bottom-line is that all users are encouraged to upgrade to the most recent version.

rjacobs’s picture

Version: 7.x-1.0-alpha2 » 7.x-1.0-beta2

Housekeeping - changing back to the version that the original problem was associated with for historical tracking.

wasiiim’s picture

Version: 7.x-1.0-beta2 » 7.x-1.1

hi
i had the same problem i created a content type add fields to it and every thing is cool for now after i created the view and did just like the documentation said but finally the page does'nt show the gallery so help me please

rjacobs’s picture

Status: Closed (works as designed) » Active

Hi Skycool,

When you access the normal views page that should contain a gallery do you see any error messages? After the page loads do you see any part of the gallery at all (e.g. a box for the gallery appears but does not seem to show any images)? Also, when you access the configuration options for that specific view (in admin/structure/views/) do you see any warning message on that page?

Lastly, are you able to share a public URL to an example gallery page that is not working correctly? If this is possible it will be very helpful.

wasiiim’s picture

Due to javascript requirements Juicebox galleries cannot be viewed as a live preview. Please save your view and visit the full page URL for this display to preview this gallery.
here is the only warning i got in the views page
here the url for the gallery http://ssnp-latakia.org/LNN/juiceboxer
nothing appears i noticed that when i choose the juicebox gallery type to show the images in the manage display page the images dissapears. hope you got any idea

rjacobs’s picture

Thanks for the link, that is always very useful.

The message "Due to javascript requirements Juicebox galleries cannot be viewed as a live preview..." is normal, so if you are not seeing other errors in the view conf pages it should mean that you have gone through all the configuration steps correctly.

Actually, as far as I can tell everything is working correctly on the Drupal (and module) side. The Juicebox embed code looks correct, the Juicebox javascript is included on the header, the Juicebox XML is being generated correctly, the image links in the Juicebox XML work fine, etc...

The problem appears to be somehow linked to the Juicebox javascript library itself as I get a couple javascript errors in my browser console when loading your example page, specifically one of the nature "SyntaxError: unterminated string literal" that points to part of the juicebox.js file. This error seems to be preventing the Juicebox javascript from being loaded at all (which of course prevents the gallery from being rendered at all).

For testing purposes you may want to try disabling other modules that may be loading custom javascript (things like jquery update, lighbox modules, etc.) to see if there is a conflict. You could also try switching to a different theme (switch to the default Garland theme) to rule-out problems there. These would probably be the first steps to take to try to isolate the issue.

Since the Juicebox javascript is not part of this module, and is not even viewable (the code is obfuscated), I can't really provide any support at that level. However, given that there are lots of people using the Juicebox javascript without problems like this I would assume that there is something unique to your setup that's causing a conflict. Hopefully disabling some Durpal components piece-by-piece would reveal the source of the conflict.

No matter what, let us know what you find. If there is no obvious conflict with other Drupal components, you could always try contacting the Juicebox javascript library developers as well (http://juicebox.net/support/) as they may have a better understanding of this kind of javascript-specific problem.

rjacobs’s picture

Status: Active » Closed (works as designed)

As I have not heard anything back on this in over 2 weeks, I'm going to close the issue once again. If anyone has an issue similar to this one in the future I'd suggest opening-up a totally new issue report.

shinapardilla’s picture

in my case i don't encounter error or any notices ,but my problem is that i can add field to the juicebox field,i tried many times refreshing my tab, but the only interface that comes out is a transparent color back. it doesn't load anymore.It's almost the same in configuring my colorbox to make a gallery

rjacobs’s picture

@shinapardilla@rosco, it's hard to say if your issues is related to any of the topics discussed in this thread (which as already been closed). If you continue to have a problem, I suggest you open-up a new issue (with the "support request" category) and include as much info as you can there. This will help ensure anything unique about your case is captured correctly.

Also, if you are able to include a link to an example gallery that demonstrates the issue (within the new support request) that's always very helpful.

snaderi’s picture

Due to javascript requirements Juicebox galleries cannot be viewed as a live preview. Please save your view and visit the full page URL for this display to preview this gallery.
here is the only warning i got in the views pag

thats solve only with execute cron or update drupal(exampel.com/update.php)

rjacobs’s picture

Title: Created Views,Page Does Not Show Juicebox Gallery » Created Views leads to "undefined index" errors
Issue summary: View changes

snaderi and shinapardilla, because you are posting on a closed issue your comments will often go unnoticed by the people who can help. Unless you are receiving the same "undefined index" errors that were initially reported in this issue, and are using version a 7.x-1.x version of the module, I suggest you simply open up a new issue report (via the link at the top of this page: https://drupal.org/project/issues/juicebox) detailing your situation. This will make it easier (and faster) for you to get help.

I'm also adjusting the title of this issue to make it more specific to the unique problem that was initially reported.