0

Ive tried to uninstall and reinstal visual composer and i can´t seem to fix it, i can not edit front end because its simply not showing. i have the ken theme installed. when cheking the console i get this error, but i have little to no expirence in programing and i don´t know what to make of it.

Uncaught TypeError: $template.get is not a function
    at n.html2element (composer-view.js:146)
    at n.render (composer-view.js:157)
    at n.appendShortcode (composer-view.js:534)
    at n.<anonymous> (composer-view.js:477)
    at load-scripts.php:112
    at Function.m.each.m.forEach (load-scripts.php:112)
    at n.addChild (composer-view.js:476)
    at n.addAll (composer-view.js:470)
    at _ (load-scripts.php:457)
    at m (load-scripts.php:457)

pls help.

Aimatos
  • 49
  • 6

1 Answers1

1

This basically means you have to update the visual composer. I have also experience a lot of issue. There are various option to solve this issue by modification of the code in visual composer file which is not recommended. So i personally suggest you to kindly update you visual composer then it works perfectly.

File to modify url is :

/wp-content/plugins/js_composer/assets/js/dist/backend.min.j‌​s

Code to replace is:

html2element: function(html) {
        var $template, attributes = {},
            template = html;
        $template = $(template(this.model.toJSON()).trim()), _.each($template.get(0).attributes, function(attr) {
            attributes[attr.name] = attr.value
        }), this.$el.attr(attributes).html($template.html()), this.setContent(), this.renderContent()
    },

Please only change the "html2element" function. Hope this works for you.

Thanks