Title: Uncaught Type Error
Last modified: September 1, 2016

---

# Uncaught Type Error

 *  Resolved [baseballrocks0412](https://wordpress.org/support/users/baseballrocks0412/)
 * (@baseballrocks0412)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-type-error/)
 * I tried to lookup and see if this had already been solved somewhere else. If 
   it has please direct me.
 * I recently started using this plugin and was unable to take advantage of the 
   Location maps because of the API issue. Now that the API issue is resolved I 
   am seeing an error that states “Uncaught TypeError: $(…).on is not a function”.
   It if showing the line of the error to be: events-manager.js?ver=5.64:165.
 * So far as I can tell in my reading this is the result of jQuery being in no conflict
   mode in WordPress. Because I am not seeing a bunch of other people with the problem,
   I am assuming that there is a setting, or something that needs to be done differently.
 * My head tag looks like `
    <head> <meta charset=”<?php bloginfo(‘charset’); ?>”/
   >
 *  <?php if (is_search()) { ?>
    <meta name=”robots” content=”noindex, nofollow”/
   > <?php } ?>
 *  <title>
    <?php if (function_exists(‘is_tag’) && is_tag()) { single_tag_title(“
   Tag Archive for "”); echo ‘" – ‘; } elseif (is_archive()) { wp_title(”); echo‘
   Archive – ‘; } elseif (is_search()) { echo ‘Search for "’.wp_specialchars($s).’"–‘;}
   elseif (!(is_404()) && (is_single()) || (is_page())) { wp_title(”); echo ‘ | ‘;}
   elseif (is_404()) { echo ‘Not Found – ‘; } if (is_home()) { bloginfo(‘name’);
   echo ‘ | ‘; bloginfo(‘description’); } else { bloginfo(‘name’); } if ($paged>
   1) { echo ‘ – page ‘. $paged; } ?> </title>
 *  <link rel=”shortcut icon” href=”/favicon.ico”>
 *  <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?> “>
    <link 
   href=’[https://fonts.googleapis.com/css?family=Raleway&#8217](https://fonts.googleapis.com/css?family=Raleway&#8217);
   rel=’stylesheet’ type=’text/css’>
 *  <meta name=”viewport” content=”width=device-width”>
    <meta name=”viewport” content
   =”width=100%, initial-scale=1, user-scalable=no”>
 *  <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>”>
 *  <?php wp_head(); ?>
    <script src=”[http://code.jquery.com/jquery-1.12.0.min.js”></script&gt](http://code.jquery.com/jquery-1.12.0.min.js”></script&gt);
   </head>`
 * I have attempted turning off other plugins, and that made no change so I turned
   them back on.
 * I am currently testing this in my [dev environment](http://robrosdemo.ddns.net/courses/test-event-2).
 * [https://wordpress.org/plugins/events-manager/](https://wordpress.org/plugins/events-manager/)

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

 *  Thread Starter [baseballrocks0412](https://wordpress.org/support/users/baseballrocks0412/)
 * (@baseballrocks0412)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-type-error/#post-7556385)
 * Anyone have any thoughts?
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-type-error/#post-7556430)
 * This sounds like a possible conflict caused by your theme or another plugin. 
   To check if it is, can you test with all other plugins deactivated and while 
   running the default WordPress theme?
 *  Thread Starter [baseballrocks0412](https://wordpress.org/support/users/baseballrocks0412/)
 * (@baseballrocks0412)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-type-error/#post-7556433)
 * When I put in the default theme I got this error, “Uncaught RangeError: Maximum
   call stack size exceeded
    js?v=3.24&libraries=places&callback=em_maps&key=_APIKEY_“
 * That caused me to look in my functions.php, I started with a blank theme and 
   modified to create my own, the blank theme was enqueuing jQuery 1.4 using this,`
   if ( !is_admin() ) {
    wp_deregister_script(‘jquery’); wp_register_script(‘jquery’,(“
   [http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&#8221](http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js&#8221);),
   false); wp_enqueue_script(‘jquery’); }`
 * I was also calling `<script src="http://code.jquery.com/jquery-1.12.0.min.js"
   ></script>` I am newer to wordpress, should I be able to change the jQuery enqueuing
   script to make my call and remove it from the header?
 * Thanks
 *  [caimin_nwl](https://wordpress.org/support/users/caimin_nwl/)
 * (@caimin_nwl)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-type-error/#post-7556442)
 * Are you trying to load Google Maps without an API key? You can longer do that:
 * [http://wp-events-plugin.com/documentation/google-maps/api-key/](http://wp-events-plugin.com/documentation/google-maps/api-key/)
 * Which version of Events Manager and WordPress are you using?
 *  Thread Starter [baseballrocks0412](https://wordpress.org/support/users/baseballrocks0412/)
 * (@baseballrocks0412)
 * [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-type-error/#post-7556443)
 * I am using the API key, I just replaced it in the post above as _APIKEY_. WordPress
   4.5.3 and Event Manager 5.6.5. When I replaced my theme with the default theme,
   I believe I was receiving an error for en queuing jQuery wrong.
 * I am working fine now, after playing around with my function to en queue jQuery.
   Thanks you for helping me find that problem earlier.

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

The topic ‘Uncaught Type Error’ is closed to new replies.

 * ![](https://ps.w.org/events-manager/assets/icon-256x256.png?rev=3550347)
 * [Events Manager - Calendar, Bookings, Tickets, and more!](https://wordpress.org/plugins/events-manager/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/events-manager/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/events-manager/)
 * [Active Topics](https://wordpress.org/support/plugin/events-manager/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/events-manager/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/events-manager/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [baseballrocks0412](https://wordpress.org/support/users/baseballrocks0412/)
 * Last activity: [9 years, 11 months ago](https://wordpress.org/support/topic/uncaught-type-error/#post-7556443)
 * Status: resolved