Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 81 replies, has 3 voices.

Last updated by Nigel 1 year ago.

Assisted by: Waqar Ali.

Author Posts
May 23, 2024 at 10:03 pm #15665316

Waqar Ali

Thank you for waiting.

I've completed all the troubleshooting steps, but the issue with the homepage's content persists.

I also performed some tests on my website with a similar setup, but couldn't reproduce this behavior.

Do I have your permission to download the clone/snapshot of the website? This will help us investigate this further without affecting the actual website.

May 23, 2024 at 11:49 pm #15665342

orrog

yes you can,
I hope you resolve it quickly, I'm losing money and customers because of this

May 23, 2024 at 11:56 pm #15665343

orrog

LOOK: the front english page is in french language too now !!!
what's happen ?
hidden link

May 23, 2024 at 11:58 pm #15665344

orrog

I received this email this morning :
Howdy!

WordPress has a built-in feature that detects when a plugin or theme causes a fatal error on your site, and notifies you with this automated email.

In this case, WordPress caught an error with one of your plugins, WPML Multilingual CMS.

First, visit your website (hidden link) and check for any visible issues. Next, visit the page where the error was caught (hidden link) and check for any visible issues.

Please contact your host for assistance with investigating this issue further.

If your site appears broken and you can't access your dashboard normally, WordPress now has a special "recovery mode". This lets you safely login to your dashboard and investigate further.

hidden link

To keep your site safe, this link will expire in 1 day. Don't worry about that, though: a new link will be emailed to you if the error occurs again after it expires.

When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.5.3
Active theme: GeneratePress Child (version 0.1)
Current plugin: WPML Multilingual CMS (version 4.6.11)
PHP version 8.2.19

Error Details
=============
An error of type E_ERROR was caused in line 501 of the file /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php. Error message: Uncaught Error: Call to a member function get_source_language_code() on bool in /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/functions-load-tm.php:501
Stack trace:
#0 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php(153): wpml_tm_create_ATE_job_creation_model(210, true)
#1 [internal function]: WPML_TM_ATE_Jobs_Actions->{closure}(210, 0)
#2 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php(164): array_map(Object(Closure), Array, Array)
#3 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#4 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(154): call_user_func_array(Object(Closure), Array)
#5 [internal function]: WPML\FP\Fns::WPML\FP\{closure}(Object(Closure), Array)
#6 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php(56): call_user_func_array(Object(Closure), Array)
#7 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Hooks/class-wpml-tm-ate-jobs-actions.php(152): WPML\FP\Fns::__callStatic('map', Array)
#8 /var/web/site/public_html/wp-includes/class-wp-hook.php(324): WPML_TM_ATE_Jobs_Actions->added_translation_jobs(Array, 6, Object(WPML_TM_Translation_Batch))
#9 /var/web/site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#10 /var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#11 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(1478): do_action('wpml_added_tran...', Array, 6, Object(WPML_TM_Translation_Batch))
#12 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(1316): TranslationManagement->send_jobs(Object(WPML_TM_Translation_Batch), 'post', 6)
#13 /var/web/site/public_html/wp-includes/class-wp-hook.php(324): TranslationManagement->action_send_jobs(Object(WPML_TM_Translation_Batch), 'post', 6)
#14 /var/web/site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters('', Array)
#15 /var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#16 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/API/Batch.php(40): do_action('wpml_tm_send_po...', Object(WPML_TM_Translation_Batch), 'post', 6)
#17 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/API/Batch.php(56): WPML\TM\API\Batch::WPML\TM\API\{closure}(Object(WPML_TM_Translation_Batch))
#18 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/API/Batch.php(44): WPML\TM\API\Batch::send(Object(Closure), Array, Object(WPML_TM_Translation_Batch))
#19 [internal function]: WPML\TM\API\Batch::sendPosts(Object(WPML\TM\Jobs\Dispatch\Messages), Object(WPML_TM_Translation_Batch), 6)
#20 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php(100): call_user_func_array('WPML\\TM\\API\\Bat...', Array)
#21 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/Dispatch/Elements.php(49): WPML\FP\{closure}(Object(WPML\TM\Jobs\Dispatch\Messages), Object(WPML_TM_Translation_Batch))
#22 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/Dispatch/Posts.php(19): WPML\TM\Jobs\Dispatch\Elements::dispatch(Object(Closure), Object(WPML\TM\Jobs\Dispatch\Messages), Object(Closure), Array, 'post')
#23 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(497): WPML\TM\Jobs\Dispatch\Posts::dispatch(Object(Closure), Object(WPML\TM\Jobs\Dispatch\Messages), Object(Closure), Array)
#24 /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/translation-management/translation-management.class.php(295): TranslationManagement->process_request(Array)
#25 /var/web/site/public_html/wp-includes/class-wp-hook.php(324): TranslationManagement->wp_loaded('')
#26 /var/web/site/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#27 /var/web/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#28 /var/web/site/public_html/wp-settings.php(717): do_action('wp_loaded')
#29 /var/web/site/public_html/wp-config.php(98): require_once('/var/web/site/p...')
#30 /var/web/site/public_html/wp-load.php(50): require_once('/var/web/site/p...')
#31 /var/web/site/public_html/wp-admin/admin.php(34): require_once('/var/web/site/p...')
#32 {main}
thrown

May 24, 2024 at 10:03 am #15666894

orrog

Hi,
can you answer me, I don't know what's going on!
I need to be informed, I'm losing customers, if you don't do anything, I'll be forced to buy another plugin, I can't wait!
Digital marketing is launched, the website was working well, let me know!
It's very unpleasant to wait without knowing if you're doing something or not, do you understand?

May 24, 2024 at 10:40 am #15667237

Waqar Ali

Thank you for the permission and I've downloaded the website's clone.

The email about the error is related to a broken connection with the automatic translation service. I was working on the website last night and was able to reset the connection and fix that error.

I can understand the urgency of the situation and working to resolve the homepage's translation issue with the highest priority. Will share the findings as soon as the testing on the website's clone is completed.

May 24, 2024 at 10:51 am #15667242

orrog

I do the manual translation directly on the page, it can't stay like that. Could this pose a problem for the system?

May 24, 2024 at 1:49 pm #15668177

Waqar Ali

> I do the manual translation directly on the page, it can't stay like that. Could this pose a problem for the system?

- I added manual translation to the corresponding language pages on your website's clone and it worked. And it shouldn't be a problem for the translation system.

Here are the steps that I took on the clone:

1). These are the pages that are set as the homepage in each of the languages and are also set with the correct translation connection:

a). FR
Page title: Accueil
Page ID: 324

b). TH
Page title: ยินดีต้อนรับ
Page ID: 13421

c). EN
Page title: Home
Page ID: 13425

I added manual changes to the content of these pages in the Thai and English versions of the homepages and they started showing correctly on the website's clone.

Live Website:

On the live website, I see that these pages have been changed and some of them are deleted and are in the trash.

I would recommend, deleting their duplicate pages and restoring the original ones with the IDs mentioned above from the Trash.

You can go to WP Admin -> Pages and see pages defined in each language by using the language navigation at the top.
( example screenshot: hidden link )

Also, make sure that the correct page is set as the Homepage for each language at WP Admin -> Settings -> Reading.

You can use the language selector in the top admin bar to view the settings for each language.
( screenshot: hidden link )

If done correctly, when you open these homepages in other languages for editing, they'll correctly show as the translation of the original page 'Accueil':

Thai homepage screenshot:
hidden link

English homepage screenshot:
hidden link

May 24, 2024 at 2:46 pm #15668406

orrog

Hi,
I wasted time doing what you asked, but it's not working, and now do I have to wait another day for you to respond?
I don't understand, if it works for you, do the same on my live site and the problem will be solved. And above all, if you see a problem, it will save me from wasting any more time.
Your message ends with "If done correctly"
well NO, I did as you said, AND IT’S THE SAME!!!!!!!!!

CAN YOU RESOLVE IT ON MY WEBSITE ?

May 24, 2024 at 2:48 pm #15668409

orrog

look, thai and english pages still in french language

246.jpg
May 24, 2024 at 2:49 pm #15668425

orrog

I need help, can you do that or not ?

May 24, 2024 at 2:54 pm #15668432

orrog

Why the english home page have this slug : home-2 (with number 2)
, same for thai page : ยินดีต้อนรับ-2

May 24, 2024 at 2:56 pm #15668449

orrog

solve it this week end or refund me please, I lose too many time with this discussion, you reply every time very late

May 24, 2024 at 3:24 pm #15668483

orrog

ok, I had restored an old backup, but now, I have the old issue :
the link in the top don't change for thai or english translation,
ilt's done in string translation and elements, can you solve it ?

248.jpg
249.jpg
250.jpg
May 24, 2024 at 4:38 pm #15668640

orrog

I solved everything myself by restoring the old backup, but I lose a lot of work.
The front page are ok now, same before.
I cannot be sure of your plugin, and even worse, of your support, because this problem occurred on its own, and you were not able to resolve this serious problem : I will request a refund.

The topic ‘[Closed] front page stay in thai language after translation’ is closed to new replies.