• Resolved viktoriamf

    (@viktoriamf)


    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)
  • Dear viktoriamf,

    Thank you for contacting us.
    Per your observations and test the problem is theme-related as the plugin functions properly on the WordPress default theme.
    We are not sure if the issue can be fixed from our side if it doesn’t come from the plugin itself but we will be glad if you provide a link to the website where we can check everything and assist. There may be some errors in the console which will be a hint for fixing the issue from the theme.

    Looking forward to hearing from you soon.

    Thanks

    Thread Starter viktoriamf

    (@viktoriamf)

    Thanks for your quick response!

    I had the project installed locally, but I quickly moved it to an online webspace. I now got less and different errors, but it’s still not working.

    You can find it here: https://www.viktoriamf.com/test/

    Thanks in advance!

    Thread Starter viktoriamf

    (@viktoriamf)

    I managed to solve the problem. Apparently I had some errors in my page structure. Creating another template for my one-page-layout and choosing that for my front page seems to help.

    Dear viktoriamf,

    You figured that out fast! ??
    We are glad to hear your feedback.
    Thank you very much for keeping us informed.
    In the case, if you need our help any further, feel free to ask.
    We will be glad to assist.

    Wish you all the best!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uncaught TypeError: a.indexOf is not a function’ is closed to new replies.