我最近从Squarespace切换到Wordpress。我目前正在使用Bridge主题,但这是Visual Composer。我真的不喜欢VC,所以我尝试安装Beaver Builder。但是,在启动页面构建器时,我在控制台中出现了一些错误。这会影响Page 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)"
由于错误声明我的插件有一些问题.js&amp;我停用了这个文件。接下来,Beaver Builder工作。但是当我禁用这个文件时,网站上的很多JS效果都不再起作用了。
有没有人遇到过这种错误?我认为这与jQuery版本冲突有关,但我不确定?如果您需要更多信息,请询问&amp;我会提供。
下面,建议安装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)
答案 0 :(得分:0)
WordPress自动调用核心jQuery,may not be the most recent version。您可以尝试运行jQuery Updater并查看它是否与jQuery版本相关。
要查找的另一件事是,如果在页面上调用多个jQuery脚本 - 一种简单的检查方法是将页面导出为静态HTML并搜索脚本的任何重复/冗余调用。