ホスティングプロバイダが自動的に4.5にアップデートされ、Visual Composerプラグインでエラーが発生しました。Wordpressアップデート後のプラグインエラー
は、私はこれらの記事を読みました: Plugin throwing TypeError after Wordpress 4.5 update
Visual composer doesn't load and gives TypeError: _.template(...).trim is not a function
Uncaught TypeError: $template.get is not a function
そして提供1とhtml2element機能を置き換えます。多くの人々がこれらの記事にコメントしてしかし、私は新しいエラーが表示されます。ここでは
composer-view.js?ver=4.6.1:139 Uncaught TypeError: Cannot read property 'attributes' of undefined
は私の関数である。
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()
},
エラーは、この行から来ているようだ:
$template.get(0).attributes
誰かがそれを修正する方法を考え出しましたか?あなたの助け
完全に働いた –
ありがとう、それは – Cagdas
あなたは人生の節約になります! – Amir