• I’m not sure when this started, but the W3TC backend scripts are no longer functioning for me. $.live has been deprecated by jQuery and the W3TC scripts widget.js and options.js are both throwing errors like this:

    options.js?ver=0.9.4.1:600 Uncaught TypeError: jQuery(...).live is not a function
    (anonymous function) @ options.js?ver=0.9.4.1:600
    i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.5:2
    j.fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.5:2
    n.extend.ready @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.5:2
    K @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.5:2

    The result is a lot of the W3TC backend functionality simply doesn’t work. The upgrade button doesn’t work. The “add script” button on the minify page doesn’t work.

    Any thoughts on fixing the deprecated jQuery? A user pointed out this issue two years ago here.

    https://www.ads-software.com/plugins/w3-total-cache/

Viewing 3 replies - 1 through 3 (of 3 total)
  • hmmm…sounds like jquery migrate is missing in your backend load. jQuery core no longer supports $.live which is why migrate exists, to provide access to those deprecated functions like .live. In your case it’s like migrate isn’t being loaded. Not sure why seeing as how your trace shows at least an attempt is being made for it in the query string.

    Are you by chance manually removing jQuery from the wordpress stack and adding your own?

    Thanks for the info
    Kimberly

    Thread Starter ibhhvc

    (@ibhhvc)

    Right, that would make sense. Except I’m not touching jQuery on the admin side and I get this in my console as well, before the errors:

    JQMIGRATE: Migrate is installed, version 1.4.0
    load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.5:9
    Thread Starter ibhhvc

    (@ibhhvc)

    Ok, I’ve figured out a solution. Another plugin needed to run a newer version of jQuery. The plugin was not removing migrate, nor was it removing the wordpress version of jQuery. But just the fact that it was loading was causing the W3TC scripts to fail.

    The solution was to selectively load the newer version of jQuery only on the pages of the plugin that needed it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Admin scripts throw error: jQuery(…).live is not a function’ is closed to new replies.