Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I've created three Galleries with pics. Everything works fine except for the colorbox.
When I click a thumbnail it says: This content failed to load.
The weird things is that if I disable colorbox on the album and select Show media on a full page it shows the content. When I change the value back to Show media in a lightbox after I viewed all the images as a full page it works now as supposed to.
Comments
Comment #1
parijke CreditAttribution: parijke commentedAnyone?
Comment #2
mattyk008 CreditAttribution: mattyk008 commentedI have the same problem. I just installed Media Gallery on two sites and both are behaving the same as what is described here.
I've tried to toggle the setting and play around to get things to work thinking I missed a setting. The only solution I've found so far is:
1) Click 'Edit' on a picture
2) When the 'Edit" form opens, click 'View' to go the picture's detail page
3) Go back to album and click on the picture
The picture should now display in the colorbox overlay (at least it did for me).
Now, this isn't a real solution, but may help someone diagnose what is going on here. Does opening the picture in it's detail page result in Media Gallery performing some processing on it that enables it in the colorbox view?
Comment #3
giupenni CreditAttribution: giupenni commentedI have the same problem.
Comment #4
Moloc CreditAttribution: Moloc commentedThe colorbox help states:
- xhrError
- "This content failed to load."
- Error message given when ajax content for a given URL cannot be loaded.
Could you find the issue / solution?
Is it possible for you to check in your browser, what the real response is?
The page, which is returend in the lightbox is not the same as returned on the detail page.
Comment #5
maxollerenshaw CreditAttribution: maxollerenshaw commentedHi,
I have the same issue. I've also been able to replicate the same way #2 explained, however that only works for me when still logged in as admin.
I have found that if you reset all caches I get then you receive the errors "this content failed to load" or the colorbox pops out the overlay with "http://" where the media should be.
The error messages also happens when logged out accessing the site without any permissions. I can only see the content after creating/editing and it is cached (or doing the same action as #2).
Example html from my site:
Working html code:
broken html code, after flushing all caches:
Not sure how the jQuery/ajax works but hoping that this will help point someone in the right direction. As you can see from the html when it works the embedded-video div is loaded with the iframe, however when not logged in or the site is not cached the plugin doesn't work.
Thanks
Max
Comment #6
adam1 CreditAttribution: adam1 commentedI am facing the same error: "This content failed to load.", when trying to open a an external linkt to a webpage in an colorboxed iframe; this happens even without using media gallery.
Comment #7
skorzhI have the same problem, but I don't use Media Gallery, perhaps problem not in this module.
Comment #8
ivnish CreditAttribution: ivnish commented