Uncaught TypeError: a.indexOf is not a function
-
Hello everyone,
The plugin seems to not recognize jQuery. I’ve tried several ways of including jQuery – it’s loading, other plugins using jQuery (Bootstrap) are working, but not the portfolio gallery.
The loading icon of the gallery appears, but it’s loading endlessly – the gallery items never show up.
Checking the console I’ve found various warnings and errors:
jQuery.Deferred exception: a.indexOf is not a function TypeError: a.indexOf is not a function at r.fn.init.r.fn.load (https://code.jquery.com/jquery-3.2.1.min.js:4:18894) at Portfolio_Gallery_Elastic_Grid._this.init (https://localhost/designportfolio/wp-content/plugins/portfolio-gallery/assets/js/view-elastic-grid.js?ver=1.0.0:83:24) at new Portfolio_Gallery_Elastic_Grid (https://localhost/designportfolio/wp-content/plugins/portfolio-gallery/assets/js/view-elastic-grid.js?ver=1.0.0:96:10) at HTMLDivElement.<anonymous> (https://localhost/designportfolio/wp-content/plugins/portfolio-gallery/assets/js/view-elastic-grid.js?ver=1.0.0:102:25) at Function.each (https://code.jquery.com/jquery-3.2.1.min.js:2:2715) at r.fn.init.each (https://code.jquery.com/jquery-3.2.1.min.js:2:1003) at HTMLDocument.<anonymous> (https://localhost/designportfolio/wp-content/plugins/portfolio-gallery/assets/js/view-elastic-grid.js?ver=1.0.0:100:60) at j (https://code.jquery.com/jquery-3.2.1.min.js?ver=3.2.1:2:29999) at k (https://code.jquery.com/jquery-3.2.1.min.js?ver=3.2.1:2:30313) undefined
jQuery.Deferred exception: jQuery(...).removeClass(...).lightboxPortfolio is not a function TypeError: jQuery(...).removeClass(...).lightboxPortfolio is not a function at HTMLDivElement.<anonymous> (https://localhost/designportfolio/wp-content/plugins/portfolio-gallery/assets/js/custom.js?ver=1.0.0:106:94) at Function.each (https://code.jquery.com/jquery-3.2.1.min.js:2:2715) at r.fn.init.each (https://code.jquery.com/jquery-3.2.1.min.js:2:1003) at HTMLDocument.<anonymous> (https://localhost/designportfolio/wp-content/plugins/portfolio-gallery/assets/js/custom.js?ver=1.0.0:20:42) at j (https://code.jquery.com/jquery-3.2.1.min.js?ver=3.2.1:2:29999) at k (https://code.jquery.com/jquery-3.2.1.min.js?ver=3.2.1:2:30313) undefined
jQuery.Deferred exception: jQuery(...).hoverdir is not a function TypeError: jQuery(...).hoverdir is not a function at HTMLLIElement.<anonymous> (https://localhost/designportfolio/wp-content/plugins/portfolio-gallery/assets/js/elastic_grid.js?ver=1.3.0:258:30) at Function.each (https://code.jquery.com/jquery-3.2.1.min.js:2:2715) at r.fn.init.each (https://code.jquery.com/jquery-3.2.1.min.js:2:1003) at r.fn.init.jQuery.fn.elastic_grid (https://localhost/designportfolio/wp-content/plugins/portfolio-gallery/assets/js/elastic_grid.js?ver=1.3.0:257:33) at https://localhost/designportfolio/wp-content/plugins/portfolio-gallery/assets/js/view-elastic-grid.js?ver=1.0.0:30:29 at dispatch (https://code.jquery.com/jquery-3.2.1.min.js:3:10316) at q.handle (https://code.jquery.com/jquery-3.2.1.min.js:3:8343) at Object.trigger (https://code.jquery.com/jquery-3.2.1.min.js:4:5628) at https://code.jquery.com/jquery-3.2.1.min.js:4:6138 at Function.each (https://code.jquery.com/jquery-3.2.1.min.js:2:2715) undefined
Uncaught TypeError: a.indexOf is not a function at r.fn.init.r.fn.load (jquery-3.2.1.min.js:4) at Portfolio_Gallery_Elastic_Grid._this.init (view-elastic-grid.js?ver=1.0.0:83) at new Portfolio_Gallery_Elastic_Grid (view-elastic-grid.js?ver=1.0.0:96) at HTMLDivElement.<anonymous> (view-elastic-grid.js?ver=1.0.0:102) at Function.each (jquery-3.2.1.min.js:2) at r.fn.init.each (jquery-3.2.1.min.js:2) at HTMLDocument.<anonymous> (view-elastic-grid.js?ver=1.0.0:100) at j (jquery-3.2.1.min.js?ver=3.2.1:2) at k (jquery-3.2.1.min.js?ver=3.2.1:2)
Uncaught TypeError: jQuery(...).removeClass(...).lightboxPortfolio is not a function at HTMLDivElement.<anonymous> (custom.js?ver=1.0.0:106) at Function.each (jquery-3.2.1.min.js:2) at r.fn.init.each (jquery-3.2.1.min.js:2) at HTMLDocument.<anonymous> (custom.js?ver=1.0.0:20) at j (jquery-3.2.1.min.js?ver=3.2.1:2) at k (jquery-3.2.1.min.js?ver=3.2.1:2)
Uncaught TypeError: jQuery(...).hoverdir is not a function at HTMLLIElement.<anonymous> (elastic_grid.js?ver=1.3.0:258) at Function.each (jquery-3.2.1.min.js:2) at r.fn.init.each (jquery-3.2.1.min.js:2) at r.fn.init.jQuery.fn.elastic_grid (elastic_grid.js?ver=1.3.0:257) at view-elastic-grid.js?ver=1.0.0:30 at dispatch (jquery-3.2.1.min.js:3) at q.handle (jquery-3.2.1.min.js:3) at Object.trigger (jquery-3.2.1.min.js:4) at jquery-3.2.1.min.js:4 at Function.each (jquery-3.2.1.min.js:2)
Switching to a default wordpress theme the gallery is showing up but I want to use my own custom theme.
Any ideas on how to fix this?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Uncaught TypeError: a.indexOf is not a function’ is closed to new replies.