Title: Javascript error, not working
Last modified: August 24, 2016

---

# Javascript error, not working

 *  Resolved [clarklab](https://wordpress.org/support/users/clarklab/)
 * (@clarklab)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/javascript-error-not-working/)
 * Trying the plugin for the first time, I’m getting the error:
 * `Uncaught TypeError: Cannot read property 'firstChild' of undefined`
 * when I click on an image. No modal launches, just that console error. That’s 
   on top of the fact that the mosaic doesn’t work. The images just show up in a
   regular vertical stack.
 * [https://wordpress.org/plugins/photoswipe-masonry/](https://wordpress.org/plugins/photoswipe-masonry/)

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/javascript-error-not-working/?output_format=md)
[1](https://wordpress.org/support/topic/javascript-error-not-working/?output_format=md)
2

 *  Plugin Author [THRIVE – Web Design Gold Coast](https://wordpress.org/support/users/deanoakley/)
 * (@deanoakley)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-not-working/page/2/#post-6140091)
 * Thanks Joel! I managed to get the same error with that turned on. A fix is coming
   shortly.

Viewing 16 replies (of 16 total)

[←](https://wordpress.org/support/topic/javascript-error-not-working/?output_format=md)
[1](https://wordpress.org/support/topic/javascript-error-not-working/?output_format=md)
2

The topic ‘Javascript error, not working’ is closed to new replies.

 * ![](https://ps.w.org/photoswipe-masonry/assets/icon-128x128.png?rev=3464802)
 * [Photoswipe Masonry Gallery](https://wordpress.org/plugins/photoswipe-masonry/)
 * [Support Threads](https://wordpress.org/support/plugin/photoswipe-masonry/)
 * [Active Topics](https://wordpress.org/support/plugin/photoswipe-masonry/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/photoswipe-masonry/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/photoswipe-masonry/reviews/)

 * 16 replies
 * 8 participants
 * Last reply from: [THRIVE – Web Design Gold Coast](https://wordpress.org/support/users/deanoakley/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/javascript-error-not-working/page/2/#post-6140091)
 * Status: resolved