The page I am experiencing this issue on is this one.
I have tried swapping out static lightGallery JS for CDNJS version, I've tried calling the function in both JS and jQuery and I've even tried calling the lightGallery JS in both the header and footer but I'm still getting this issue.
I've tried searching but can't find any questions with a relevant and working answer for me.
I've had this plug in working in the past but it seems to have broken over the weekend. I thought it might have been a WordPress update that's broken it but I can't roll back to check!
Code example below:
$("#isotope-list").lightGallery();
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.3.9/js/lightgallery.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" />
<link href="https://cdnjs.cloudflare.com/ajax/libs/lightgallery/1.3.9/css/lightgallery.css" rel="stylesheet" />
<ul id="isotope-list" class="small-block-grid medium-block-grid large-block-grid">
<li class="ghentenaar item lazy" data-original="http://abbagoldeurope.com/wp-content/uploads/2014/02/ghent46-e1421310997505.jpg" height="150px" width="150px">
<div class="gallery-inner">
<img class="th" src="http://abbagoldeurope.com/wp-content/uploads/2014/02/ghent46-150x150.jpg" />
</div>
</li>
<li class="ghentenaar item lazy" data-original="http://abbagoldeurope.com/wp-content/uploads/2014/02/ghent12-e1421311015711.jpg" height="150px" width="150px">
<div class="gallery-inner">
<img class="th" src="http://abbagoldeurope.com/wp-content/uploads/2014/02/ghent12-150x150.jpg" />
</div>
</li>
<li class="ghentenaar item lazy" data-original="http://abbagoldeurope.com/wp-content/uploads/2014/02/ghent11-e1421311034730.jpg" height="150px" width="150px">
<div class="gallery-inner">
<img class="th" src="http://abbagoldeurope.com/wp-content/uploads/2014/02/ghent11-150x150.jpg" />
</div>
</li>
</ul>
<ul id="isotope-list" class="small-block-grid medium-block-grid large-block-grid" style="position: relative; height: 0px;">
<li data-src="https://www.youtube.com/watch?v=AW63bqMYkF4">
<img src="https://img.youtube.com/vi/AW63bqMYkF4/default.jpg">
</li>
<li data-src="https://www.youtube.com/watch?v=JBzTx_3L57w">
<img src="https://img.youtube.com/vi/JBzTx_3L57w/default.jpg">
</li>
<li data-src="https://www.youtube.com/watch?v=F6LpkwQe_RA">
<img src="https://img.youtube.com/vi/F6LpkwQe_RA/default.jpg">
</li>
</ul>
The error I get in console is TypeError: src is undefined
.
Thanks in advance.