首页 > 解决方案 > 过时的 WordPress 主题选项;jQuery 错误

问题描述

我正在使用过时的 WordPress 主题;自 2015 年左右以来,开发人员一直没有提供更新。

直到昨天它工作得很好。现在我的下拉菜单不起作用,我的幻灯片也不起作用。在控制台中查看,在我看来存在 jquery 错误。这是我正在处理的页面:http ://www.cedartreeschool.org/

这些是我看到的错误:

Uncaught TypeError: Cannot read property 'version' of undefined
    at n.fn.init.$.fn.preloader (custom.js?ver=3.8:383)
    at (index):754

Uncaught TypeError: Cannot read property 'msie' of undefined
    at (index):754

Uncaught TypeError: jQuery(...).live is not a function
    at HTMLDocument.<anonymous> (custom.js?ver=3.8:32)
    at i (jquery.js?ver=1.12.4-wp:2)
    at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
    at Function.ready (jquery.js?ver=1.12.4-wp:2)
    at HTMLDocument.J (jquery.js?ver=1.12.4-wp:2)

有什么选项可以让我再次使用这个主题,还是需要更新到更新的主题?谢谢你的帮助。

标签: phpjquerywordpress

解决方案


在高级 WordPress Facebook 组中发现 jquery-migrate 在 WP 5.5 中被删除。使用这个插件解决了我的问题https://wordpress.org/plugins/enable-jquery-migrate-helper/#utm_medium=referral&utm_source=facebook.com&utm_content=social


推荐阅读