WordPress.org

Forums

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

  1. shortster
    Member
    Posted 2 years 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 2 years ago #

    Thanks shortster!

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

  3. shortster
    Member
    Posted 2 years ago #

    Lots of trial and error ;)

  4. kjy112
    Member
    Posted 2 years ago #

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

  5. shortster
    Member
    Posted 2 years 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 2 years 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 2 years 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

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic