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
Comment | File | Size | Author |
---|---|---|---|
drupal photoswipe lightbox exception.png | 172.78 KB | tobias-hd |
Comments
Comment #2
sunAs 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 :-)