I\'m debugging a visual composer plugin that broke after I updated WordPress to 4.5 and I can\'t figure out why it is throwing a TypeError.
The error message in the
I made this modification that works on my WP 4.8.1 (PHP7)
in the file wp-content/plugins/js_composer/assets/js/backend/composer-view.js
you must modify the render method :
replace this line
this.html2element(_.template($shortcode_template_el.html(), this.model.toJSON()));
by this line
this.html2element( $shortcode_template_el.html() );
It seems the _.template() function that doesn't work perfectly and doesn't return the good object, so better give the html code instead.