Skip Navigation

[Resolved] Visual Composer Unlimited Addons is not working in Toolset Content Templates

This thread is resolved. Here is a description of the problem and solution.

Problem:

we're encountering ​an issue using the Unlimited Addons with another set of plugins, Toolset from OnTheGoSystems.

This plugin lets you create some "content templates" and in their interface there's a WYSIWYG editor where it is possible to use the Page Builder (Visual Composer is compatible with Toolset and the "basic" VC works fine).

Trying to use the elements from Unlimited Addons results in a Javascript error "Uncaught ReferenceError: g_ucObjGeneralSettings is not defined" and it's not possible to edit/save the wanted element (we firstly noted it trying to use a "Circle Event Box" but it happens with other elements as well).

If we use those elements in the editor of a normal Page or Post (or even of a Custom Type defined via Toolset), everything works fine.

We don't know if the issue comes from your plugin or from Toolset, so we're submitting a ticket to both.

Solution:

it is a compatibility problem,,
1) I create another content template, and add a new content template, edit with the "WPBakery Page Builder", add a "Circle Event Box", then I can get the JS error you mentioned above:
Uncaught ReferenceError: g_ucObjGeneralSettings is not defined

I searched it in the source code of plugin "Unlimited Addons for WPBakery Page Builder", file
plugins\unlimited-addons-for-wpbakery-page-builder\provider\assets\uc_general_settings.js
line 625:

var g_ucObjGeneralSettings = new UCGeneralSettings();

The problem is when you edit a content template, the JS file "uc_general_settings.js" does not load, and it conduct the JS errors. So I suggest you check it with the author of plugin "Unlimited Addons for WPBakery Page Builder", check if it is possible to load their JS files when edit a content template.

Relevant Documentation:

This support ticket is created 6 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 6 replies, has 2 voices.

Last updated by ROTOTOM 6 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#608471

Hi,

we're encountering ​an issue using the Unlimited Addons with another set of plugins, Toolset from OnTheGoSystems.

This plugin lets you create some "content templates" and in their interface there's a WYSIWYG editor where it is possible to use the Page Builder (Visual Composer is compatible with Toolset and the "basic" VC works fine).

Trying to use the elements from Unlimited Addons results in a Javascript error "Uncaught ReferenceError: g_ucObjGeneralSettings is not defined" and it's not possible to edit/save the wanted element (we firstly noted it trying to use a "Circle Event Box" but it happens with other elements as well).

If we use those elements in the editor of a normal Page or Post (or even of a Custom Type defined via Toolset), everything works fine.

We don't know if the issue comes from your plugin or from Toolset, so we're submitting a ticket to both.

If you need to test what's happening, here are the credentials to our WP backoffice. It's a test site, so feel free to enter and do all the tests you need.

Once in the backoffice, you have to go to Toolset > Plantillas de contenido and select "Loop item in LINE UP VIEW" from the list.

Thank you.​

#608768

Dear Manuelan,

Since it is a compatibility problem, please check these:

1) deactivate other plugins and switch to wordpress default theme, and test again
2) If the problem still persists, please provide a copy of your website
https://toolset.com/faq/provide-supporters-copy-site/
also point out the problem page URL and content template URL, where and how can I see the JS errors.

You can put it into your own google drive disk, and share the link in the "private detail box", I need to duplicate same problem and debug it in my localhost, thanks

#609285
#609306

Thanks for the details, I can download those files, will feedback if there is anything found

#609601

Here are what I found,
1) Dashboard-> Toolset-> Content template, there isn't "toolset test" content template
2) So I create another content template, and add a new content template, edit with the "WPBakery Page Builder", add a "Circle Event Box", then I can get the JS error you mentioned above:
Uncaught ReferenceError: g_ucObjGeneralSettings is not defined

I searched it in the source code of plugin "Unlimited Addons for WPBakery Page Builder", file
plugins\unlimited-addons-for-wpbakery-page-builder\provider\assets\uc_general_settings.js
line 625:

var g_ucObjGeneralSettings = new UCGeneralSettings();

The problem is when you edit a content template, the JS file "uc_general_settings.js" does not load, and it conduct the JS errors. So I suggest you check it with the author of plugin "Unlimited Addons for WPBakery Page Builder", check if it is possible to load their JS files when edit a content template.

#610107

Sorry I didn't realize that I created the template after creating the duplicate.
Thank you for your help, I will contact UniteCMS developers.

Im closing this thread.

#610544

You are welcome

#616835

Unlimited Addons updated their plugin and now it's possible to use it everywhere.