[Resolved] Critical Error on an ONE specific language
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.
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?
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?
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
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.
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.
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.