Title: [Plugin: Events Manager] Latest update introduces javascript error
Last modified: August 20, 2016

---

# [Plugin: Events Manager] Latest update introduces javascript error

 *  Resolved [shortster](https://wordpress.org/support/users/shortster/)
 * (@shortster)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-events-manager-latest-update-introduces-javascript-error/)
 * It gives a general ‘Cannot read property ‘type’ of undefined ‘ for the jquery
   library. (Chrome Version 21.0.1180.89)
 * After an evening of digging I found the error in line 524 of the events-manager.
   js file.
 * if( jQuery( "#em-location-data input#location-name, " ).length > 0 ){
 * Which reads one comma to many, so it shoud read:
 * if( jQuery( "#em-location-data input#location-name" ).length > 0 ){
 * Could you please fix this in the next release.
 * [http://wordpress.org/extend/plugins/events-manager/](http://wordpress.org/extend/plugins/events-manager/)

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

 *  [kjy112](https://wordpress.org/support/users/kjy112/)
 * (@kjy112)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-events-manager-latest-update-introduces-javascript-error/#post-3073704)
 * Thanks shortster!
 * I was just about to post this bug. How did you manage to track it down?
 *  Thread Starter [shortster](https://wordpress.org/support/users/shortster/)
 * (@shortster)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-events-manager-latest-update-introduces-javascript-error/#post-3073726)
 * Lots of trial and error 😉
 *  [kjy112](https://wordpress.org/support/users/kjy112/)
 * (@kjy112)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-events-manager-latest-update-introduces-javascript-error/#post-3073728)
 * I mean what did you use to debug and step through?
 *  Thread Starter [shortster](https://wordpress.org/support/users/shortster/)
 * (@shortster)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-events-manager-latest-update-introduces-javascript-error/#post-3073729)
 * No debugging or stepping through. I wanted to remove all the jquery ui javascript
   includes by dequeing the ‘events-manager’ script. This removed the javascript
   error but killed some other functionality as well. But that’s how I knew which
   file I needed to check.
 * Then it was just a matter of deleting blocks of code in the file and check if
   the error went away to find the responsible block.
 *  [kjy112](https://wordpress.org/support/users/kjy112/)
 * (@kjy112)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-events-manager-latest-update-introduces-javascript-error/#post-3073731)
 * Holy crap lol. Thanks for the finding tho. Just so happen I was looking through
   this code today as well. Thanks abunch.
 *  Plugin Author [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * (@netweblogic)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-events-manager-latest-update-introduces-javascript-error/#post-3073892)
 * fixed in the dev version from another recent post, this was actually caused by
   themes using jQuery 1.8.2, which WP does not.

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

The topic ‘[Plugin: Events Manager] Latest update introduces javascript 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/)

 * 6 replies
 * 3 participants
 * Last reply from: [Marcus (aka @msykes)](https://wordpress.org/support/users/netweblogic/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-events-manager-latest-update-introduces-javascript-error/#post-3073892)
 * Status: resolved