Image undefined
-
Hi there,
Trying this plugin out but can’t get past the initial loading stage.
My gallery is failing to load with the two errors below. As you can see instead of a correct image URL it’s trying to load ‘undefined’. The second error I presume has to do with the image never loading in the first place.
GET http://localhost:8080/k/site/show/projects/undefined 404 (Not Found)
jquery.finalTilesGallery.js?ver=3.3.30:714 Uncaught TypeError: Cannot read property 'width' of undefined at Plugin.add_to_final (jquery.finalTilesGallery.js?ver=3.3.30:714) at Plugin.add (jquery.finalTilesGallery.js?ver=3.3.30:639) at Plugin.nextTile (jquery.finalTilesGallery.js?ver=3.3.30:423) at Image.img.onerror (jquery.finalTilesGallery.js?ver=3.3.30:499)
This is my markup:
<div class="final-tiles-gallery"> <div class="ftg-items"> <div class="tile"> <a class="tile-inner" href="http://localhost:8080/k/site/wp-content/uploads/2017/12/INESTABLES-1-500x281.jpg"> <img class="item" src="http://localhost:8080/k/site/wp-content/uploads/2017/12/INESTABLES-1-500x281.jpg" data-src="http://localhost:8080/k/site/wp-content/uploads/2017/12/INESTABLES-1-500x281.jpg" /> </a> </div> </div> </div> <script type="text/javascript" charset="utf-8"> jQuery(document).ready(function() { jQuery('.final-tiles-gallery').finalTilesGallery({ margin: 20, gridSize: 40, layout: 'final' }); }); </script>
Any help much appreciated. Cheers!
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Image undefined’ is closed to new replies.