WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Latest update introduces javascript error (7 posts)

  1. shortster
    Member
    Posted 1 year ago #

    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/

  2. kjy112
    Member
    Posted 1 year ago #

    Thanks shortster!

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

  3. shortster
    Member
    Posted 1 year ago #

    Lots of trial and error ;)

  4. kjy112
    Member
    Posted 1 year ago #

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

  5. shortster
    Member
    Posted 1 year ago #

    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.

  6. kjy112
    Member
    Posted 1 year ago #

    Holy crap lol. Thanks for the finding tho. Just so happen I was looking through this code today as well. Thanks abunch.

  7. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    fixed in the dev version from another recent post, this was actually caused by themes using jQuery 1.8.2, which WP does not.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic