Gallery seems to work fine, thmbs are correctly created and displayed inside the page, but if i enable lightbox i click on the image , the screen becames grey ando no picture, if i click on the link with image the image apear in light box after som screen fliker. any ideas?

if you want you can take a look on this work in progress place: http://portale.nauticapezzotti.it/gallery-collections/immagini-del-lago-...

thanks for any replay

CommentFileSizeAuthor
ex-media-gallery.jpg12.79 KBveneficus
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Moloc’s picture

I have done some tests.
You are using the newest colorbox library v1.3.18 --> This works fine on my machine.
You seem to use the jQuery Update module, using CDN: Google with v1.5.2 --> Then i have the same issue, as you describe it. (CSS Property opacity is set to 0 instead of 1 on div#colorbox.)

Do you need jQuery Update? Try disabling it. Does it work now?

veneficus’s picture

Status: Active » Fixed

Dear moloc, you are my hero :) that worked form me. but not just disabling module in fact i did:

1) disabled jquery update
2) uninstalled it
3) clear cache twice, then lightbox worked!

thanks really a lot

Moloc’s picture

I have done some more tests:
jQuery v1.6.1 -> FAIL
jQuery v1.6.4 -> works again
jQuery v1.7.1 -> works again

Therefore it seems, that this is an jQuery issue. So wait for the next "jQuery update" module update, and this error should be gone.

veneficus’s picture

Ok i will follow your suggestion. thanks again for your help..

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

pianomansam’s picture

Title: lightbox does not show any picture » Incompatible with jQuery Update - Lightbox does not show any picture
Version: 7.x-1.0-beta7 » 7.x-1.0-beta8
Priority: Normal » Major
Status: Closed (fixed) » Active

Issue still exists in beta8. Upgrading priority to major as jQuery Update is an important module to be compatible with. For those of you who, like me, cannot simply disable jQuery Update, a CSS based solution is to use the following style rule in your theme or custom module:

#colorbox {
  opacity: 1 !important;
}
Moloc’s picture

Issue summary: View changes
Priority: Major » Normal
Status: Active » Fixed

As stated in #3, this is a jQuery issue, which is fixed in newer versions.

Tested again the jQuery update module using the newest version 7.x-2.4 with jQuery 1.10.x. Works fine. So please update jQuery Update and the issue should be solved.

pianomansam’s picture

Status: Fixed » Active

@Moloc, not everyone can simply upgrade to jQuery 1.10.x so requiring that is not an acceptable solution.

Moloc’s picture

I did some more tests...

Drupal core 7.34
Chaos tool suite (ctools) 7.x-1.5
jQuery Update 7.x-2.4
Media 7.x-1.4
Media Gallery 7.x-1.0-beta8+12-dev (2014-Nov-23)
Multiple forms 7.x-1.1

Using colorbox 1.5.14
jQuery 1.4.4 --> OK (using Drupal default)
jQuery 1.5.1/2 --> OK (using jQuery Update module) Note: jQuery Update assumes 1.5.2, but 1.5.1 is shipped.
jQuery 1.7.1 --> OK (using jQuery Update module)
jQuery 1.8.2 --> OK (using JQuery Update module)
jQuery 1.9.1 --> OK (using jQuery Update module)
jQuery 1.10.2 --> OK (using jQuery Update module)

Using colorbox 1.4.37
jQuery 1.5.1 --> OK (using jQuery Update module)
jQuery 1.7.1 --> OK (using jQuery Update module)
jQuery 1.8.2 --> OK (using JQuery Update module)
jQuery 1.9.1 --> OK (using jQuery Update module)
jQuery 1.10.2 --> OK (using jQuery Update module)

Using colorbox 1.3.34
jQuery 1.4.4 --> OK (using Drupal default)
jQuery 1.5.1/2 --> Failed (using jQuery Update module)
jQuery 1.7.1 --> OK (using jQuery Update module)
jQuery 1.8.2 --> OK (using JQuery Update module)
jQuery 1.9.1 --> OK (using jQuery Update module)
jQuery 1.10.2 --> OK (using jQuery Update module)

So there seems to be a incompatibility between colorbox 1.3.x and jQuery 1.5.x
As this incompatibility has nothing to do with the media_gallery version, we cannot fix it in media_gallery.

So if you are not able to update the module jQuery Update or the colorbox library, then you have to use your provided workaround. As this issue can be solved with an update of one of those two libraries, i don't like to see this workaround in the media_gallery code.

ivnish’s picture

Status: Active » Closed (outdated)