Fixed Lightbox sidebar missing for Embeds, Videos and Audio media types

marquisite

Well-known member
Affected version
2.3.2
The lightbox sidebar is missing for embed, video and audio media types. This is happening with XFMG 2.3.2 and here on XenForo.com at the time of posting. The sidebar does correctly display for images.

Upon checking the browser console, an uncaught TypeError is logged for the XF2.3 lightbox (in the case of embeds, videos and audio):
JavaScript:
Uncaught TypeError: b.contentEl is undefined
    onSlideDisplayed https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:15
    trigger https://xenforo.com/community/js/xf/core-compiled.js?_v=f87c062b:8
    Carousel.ready Carousel.change https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:26
    emit https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:1
    emit https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:1
    initCarousel https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:1
    emit https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:1
    emit https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:1
    emit https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:1
    init https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:1
    processOptions https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:1

A similar uncaught TypeError happens when using the prev/next lightbox buttons to navigate to a non-image media item:
JavaScript:
Uncaught TypeError: b.slide is undefined
    onSlideDisplayed https://xenforo.com/community/js/xf/lightbox-compiled.js?_v=f87c062b:16
 
I was just about to report this:

Click a video media item -> click the arrow to view the next video media item in the lightbox

The sidebar loads forever.
 
Thank you for reporting this issue, it has now been resolved. We are aiming to include any changes that have been made in a future XFMG release (2.3.4).

Change log:
Fix sidebar not loading for videos/embeds.
There may be a delay before changes are rolled out to the XenForo Community.
 
Well, that's infuriating :)

I promise it was working earlier. In fact, it does seem to be working for embeds now. It's some sort of annoying race condition which is mostly down to the underlying library.
 
Notice how the URL of the page doesn't update in the browser address bar when you shift through the media videos too. You can hear the audio from the previous media video when you're on the new media.
 
Notice how the URL of the page doesn't update in the browser address bar when you shift through the media videos too. You can hear the audio from the previous media video when you're on the new media.
Yeah I reported this back in first beta, confirmed, but it's just sat pending :(
 
Back
Top Bottom