Skip Navigation

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.

Tagged: 

This topic contains 20 replies, has 2 voices.

Last updated by Itamar 1 year, 6 months ago.

Assisted by: Itamar.

Author Posts
May 16, 2023 at 9:42 am #13654535

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, and thanks for trying my suggestions and sharing the video.

We need to investigate this issue on a copy of your site. For this, I created a temporary server on our Cloudways servers where you can migrate your site. The process is quite easy. Please see all the instructions in the following private message.

Thanks,
Itamar.

May 16, 2023 at 11:44 am #13655861

ahfA

Helo Itamar,

Thank you very much for your support,
hidden link

I did it.
Please can you check.

Thank you.

May 16, 2023 at 6:49 pm #13659133

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Thanks for migrating your site to our Cloudways server.

Our second-tier supporter will check things on the copy of your site, and I'll update you here.

Thank you for your patience.
Itamar.

May 17, 2023 at 7:11 pm #13667805

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

Our second-tier supporter shared a fix for this issue. He wanted to check the DB of your site, but when he tried to install the PHPMyAdmin plugin, it was blocked, and he could not proceed.

Please try the following on your site.

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.

Please update me on the results.

Regards,
Itamar.

May 18, 2023 at 8:41 am #13670089

ahfA

My issue is resolved now. Thank you!

Now I have a question, if I change the Translation Mode, make it automatic, every month the whole page will be retranslated and the changes that I can make from time to time in the products will change. There are times when I reenter a product so that I can add text and finalize the English translation, what happens to the automatic translation next month?

May 18, 2023 at 10:20 am #13670971

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I'm glad that the issue on your site is solved now!

I'm confused about the question and not sure what you're asking. Please open a new chat or ticket in our forum with this question.

Thanks,
Itamar.