• Resolved emangham

    (@emangham)


    Hello,

    I get the following console error when I use the plugin.

    
    Uncaught TypeError: e.indexOf is not a function
        at w.fn.init.w.fn.load (jquery.min.js:2)
        at init_ig_gallery (insta-gallery-min.js?ver=1.6.2:7)
        at handle_ig_gallery (insta-gallery-min.js?ver=1.6.2:6)
        at Object.success (insta-gallery-min.js?ver=1.6.2:4)
        at u (jquery.min.js:2)
        at Object.fireWith [as resolveWith] (jquery.min.js:2)
        at k (jquery.min.js:2)
        at XMLHttpRequest.<anonymous> (jquery.min.js:2)
    

    Note that my site is running jQuery 3.3.1, if this is somehow related?

    The plugin works fine, although the error is causing problems with audits, and might cause issues in the future.

    I’m running WordPress 4.9.8 and Instagram Gallery 1.6.2.

    All support is appreciated. Thank you

    UPDATE:
    I’ve noticed if I switch jQuery to 2.2.3, this works. However, I have many other vendors that must utilise the latest version of jQuery.

    Is it possible to support 3.3.1?

    Thank you.

    • This topic was modified 6 years, 7 months ago by emangham.
    • This topic was modified 6 years, 7 months ago by emangham.
    • This topic was modified 6 years, 7 months ago by emangham.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,
    i will check this and update you soon.

    after investigation i have found that its due to the duplicate library of jQuery. by default wordpress have jQuery 1.12.* and you said you are using jQuery 3.*, i think you are loading duplicate library. you have to disable wordpress default jQuery to use latest version.
    try to deactivate the gallery plugin, after that you can see the same type of errors related to other plugins(if installed). OR you can paste the site link, so i can check.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Console error’ is closed to new replies.