Visual Composer不加载并给出TypeError:_. trylate(...)。trim不是函数 [英] Visual composer doesn't load and gives TypeError: _.template(...).trim is not a function

查看:100
本文介绍了Visual Composer不加载并给出TypeError:_. trylate(...)。trim不是函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的视觉作曲家插件不起作用。它停留在加载页面上。并且它给出了一个错误TypeError: .template(...)。trim不是函数
这行代码出错:
this。$ controls = $(
.template(template,data,vc.template_options).trim())。addClass('vc_controls');

My visual composer plugin doesn't work. It stuck on the loading page. And it gives an error "TypeError: .template(...).trim is not a function" Error is on this line of code: this.$controls = $(.template(template, data, vc.template_options).trim()).addClass('vc_controls');

请帮我解决这个问题。

这是我得到的错误:

推荐答案

本文建议在4.5之前回滚你的worpress版本。 http ://forums.artbees.net/t/urgent-wordpress-4-5-broken-vc-backend-editor-workaround-fix-in-comments/2734

This article suggests rolling back your worpress version prior to 4.5. http://forums.artbees.net/t/urgent-wordpress-4-5-broken-vc-backend-editor-workaround-fix-in-comments/2734

在这里您可以找到旧版本的wp来安装 https:// wordpress。 org / download / release-archive / 30

This is where you can find older versions of wp to install https://wordpress.org/download/release-archive/30

我自己也没有尝试过这个建议。

I haven't tried this myself just a suggestion.

如果这仍然是你的问题,我通过ftp手动更新我的主题解决了同样的错误。我下载了最新版本的主题,因为自动更新无效。我保留了wordpress版本4.5。以下是我采取的步骤。

If this is still a problem for you I solved this same error I was getting by manually updating my theme through ftp. I downloaded the latest version of the theme because automatic updates were not working. I kept wordpress version 4.5. Here are the steps I took as follows.


  1. 我重命名主题示例x-updating一旦上传命名为当前主题x-previous然后将x-updating更改为x并删除x-之前。

  2. 我以与步骤1相同的方式更新了js_composer。上载了与主题捆绑在一起的js_composer的最新版本。这在主题外的插件中更新。此时,您应该能够从wp仪表板更新可视化作曲家(如果尚未更新)。

  3. 这让vc再次运行,但在vc_templates vc_column.php文件中发生了一些奇怪的错误。我不得不手动注释掉故障代码以使错误消失。

如果您不熟悉将文件直接上传到您网站的public_html根目录,这三个步骤有点神经紧张。如果您为他们提供ftp用户名密码,某些主题可能会提供支持并为您执行ftp上传。

These 3 steps are a little nerve racking if you are not familiar with uploading files directly to your public_html root directory of your website. Some themes may offer support and do the ftp uploading for you if you provide them with ftp username password.

还有一件事要清除您网站的缓存。在chrome中,您可以通过转到chrome:// settings / cookies清除缓存,在搜索栏中输入website.com,然后单击删除所有清除所有本地存储的数据。建议仅在无法自动更新时才手动更新主题和插件,然后执行上述操作。对于我的主题和同样的确切错误我遵循这些非常好的步骤 https://community.theme.co/kb/updating-your-theme-and-plugins/ 。然而,根据您的主题,这将有所不同。如果你想回滚你的wp版本,你可以按照我原来的建议。但对我来说,我喜欢拥有一切新的和最新的。

One more thing to do is clear your cache for your website. In chrome you can clear your cache by going to chrome://settings/cookies enter website.com in the search bar and click remove all clearing all locally stored data for your website. Manual updating themes and plugins is recommended only if auto updates aren't possible then you do the above. For my theme and this same exact error in question I followed these really well-done steps https://community.theme.co/kb/updating-your-theme-and-plugins/. However this will be different depending which theme you have. And if you would rather roll back your wp version you can follow my original suggestion. But for me I like to have everything new and up-to-date.

还有一个更重要的说明,如果你确实有这个主题,那么我必须从我网站的插件中删除x-shortcodes插件,因为我更新的主题使用的是基石而不是x-处理重要短代码的短代码,使vc正常工作。另一件需要知道的事情是,在上传插件和主题时,您的数据不会受到任何损害。所有数据/内容都安全地存储在您的数据库中而不是主题中。

One more important note if you do have this theme then I had to delete x-shortcodes plugin from plugins direcotry of my website because my updated theme uses cornerstone instead of x-shortcodes to process important shortcodes to make vc work properly. Another thing to know is none of your data should be harmed while uploading plugins and themes all the data/content is stored safely in your data-base not in your theme.

这篇关于Visual Composer不加载并给出TypeError:_. trylate(...)。trim不是函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆