Home › Toolset Professional Support › [Resolved] Layouts 1.8.6 Still Has Problems – WPML simple_language_selector Select 2
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.
This topic contains 5 replies, has 2 voices.
Last updated by George 4 years, 11 months ago.
Assigned support staff: Nigel.
When editing Layouts, I am still getting errors / not able to save layouts still. Error seems to be related to WPML language switcher on backend:
The toolset_select2('destroy') method was called on an element that is not using Select2. - /plugins/layouts/inc/gui/editor/js/ddl-wpml-box.js
Uncaught TypeError: WPML_Core.simple_language_selector.initialize_toolset_select2 is not a function
Please please please try to fix this bug ASAP. Have been waiting to update for weeks now, but things keep breaking on our dev site. We're stuck on a CRED version with problems because of this.
English (English )
Spanish (Español )
I created a test installation locally with the latest Toolset and WPML plugins installed and was eventually able to recreate the problem shown in your screenshot.
I have escalated this thread to our second tier for further investigation and will report back to you as soon as there are any developments.
Thanks for your patience.
You said ASAP, so I'm reporting the findings here.
You can apply this fix yourself, or wait until an errata with a patch is prepared or the next release is published.
You need to locate line 49 of the file: layouts/inc/gui/editor/js/ddl-wpml-box.js
and change this:
If you do update it yourself please let me know whether that fixes the error, thanks.
Thank you Nigel! I'm going to apply this and report back. A+
Great, let me know how you get on.
Works great Nigel. Thank you!
Known issues and solutions
Frequently asked support questions
Support tickets archive
Get help from experienced contractors
Meet Toolset support team
Toolset Customer Support Policy
Need to tell us something about the quality of support
How to remove personal information from your database for support