WordPress.org

Support

Support » Plugins and Hacks » Events Manager » [Resolved] [Plugin: Events Manager] Latest update introduces javascript error

[Resolved] [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/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thanks shortster!

    I was just about to post this bug. How did you manage to track it down?

    Lots of trial and error 😉

    I mean what did you use to debug and step through?

    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.

    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

    @netweblogic

    NetWebLogic Support

    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 ‘[Resolved] [Plugin: Events Manager] Latest update introduces javascript error’ is closed to new replies.
Skip to toolbar