Title: Uncaught TypeError
Last modified: August 22, 2016

---

# Uncaught TypeError

 *  Resolved [ywickham](https://wordpress.org/support/users/ywickham/)
 * (@ywickham)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/uncaught-typeerror-5/)
 * I’m working on the following site: [http://www.e-systemsinc.com/](http://www.e-systemsinc.com/).
   I’ve noticed the plugin is kicking the following error in my console:
 * Uncaught TypeError: undefined is not a function (index):115
 * Any idea why?
 * Thanks!
 * [https://wordpress.org/plugins/easy-fancybox/](https://wordpress.org/plugins/easy-fancybox/)

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

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/uncaught-typeerror-5/#post-5304035)
 * It’s not my plugin but the code snippet that comes after it:
 *     ```
       <script>
       $(document).ready(function(){
       	$(".nav-button").click(function () {
       		$(".nav-button,.primary-nav").toggleClass("open");
       	});
       });
       </script>
       ```
   
 * You can probably find this in your themes header.php just after the `<?php wp_header();?
   >` tag.
 * Change the first line to:
 *     ```
       jQuery(document).ready(function($){
       ```
   
 * (notice two differences!)
 *  Thread Starter [ywickham](https://wordpress.org/support/users/ywickham/)
 * (@ywickham)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/uncaught-typeerror-5/#post-5304049)
 * Thank you! If I wasn’t in such a rush, I should have caught that. I appreciate
   your help.

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

The topic ‘Uncaught TypeError’ is closed to new replies.

 * ![](https://ps.w.org/easy-fancybox/assets/icon-256x256.png?rev=3188201)
 * [Firelight Lightbox](https://wordpress.org/plugins/easy-fancybox/)
 * [Support Threads](https://wordpress.org/support/plugin/easy-fancybox/)
 * [Active Topics](https://wordpress.org/support/plugin/easy-fancybox/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/easy-fancybox/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/easy-fancybox/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [ywickham](https://wordpress.org/support/users/ywickham/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/uncaught-typeerror-5/#post-5304049)
 * Status: resolved