• Resolved etellewyn

    (@etellewyn)


    Hi there,
    After updating a client site to WP 3.5.1 (upgraded from 3.4.2) Collapse-o-matic no longer works, and is giving a javascript error in the console (which causes all other jquery scripts to stop as well)

    The error is:
    Uncaught TypeError: Object [object Object] has no method ‘on’

    source of error is /wp-content/plugins/jquery-collapse-o-matic/js/collapse.min.js?ver=1.5.2 –Line 1.

    I have deactivated all other plugins, leaving only this one on, and that does not do the trick.

    Anybody else run into this? I’ve had to deactivate the plugin to keep the site going, which I really hated to do.

    http://ww.wp.xz.cn/extend/plugins/jquery-collapse-o-matic/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    I’m just testing it on http://www.worksiq.com/web-based-crm-software/ and had the same error.

    I saw some notes in the changelog:

    1.4.9
    Replaced on() event handler back to click due to the WordPress world not quite ready for on(). People are still using jQuery 1.6.4 – can you believe that?!
    1.4.8
    Click events now use jQuery’s on() event handler for content that arrived dynamically via AJAX NOTE: plugin now requires jQuery version 1.7 or newer

    Our site uses jQuery 1.6.4 so maybe that is the problem?

    Yep, that was it. I just tried a newer version of jQuery in theme-scripts.php and it started working.

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

The topic ‘After updating WP, get Javascript error in collapse.min.js’ is closed to new replies.