Title: Console error
Last modified: August 20, 2018

---

# Console error

 *  Resolved [emangham](https://wordpress.org/support/users/emangham/)
 * (@emangham)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/console-error-12/)
 * 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 7 years, 9 months ago by [emangham](https://wordpress.org/support/users/emangham/).
    -  This topic was modified 7 years, 9 months ago by [emangham](https://wordpress.org/support/users/emangham/).
    -  This topic was modified 7 years, 9 months ago by [emangham](https://wordpress.org/support/users/emangham/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Karan](https://wordpress.org/support/users/buntisoft/)
 * (@buntisoft)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/console-error-12/#post-10611048)
 * Hello,
    i will check this and update you soon.
 *  [Karan](https://wordpress.org/support/users/buntisoft/)
 * (@buntisoft)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/console-error-12/#post-10613456)
 * 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.

 * ![](https://ps.w.org/insta-gallery/assets/icon-256x256.gif?rev=3301774)
 * [Social Feed Gallery](https://wordpress.org/plugins/insta-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insta-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insta-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/insta-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insta-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insta-gallery/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 2 replies
 * 2 participants
 * Last reply from: [Karan](https://wordpress.org/support/users/buntisoft/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/console-error-12/#post-10613456)
 * Status: resolved