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.

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

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 1 reply, has 0 voices.

Last updated by Bruno Kos 20 hours, 48 minutes ago.

Assisted by: Bruno Kos.

Author Posts
January 31, 2025 at 7:23 pm #16657067

juan-fM-4

Background of the issue:
I am trying to set up translations for all Elementor Pages and Templates that are used on the pages I'm testing. I am currently redirecting /es/ to hidden link for all users not on my IP as WPML is crashing the Spanish language site.

Symptoms:
Loading the pages or trying to edit in Elementor throws a critical error. The error log includes a PHP Warning: Undefined array key 'widgetType' and a PHP Fatal error: Uncaught Error: Call to a member function get_class_name() on array in /home/123456789.cloudwaysapps.com/abcxyz/public_html/wp-content/plugins/elementor-pro/modules/global-widget/widgets/global-widget.php on line 196.

Questions:
Why is WPML crashing the Spanish language site?
How can I resolve the critical error when loading or editing pages in Elementor?

February 1, 2025 at 5:09 pm #16658673

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

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

Hi,

This is probably not related to the RC1 because we had this issue in several previous cases. That being said, is only one page affected (e.g. home) or all the pages?

If so, if you are using the templates (footer, header) etc, can you do this for the templates and the page where the the issue occurs:

1. Open the default language page/template in Edit mode.
2. Edit it with Elementor page builder.
3. Make a small change, for example, add a heading element.
4. Press the Save/Update button.
5. Now, please remove that heading elementor that did in step #3.
6. Update the page again.
7. Open the translation and resave it.

Does the issue occur then?

It is based on
https://wpml.org/forums/topic/translation-stuck-11/#post-15545145
https://wpml.org/forums/topic/elementor-post-are-experiencing-critical-error/#post-16514846