$template.get(0) is undefined
this is what I got when I try to add an element with visual composer, this error is different from $template.get(0) is not a function
witch is a common more common, after some tests I found out that template(this.model.toJSON())
in line 138
returns an empty result,so now I hope that I can find someone who can at least tell me how to edit this.model
value
Asked
Active
Viewed 1,616 times
0

celia
- 33
- 10
-
This seems to be a common issue for anyone who has updated to Wordpress 4.3 or higher. What is your current WP version. – Isabel Inc Jul 14 '16 at 17:20
-
yes exactly my wordpress version is 4.5.3 but can't modify this – celia Jul 14 '16 at 19:40
1 Answers
0
You basically have two options.
Update the visual composer to latest version.
Use FTP to edit the visual composer js file
The first option can be done through the plugins menu on your admin panel.
For the second option you need to edit and replace some JS using FTP. You can check out the answer here Uncaught TypeError: $template.get is not a function
Hope this answers your questions. Happy coding!

Community
- 1
- 1

Isabel Inc
- 1,871
- 2
- 21
- 28
-
-
Yes I had the same problem with composer and I tried this and it seemed to fix it. Have you tried updating the plugin? – Isabel Inc Jul 14 '16 at 20:40
-
-
-