This thread is resolved. Here is a description of the problem and solution.
Problem:
Advanced Translation Editor - although the translation is complete, it does not show on the front end, and the pencil icon never shows. In WordPress's debug.log, the following fatal error shows.
PHP Fatal error: Uncaught Error: Call to a member function get_source_language_code() on bool in /public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:496
Solution:
1. Take a complete backup of the DB of your site.
2. Connect to the DB and run the following queries.
DELETE FROM `wp_icl_translations` WHERE `element_id` IS NULL
Then
DELETE FROM `wp_icl_translations` WHERE `source_language_code` = 'all'
3. Go to WPML-> Support-> Troubleshooting and click the "Set language information" button. And wait for the process to finish.
4. Check if now this problem is solved on your site.
**** Important! Please make a full site backup (files and DB) before you proceed with those steps****
If you are unsure that this is the same problem you are experiencing, please open a new ticket in our 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.
This topic contains 20 replies, has 2 voices.
Last updated by 1 year, 6 months ago.
Assisted by: Itamar.