Home›Support›English Support›[Resolved] Critical uncaught error when trying to translate content with WPML trans editor
[Resolved] Critical uncaught error when trying to translate content with WPML trans editor
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing a critical uncaught error when trying to translate content using WPML's translation editor. The error is due to a corrupted database missing some columns. Solution: 1. Compare your database structure with the expected WPML database model. You can check the model here: WPML Database Model. > 2. Ensure that the user role has translator permissions and make a minor edit to the default language page before attempting to translate. 3. Check the debug log for any additional missing tables and create them as needed.
If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket at WPML Support Forum.
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.
Background of the issue:
I am trying to translate content such as products, pages, and posts on my site hidden link using WPML's translation editor. I have already attempted various troubleshooting steps, including using the cleaning/fixing options on the troubleshooting page, creating a copy of the webshop to test with all other plugins turned off, and deleting and re-adding translators. My site's memory is 256MB with a max memory of 2048MB, and mbstring is active. The error appears in the logs as: 2024-12-10T14:50:17+00:00 Kritiek Uncaught Error: Call to a member function get_source_language_code() on bool in /home/***/public_html/preview/dexitest/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:501.
Symptoms:
I always get a critical uncaught error when trying to translate content with WPML's translation editor.
Questions:
What could be causing the critical uncaught error when using WPML's translation editor?
Are there any additional troubleshooting steps I can take to resolve this error?
this is the ticket. I checked the debug log and seems your database is corrupted and missing some columns.
Can you please check and compare and make sure it has all columns as in the image share? If you can create them, if not let us know and I will check further with our 2nd tier.
I checked the database, both the live site and the staging copy. As far as i was able to see all table values are present with correct name and type. I made screenshots and collected them in a picture, added as a attachment to this message.
When i hit the + i still get a crit error (i added screenshot attachment). When i hit a product with the two round arrows i go to the "translations in queue" page thats empty.
The existing translations where done with the standard wordpress editor by our client. We want to translate the rest with the WPML service using credits.
I just tested and it works fine for pages that use WP editor. Make sure your user is a translator and you make a small change to the default language page and then click.
For others that are not working I see still missing tables from error, please check the debug log and create them, or let us know if it is okay for us to adjust it for you.
For example, icl_translation_status is missing some tables.
I cross checked the database from staging with the live site and made the same changes. The live site now also works.
Thanks for the help
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.