Javascript 导致错误的jQuery冲突?

Javascript 导致错误的jQuery冲突?,javascript,jquery,wordpress,Javascript,Jquery,Wordpress,我最近从Squarespace转到Wordpress。我目前正在使用Bridge主题,但这是VisualComposer附带的。我不太喜欢VC,所以我试着安装Beaver Builder。但是,在启动页面生成器时,我在控制台中遇到一些错误。这会影响页面生成器,因为我无法使用文本编辑器。我无法在文本编辑器中键入文本&文本区域框架上方的图标也不可见 在下面,您可以看到错误: "Uncaught Error: no such method 'instance' for menu widget inst

我最近从Squarespace转到Wordpress。我目前正在使用Bridge主题,但这是VisualComposer附带的。我不太喜欢VC,所以我试着安装Beaver Builder。但是,在启动页面生成器时,我在控制台中遇到一些错误。这会影响页面生成器,因为我无法使用文本编辑器。我无法在文本编辑器中键入文本&文本区域框架上方的图标也不可见

在下面,您可以看到错误:

"Uncaught Error: no such method 'instance' for menu widget instance" op rij 2 van {bestand}.

Error: no such method 'instance' for menu widget instance
    at Function.error (http://www.petasos.be/wp-includes/js/jquery/jquery.js?ver=1.12.4:2:1814)
    at HTMLUListElement.<anonymous> (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8376)
    at Function.each (http://www.petasos.be/wp-includes/js/jquery/jquery.js?ver=1.12.4:2:2881)
    at a.fn.init.each (http://www.petasos.be/wp-includes/js/jquery/jquery.js?ver=1.12.4:2:846)
    at a.fn.init.$.fn.(anonymous function) [as menu] (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8111)
    at $.(anonymous function).(anonymous function)._create (http://www.petasos.be/wp-includes/js/jquery/ui/autocomplete.min.js?ver=1.11.4:11:2191)
    at $.(anonymous function).(anonymous function)._create (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:6664)
    at $.(anonymous function).(anonymous function)._createWidget (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:9651)
    at new $.(anonymous function).(anonymous function) (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:5990)
    at HTMLInputElement.<anonymous> (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8796)"
“未捕获错误:菜单小部件实例没有这样的方法‘实例’”op rij 2 van{bestand}。
错误:菜单小部件实例没有此类方法“实例”
at Function.error(http://www.petasos.be/wp-includes/js/jquery/jquery.js?ver=1.12.4:2:1814)
在Htmluliselement。(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8376)
在功能上,每个(http://www.petasos.be/wp-includes/js/jquery/jquery.js?ver=1.12.4:2:2881)
在a.fn.init.each(http://www.petasos.be/wp-includes/js/jquery/jquery.js?ver=1.12.4:2:846)
在a.fn.init.$.fn.(匿名函数)[作为菜单](http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8111)
在$(匿名函数)。(匿名函数)。\u创建(http://www.petasos.be/wp-includes/js/jquery/ui/autocomplete.min.js?ver=1.11.4:11:2191)
在$(匿名函数)。(匿名函数)。\u创建(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:6664)
在$(匿名函数)。(匿名函数)。\u(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:9651)
在新$(匿名函数)。(匿名函数)(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:5990)
在HTMLInputElement。(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8796)"
正如错误所述,我的plugins.js存在一些问题&我停用了这个文件。接下来,Beaver Builder可以工作。但是当我禁用这个文件时,网站上的许多js效果不再起作用

有人遇到过这种错误吗?我认为这与jQuery版本冲突有关,但我不确定。如果您需要更多信息,请询问&我会提供

安装jQuery插件后更新: 下面,建议安装jQuery插件。控制台中的错误消息已更改,但文本编辑器仍然存在问题

Error: no such method 'instance' for menu widget instance
    at Function.error (http://www.petasos.be/wp-content/plugins/jquery-updater/js/jquery-3.2.1.min.js?ver=3.2.1:2:1979)
    at HTMLUListElement.<anonymous> (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8376)
    at Function.each (http://www.petasos.be/wp-content/plugins/jquery-updater/js/jquery-3.2.1.min.js?ver=3.2.1:2:2715)
    at a.fn.init.each (http://www.petasos.be/wp-content/plugins/jquery-updater/js/jquery-3.2.1.min.js?ver=3.2.1:2:1003)
    at a.fn.init.$.fn.(anonymous function) [as menu] (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8111)
    at $.(anonymous function).(anonymous function)._create (http://www.petasos.be/wp-includes/js/jquery/ui/autocomplete.min.js?ver=1.11.4:11:2191)
    at $.(anonymous function).(anonymous function)._create (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:6664)
    at $.(anonymous function).(anonymous function)._createWidget (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:9651)
    at new $.(anonymous function).(anonymous function) (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:5990)
    at HTMLInputElement.<anonymous> (http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8796)
错误:菜单小部件实例没有此类方法“实例”
at Function.error(http://www.petasos.be/wp-content/plugins/jquery-updater/js/jquery-3.2.1.min.js?ver=3.2.1:2:1979)
在Htmluliselement(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8376)
在功能上,每个(http://www.petasos.be/wp-content/plugins/jquery-updater/js/jquery-3.2.1.min.js?ver=3.2.1:2:2715)
在a.fn.init.each(http://www.petasos.be/wp-content/plugins/jquery-updater/js/jquery-3.2.1.min.js?ver=3.2.1:2:1003)
在a.fn.init.$.fn.(匿名函数)[作为菜单](http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8111)
在$(匿名函数)。(匿名函数)。\u创建(http://www.petasos.be/wp-includes/js/jquery/ui/autocomplete.min.js?ver=1.11.4:11:2191)
在$(匿名函数)。(匿名函数)。\u创建(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:6664)
在$(匿名函数)。(匿名函数)。\u(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:9651)
在新$(匿名函数)。(匿名函数)(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:5990)
在HTMLInputElement(http://www.petasos.be/wp-content/themes/bridge/js/plugins.js?ver=4.7.5:38:8796)

WordPress会自动调用核心jQuery,您可以尝试运行,看看这是否属于jQuery版本


另一件需要注意的事情是,如果页面上调用了多个jQuery脚本,那么一种简单的检查方法就是将页面导出为静态HTML,并搜索脚本的任何重复/冗余调用。

WordPress会自动调用核心jQuery,您可以试着运行,看看这是否属于jQuery版本。


另一件需要注意的事情是,如果页面上调用了多个jQuery脚本-一种简单的检查方法是将页面导出为静态HTML,并搜索脚本的任何重复/冗余调用。

您还可以检查Inspector下的
源/网络/应用程序
面板,查看加载的
脚本
/
查找d复制脚本
。好的,Sambgordon,非常有用!会立即检查此项。谢谢。嗯,加载了很多脚本,但似乎只有一个jQuery?您还可以检查Inspector下的
源代码/网络/应用程序
面板,查找加载的
/
脚本的副本。好的,Sambgordon,非常有用!会检查此ri马上。谢谢。嗯,加载了很多脚本,但似乎只有一个jQuery?