Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 1 reply, has 0 voices.

Last updated by berendT-2 3 months, 2 weeks ago.

Author Posts
January 10, 2025 at 11:17 am #16581725

berendT-2

<b>Background of the issue: </b>
I am trying to use Elementor with WPML. I encountered an issue when attempting this integration. The error log is as follows:

[10-Jan-2025 11:05:19 UTC] PHP Fatal error:  Uncaught Error: Class "Elementor\Core\Schemes\Color" not found in /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/LanguageSwitcher/WidgetAdaptor.php:156
Stack trace:
#0 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/LanguageSwitcher/Widget.php(50): WPML\PB\Elementor\LanguageSwitcher\WidgetAdaptor->registerControls()
#1 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-content/plugins/elementor/includes/base/controls-stack.php(2427): WPML\PB\Elementor\LanguageSwitcher\Widget->register_controls()
#2 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-content/plugins/elementor/includes/base/widget-base.php(1050): Elementor\Controls_Stack->init_controls()
#3 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-content/plugins/elementor/includes/base/controls-stack.php(569): Elementor\Widget_Base->init_controls()
#4 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-content/plugins/elementor/includes/base/widget-base.php(184): Elementor\Controls_Stack->get_stack()
#5 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-content/plugins/elementor/includes/managers/widgets.php(391): Elementor\Widget_Base->get_stack()
#6 [internal function]: Elementor\Widgets_Manager->ajax_get_widget_types_controls_config()
#7 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-content/plugins/elementor/core/common/modules/ajax/module.php(176): call_user_func()
#8 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-includes/class-wp-hook.php(324): Elementor\Core\Common\Modules\Ajax\Module->handle_ajax_request()
#9 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
#10 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-includes/plugin.php(517): WP_Hook->do_action()
#11 /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-admin/admin-ajax.php(192): do_action()
#12 {main}
  thrown in /home/u138139563/domains/oceldesign.com/public_html/stage2/wp-content/plugins/sitepress-multilingual-cms/addons/wpml-page-builders/classes/Integrations/Elementor/LanguageSwitcher/WidgetAdaptor.php on line 156

Perplexity.ai states that:
"This error is caused by a compatibility issue between Elementor and the WPML Multilingual CMS plugin. The problem arises because Elementor has deprecated the Scheme_Color class, which WPML is still trying to use. "

To temporarily fix this issue, I found that disabling the "WPML Language Switcher" element from Elementor's element manager allows Elementor to load again. This is of course not an ideal solution.

<b>Symptoms: </b>
Elementor doesn't load. The debug.log states a PHP Fatal error: Uncaught Error: Class "ElementorCoreSchemesColor" not found.

<b>Questions: </b>
Could this compatibility issue between Elementor and WPML be looked into?

January 10, 2025 at 11:49 am #16581880

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

Make sure to update WPML and Elementor plugins to the latest versions. This should be fixed in the latest WPML 4.6.15

You can force check update like this:
- https://wpml.org/faq/why-dont-wpml-updates-show-up-right-away-in-my-wordpress-admin/

Let us know how it goes.

Regards,
Drazen

January 10, 2025 at 6:44 pm #16582950

berendT-2

Dear Drazen,

Thanks for your swift answer. My issue has been resolved with the update!