Javascript 未捕获的TypeError:无法读取后端中未定义的属性“call”。min.js:2

Javascript 未捕获的TypeError:无法读取后端中未定义的属性“call”。min.js:2,javascript,wordpress,typescript,visual-composer,Javascript,Wordpress,Typescript,Visual Composer,我对Visual Composer有问题,我已经建立了一个网站,现在我想更改主页的图像,但当我单击“编辑”按钮编辑图像时,我可以从媒体库中选择图像,但我无法将图像保存在Visual Composer中以在我的网站上显示 当我单击图像的“编辑”按钮时,我的控制台会抛出以下命令: Uncaught TypeError: Cannot read property 'call' of undefined backend.min.js:2 backend.min.js中的代码:2,未统一: initDe

我对Visual Composer有问题,我已经建立了一个网站,现在我想更改主页的图像,但当我单击“编辑”按钮编辑图像时,我可以从媒体库中选择图像,但我无法将图像保存在Visual Composer中以在我的网站上显示

当我单击图像的“编辑”按钮时,我的控制台会抛出以下命令:

Uncaught TypeError: Cannot read property 'call' of undefined backend.min.js:2
backend.min.js中的代码:2,未统一:

initDependency: function () {
        var callDependencies = {};
        _.each(this.mapped_params, function (param) {
            if (_.isObject(param) && _.isObject(param.dependency)) {
                var rules = param.dependency;
                if (_.isString(param.dependency.element)) {
                    var $masters, $slave;
                    $masters = $("[name=" + param.dependency.element + "].wpb_vc_param_value", this.$content), $slave = $("[name= " + param.param_name + "].wpb_vc_param_value", this.$content), _.each($masters, function (master) {
                        var $master, name;
                        $master = $(master), name = $master.attr("name"), _.isArray(this.dependent_elements[$master.attr("name")]) || (this.dependent_elements[$master.attr("name")] = []), this.dependent_elements[$master.attr("name")].push($slave), !$master.data("dependentSet") && $master.attr("data-dependent-set", "true") && $master.bind("keyup change", this.hookDependent), callDependencies[name] || (callDependencies[name] = $master)
                    }, this)
                }
                _.isString(rules.callback) && window[rules.callback].call(this)
            }
        }, this), this.doCheckTabs = !1, _.each(callDependencies, function (obj) {
            this.hookDependent({currentTarget: obj})
        }, this), this.doCheckTabs = !0, this.checkTabs(), callDependencies = null
    },
在研究了window变量之后,我知道window[rules.callback]是未定义的,它不存在。规则索引在“console.logwindow”中不可见

我使用WordPress 4.6.1和VisualComposer 4.12.1与WooPress主题一起使用,效果非常好


谁能帮我?

从backend.min.js我删除这部分代码:

_.isString(rules.callback)&&window[rules.callback].call(this)
您可以搜索代码的这一部分并将其删除。
这是唯一的解决方法。

从backend.min.js我删除了这部分代码:

_.isString(rules.callback)&&window[rules.callback].call(this)
您可以搜索代码的这一部分并将其删除。
这是唯一的解决办法。

首先是什么填充了窗口[rules.callback]?应该有一个脚本为这个函数在窗口上创建属性,然后找到属性。我知道必须有一个脚本定义窗口[rules.callback],所以问题就解决了。我正在搜索任何有相同问题和修复的人。首先是什么填充了窗口[rules.callback]?应该有一个脚本为这个函数在窗口上创建属性,然后找到属性。我知道必须有一个脚本定义窗口[rules.callback],所以问题就解决了。我正在搜索任何有相同问题和修复的人。