Support » Plugin: Events Manager » [Plugin: Events Manager] Latest update introduces javascript error

  • Resolved shortster


    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.

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