How to fix my ReferenceError

I have a WordPress website that I worked on, for my project, the site is almost unfinished. On the website, I have a Create Clan button that uses the Visual composer (plugin) I "I turned to WP support without help. When I click the Create Clan button, the visual composer just loads and loads. I click" F12 ". To try to see what happens, and I have this error in the panel.

"Uncaught TypeError: undefined is not a function of this.activities_list [I] .call (window);

Uncaught ReferenceError: I am not defined (anonymous function) @ VM922: 1InjectedScript._evaluateOn @ VM921: 883InjectedScript._evaluateAndWrap @ VM921: 816InjectedScript.evaluate @ VM921: 682.

I have no idea what that means. He tells me that the error is inside my vc_Page_Editable.js folder in my topic. In line 292.

   window.vc_google_fonts();
this.collectScriptsData();
this.loadInlineScripts();
this.loadInlineScriptsBody();
for(var i in this.activities_list) {
   this.activities_list[i].call(window);
}

I can add the contents of the ENTIRE files if necessary.

+4
source share
1 answer

There seems to be a problem with this list, and one of the elements or properties in the list is undefined, so I would say that the safest bet is to check if this is the case, and move on to the next element.

for(var i in this.activities_list) {
    if(!i || !this.activities_list[i])
        continue;
   this.activities_list[i].call(window);
}
0
source

All Articles