dspx15491 2019-03-11 06:00
浏览 60

在Wordpress中使用Visual Composer和Mega菜单获取lodash错误

I'm running Wordpress 5.1, with Bridge Theme version 7.2 and WP Bakery Page Builder version 5.7. I try to go into my backend editor to add a new row with WP Bakery/Visual Composer. When i click the "+" sign at the top, nothing happens.

I check the developer console to see what might be the issue and I get this error:

> backend.min.js?ver=5.7:1 Uncaught TypeError: _.contains is not a
> function
>     at backend.min.js?ver=5.7:1
>     at 9.6df36390bab8dded22f6.js:9
>     at 9.6df36390bab8dded22f6.js:9
>     at Ve (9.6df36390bab8dded22f6.js:9)
>     at 9.6df36390bab8dded22f6.js:9
>     at vr (9.6df36390bab8dded22f6.js:9)
>     at Function.pe.reduce (9.6df36390bab8dded22f6.js:9)
>     at N.d.<anonymous> (backend.min.js?ver=5.7:1)
>     at N.d.c [as _getNotIn] (underscore.min.js:1)
>     at N.d.buildFiltering (backend.min.js?ver=5.7:1)

I run into a similar issue when using Max Mega Menu Plugin (Version 2.5.3.2). When I add a gallery, I don't actually have the option to add the gallery. I get the following error in the console:

media-gallery-widget.min.js:1 Uncaught TypeError: _.pluck is not a function
    at N.d.updateSelectedAttachments (media-gallery-widget.min.js:1)
    at N.d.t [as updateSelectedAttachments] (9.6df36390bab8dded22f6.js:9)
    at N.d.initialize (media-gallery-widget.min.js:1)
    at N.d.b.View (backbone.min.js:1)
    at N.d [as constructor] (backbone.min.js:1)
    at new N.d (backbone.min.js:1)
    at HTMLDocument.b.handleWidgetAdded (media-widgets.min.js:1)
    at HTMLDocument.dispatch (jquery.js:3)
    at HTMLDocument.r.handle (jquery.js:3)
    at Object.trigger (jquery.js:3)
updateSelectedAttachments @ media-gallery-widget.min.js:1
t @ 9.6df36390bab8dded22f6.js:9
initialize @ media-gallery-widget.min.js:1
b.View @ backbone.min.js:1
N.d @ backbone.min.js:1
N.d @ backbone.min.js:1
b.handleWidgetAdded @ media-widgets.min.js:1
dispatch @ jquery.js:3
r.handle @ jquery.js:3
trigger @ jquery.js:3
a.event.trigger @ jquery-migrate.min.js:2
(anonymous) @ jquery.js:3
each @ jquery.js:2
each @ jquery.js:2
trigger @ jquery.js:3
(anonymous) @ admin.js?ver=2.5.3.2:463
setTimeout (async)
(anonymous) @ admin.js?ver=2.5.3.2:462
i @ jquery.js:2
fireWith @ jquery.js:2
y @ jquery.js:4
c @ jquery.js:4
XMLHttpRequest.send (async)
send @ jquery.js:4
ajax @ jquery.js:4
n.(anonymous function) @ jquery.js:4
(anonymous) @ admin.js?ver=2.5.3.2:398
dispatch @ jquery.js:3
r.handle @ jquery.js:3

I noticed they both dealt with _.function is not a function so I'm wondering if I'm using a deprecated JavaScript library? I don't understand why though because these are the most current versions of the theme, Wordpress and Visual Composer (WP Bakery).

Has anyone run into this issue and know how to fix it?

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 TI的insta-spin例程
    • ¥15 完成下列问题完成下列问题
    • ¥15 C#算法问题, 不知道怎么处理这个数据的转换
    • ¥15 YoloV5 第三方库的版本对照问题
    • ¥15 请完成下列相关问题!
    • ¥15 drone 推送镜像时候 purge: true 推送完毕后没有删除对应的镜像,手动拷贝到服务器执行结果正确在样才能让指令自动执行成功删除对应镜像,如何解决?
    • ¥15 求daily translation(DT)偏差订正方法的代码
    • ¥15 js调用html页面需要隐藏某个按钮
    • ¥15 ads仿真结果在圆图上是怎么读数的
    • ¥20 Cotex M3的调试和程序执行方式是什么样的?