• Resolved Ynah

    (@ynahpantig)


    I’m getting an Uncaught TypeError: Cannot read property 'addMethod' of undefined whenever the plugin is activated. It looks like the plugin is working fine, but I’m worried that having this error would mess up any of the JS that I have/will have in place.

    Please let me know if you need more information about this.

    I’m using the latest version of the plugin and WordPress.

    Here’s what the full error looks like (copy paste from Chrome DevTools):

    rsvp_plugin.js?ver=4.5.2:2 Uncaught TypeError: Cannot read property 'addMethod' of undefined(anonymous function) @ rsvp_plugin.js?ver=4.5.2:2i @ jquery.js?ver=1.12.3:2j.fireWith @ jquery.js?ver=1.12.3:2n.extend.ready @ jquery.js?ver=1.12.3:2K @ jquery.js?ver=1.12.3:2

    https://ww.wp.xz.cn/plugins/rsvp/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Ynah

    (@ynahpantig)

    Fixed this by installing jquery-validation plugin through my own JS scripts. It would be nice to have this already in the plugin.

    mdedev

    (@mdedev)

    Hmm.. weird. I am having the plugin load jquery-validation from the CDN http://ajax.aspnetcdn.com/ajax/jquery.validate/1.15.0/jquery.validate.min.js?ver=4.5.2. I have confirmed it is showing up and being used. Sorry you ran into problems :(.

    Thread Starter Ynah

    (@ynahpantig)

    Oh, weird.. Yeah, I’m not sure why that was happening. It didn’t use to happen before then suddenly it did after a while. Not sure what may have caused that. Aside from adding my own scripts, I have the same plugins installed as when I first tested it out.

    No worries at all 🙂

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

The topic ‘Uncaught TypeError in JavaScript’ is closed to new replies.