Title: FancyBox JS error
Last modified: August 30, 2016

---

# FancyBox JS error

 *  Resolved [neilgee](https://wordpress.org/support/users/neilgee/)
 * (@neilgee)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/fancybox-js-error/)
 * Hi,
    Am getting a js console error on the latest:
 *     ```
       TypeError: b.fancybox.init is not a function
   
       ...nError:function(){}};b(document).ready(function(){b.fancybox.init()})})(jQuery)
       ```
   
 * Regards
 * [https://wordpress.org/plugins/instagram-for-wordpress/](https://wordpress.org/plugins/instagram-for-wordpress/)

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

 *  Plugin Author [INK361](https://wordpress.org/support/users/jbenders/)
 * (@jbenders)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/fancybox-js-error/#post-6551422)
 * Hello neilgee,
 * Thank you for contacting us.
 * Our latest changes has some improvements to stop multiple versions of jQuery 
   loaded by different themes/plugins etc from breaking our functionality. Could
   you verify if this resolves the issue for you? If this is not the case, could
   you provide a link to your wordpress site? That way we can further investigate
   the issue.
 * With kind regards,
 * INK361
 *  Thread Starter [neilgee](https://wordpress.org/support/users/neilgee/)
 * (@neilgee)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/fancybox-js-error/#post-6551454)
 * Hi,
 * I am getting the error only now with this plugin if another identified plugin
   is active, the other plugin is using fancyboxv2.1.5 but I see the error is with
   your jquery.fancybox-1.3.4.pack.js – well thats what is displaying in the console.
 * The other plugin is a woocommerce role based plugin so a bit difficult to just
   give a link as the error occurs only on login.
 * [http://d.pr/i/1ehjd](http://d.pr/i/1ehjd)
 * If i disable your script everything is ok (or theirs for that matter)
 *  Plugin Author [INK361](https://wordpress.org/support/users/jbenders/)
 * (@jbenders)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/fancybox-js-error/#post-6551461)
 * Hi,
 * Thank you for your reply. Could you confirm you are now using version 2.1.1 of
   the plugin and the issue is still occurring?
 * If the plugins are all free, please provide them so I can reproduce. Another 
   possibility would be for you to paste the html of the page the issue occurs on(
   anonymize if necessary). So I can reproduce based on the order scripts are loaded.
 * With kind regards,
 * INK361
 *  Thread Starter [neilgee](https://wordpress.org/support/users/neilgee/)
 * (@neilgee)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/fancybox-js-error/#post-6551463)
 * Hi,
 * Yes latest version is used 2.1.1 and here is the source of the page – [https://gist.github.com/neilgee/7830939b28a4d1b26ad4](https://gist.github.com/neilgee/7830939b28a4d1b26ad4)
 *  Plugin Author [INK361](https://wordpress.org/support/users/jbenders/)
 * (@jbenders)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/fancybox-js-error/#post-6551501)
 * Hello neilgee,
 * Thank you for your reply.
 * Could you test with version 2.1.2? we’ve done some additional changes to namespace
   our JavaScript. We’ve tested it while loading the same sources as your source
   page, and it seemed to work fine. But this is without using the woocommerce plugin
   itself.
 * With kind regards,
 * INK361
 *  Thread Starter [neilgee](https://wordpress.org/support/users/neilgee/)
 * (@neilgee)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/fancybox-js-error/#post-6551506)
 * Well done – works with no JS errors now

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

The topic ‘FancyBox JS error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/instagram-for-wordpress_000000.svg)
 * [Instagram for WordPress](https://wordpress.org/plugins/instagram-for-wordpress/)
 * [Support Threads](https://wordpress.org/support/plugin/instagram-for-wordpress/)
 * [Active Topics](https://wordpress.org/support/plugin/instagram-for-wordpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/instagram-for-wordpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/instagram-for-wordpress/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [neilgee](https://wordpress.org/support/users/neilgee/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/fancybox-js-error/#post-6551506)
 * Status: resolved