Hello,

lightbox mode runs into an exception after some time, with my installation of drupal 8, photoswipe 4.1.0. When entering the side, everything seems to be fine at first, but after some minutes, the lightbox does not come up anymore, when an image node is clicked. The javascript console reports the following error:

Uncaught TypeError: Cannot read property 'firstChild' of undefined
e.getChildByClass @ js_iKAT-TFojHAWG72u-5STG0xWrEGrHw5f4hqIYFhPKGk.js:8168
db.init @ js_iKAT-TFojHAWG72u-5STG0xWrEGrHw5f4hqIYFhPKGk.js:8168
Drupal.behaviors.photoswipe.openPhotoSwipe @ js_iKAT-TFojHAWG72u-5STG0xWrEGrHw5f4hqIYFhPKGk.js:8279
Drupal.behaviors.photoswipe.onThumbnailsClick @ js_iKAT-TFojHAWG72u-5STG0xWrEGrHw5f4hqIYFhPKGk.js:8245
n.event.dispatch @ js_iKAT-TFojHAWG72u-5STG0xWrEGrHw5f4hqIYFhPKGk.js:3
r.handle @ js_iKAT-TFojHAWG72u-5STG0xWrEGrHw5f4hqIYFhPKGk.js:3

See also screenshot.

This can be temporarily repaired by clearing all caches. But then again, after some clicks to different administration menus, this exception appears again.

Tested with Chromium 49 and Firefox 45. This appears as well with ImageMagick 8.x-1.0-alpha1+3-dev, as with GD image library.

Best regards,
Tobias

CommentFileSizeAuthor
drupal photoswipe lightbox exception.png172.78 KBtobias-hd
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

tobias-hd created an issue. See original summary.

sun’s picture

Priority: Major » Normal
Status: Active » Fixed

As no one else confirmed this issue in the meantime, I assume that the code of the module has improved since 2016 and this issue has been fixed since then.

However, thanks for reporting this bug! We can only improve through collaboration :-)

Status: Fixed » Closed (fixed)

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