Skip Navigation

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

Problem:
The client is experiencing a critical error when trying to edit Czech translations in Elementor, even after previous attempts to resolve the issue.

Solution:
If you're experiencing a similar issue, we recommend the following steps:
1) Upgrade to the latest version of WPML (4.6.9).
2) Navigate to WPML>>Support page, and click on the Troubleshooting link.
3) On the Troubleshooting page, click on the following options in the *Clean up* section and wait for confirmation after each:
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables
4) Update all the Elementor templates used on the site in English, then update their translations.
5) Update the pages having issues in English, then update their translations.

Please try these steps on your staging site and let us know your feedback.

If this solution doesn't look relevant to your issue, please open a new support ticket with us.

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 7 replies, has 2 voices.

Last updated by Bigul 1 year, 3 months ago.

Assisted by: Bigul.

Author Posts
December 14, 2023 at 8:42 am #15061259

franks-25

Hi Bigul,

Unfortunately I need to re-open this ticket. I tried commenting on the other ticket (https://wpml.org/forums/topic/critical-error-only-on-one-specific-language/) because that error from that ticket unfortunately still persists.

While we are now able to edit in Elementor again (so this ticket is resolved), the other one unfortunately isn't. While everything seemed fine at first, today I went ahead and wanted to delete and re-translate the Czech translations as instructed in the other ticket, but after trying to edit these translations in Elementor again, the Critical Error re-appeared.

So the same error of the other ticket still persists. Could you look into it?

Thanks!

December 14, 2023 at 4:45 pm #15066671

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue. Please answer the following questions for tracking this.

1) Does this issue only happen when you translate or visit the page/post in the Czech language?

2) If so, have you tried it when Fidelo Snippet and Perfmatters plugins are inactive

3) Hope you have tested it in the staging site - hidden link

--
Thanks!

Bigul

December 15, 2023 at 8:17 am #15070023

franks-25

Hi,

I tested it now on the staging site where almost all plugins except the absolutely necessary ones are inactive. We don't get the Critical Error message there, but the translation is still faulty. The issue happens like this:

1) I deleted the faulty translation permanently, e.g. hidden link

2) Then I re-translate it from English using WPML. When I now navigate to the page, everything works and looks as intended at first.

3) But, as soon as I open that Czech page in Elementor editor (without doing any actual edits), and when I then go back to that Czech page, the last section of the page is missing. Also the drop down menu in the header is not working anymore.

Compare the Czech and the English version and scroll all the way to the bottom to see what I mean:

hidden link
hidden link

The red section with "Are you excited to enroll in one of our courses?" is a global widget. And this is where the Czech page stops loading. This issue also only happens on pages that have this global widget on them. So maybe it has something to do with that?

Hope that explains the issue.

chrome_ujSBHUY5In.png
December 15, 2023 at 11:52 am #15071621

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the details. We will debug it further. So this error is only happening on Czech pages now, please confirm.

If so, please make a minor change in the English templates, and then update Czech templates. Hope it will help. The debug log shows the following error.

PHP Fatal error:  Uncaught Error: Call to a member function get_class_name() on null in /****/wp-content/plugins/elementor-pro/modules/global-widget/widgets/global-widget.php:185

--
Thanks!

Bigul

December 18, 2023 at 7:19 am #15080673

franks-25

Yes, it seems to only happen for the Czech language.

I did a minor change in English (I tried both: the English page as well as just the English global widget/template) and updated the Czech version for each. But it is just as described above: at first the page looks fine, but as soon as I open the Elementor editor, the last part of the page is gone.

December 18, 2023 at 3:37 pm #15085743

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the feedback. We will debug it further and get back to you as early as possible. Please wait.

--
Thanks!

Bigul

December 20, 2023 at 5:32 pm #15105203

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

The bug exists after the initial troubleshooting steps. So I am consulting with our Second Tier team for an expert opinion. We will get back to you as soon as possible. Please wait.

--
Thanks!

Bigul

January 17, 2024 at 11:46 am #15194570

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Sorry for the late response. This is a tricky case. We are getting the expected results in the staging site after the following steps.

1) Upgrade to the latest version of WPML(4.6.9)
2) Go to WPML>>Support page, click on the Troubleshooting link (blue link in the middle of the page)
3) On the Troubleshooting page, please click on the following options of the *Clean up* section. Wait for confirmation of processing after each one.

- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables

4) Update all the Elementor templates using on the site in English, then update their translations
5) Update the pages having issues in English, then its translations

Please check it on the staging site and let us know your feedback.

--
Thanks!

Bigul