Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is experiencing issues with visitors being directed to sub-directory URLs instead of the correct domain URLs after changing the WPML-Language setting for different domains. Additionally, there are problems with a distorted home page and missing background images when switching to French.
Solution:
After migrating from staging to production please run the WPML troubleshooting options available at WPML > Support > Troubleshooting (Cleanup) > Clear the cache in WPML. This action can help resolve issues inside the Advanced Translation Editor.

If this solution does not resolve issues or seems irrelevant due to being outdated or not applicable to your specific 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. Should you need further assistance, please do not hesitate to open a new support ticket at 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 0 replies, has 3 voices.

Last updated by Alejandro 4 months, 3 weeks ago.

Assisted by: Alejandro.

Author Posts
November 15, 2024 at 4:40 pm #16409399

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

The problem here is, that you seem to register the site again and again and this causing issues.

I can see that the site hidden link was registered 15 times on our systems only this month.

This is why the translation memory keeps not working as expected.

Can you please explain in detail the steps that you take each time you move from staging to live site?

November 15, 2024 at 5:18 pm #16409454

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Take note, that I have merged now all organisations of your sites and the translation memory seems to work as expected now.

Please avoid registering the sites again. When migrating from staging to production, always use the copy option inside the migration banner.

November 15, 2024 at 7:18 pm #16409553

ronaldT-5

1) I follow the prompts (including copying the migration code from staging) until it gives me an error page. (to avoid the error page, I have to click, on "Cleaning and optimize string tables" prior.

2) I clear WPML cache

3) I switch the language format to different domains.

See the current connected sites after you corrected everything.

Screenshot 2024-11-15 at 2.12.05 PM.jpg
November 15, 2024 at 8:36 pm #16409759

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Do I understand right, that your workflow includes that translations are made on the staging site and then the staging site is pushed to production on an almost daily basis?

If so, you should set the migration banner option to "Copy" but if you are not going to create translations on the production site, then you can select "No" in the second step of the migration banner dialog.

---

Question:

At any moment, when moving from staging to live, are you unregistering WPML and registering it again on wpml.org and inside WordPress?

For wpml.org:
You should have both site URLs registered once. The site key should remain identical. You should always use the same site key for production and the same site key for staging.
Do not delete the sites on wpml.org and do not create new site keys when migrating the site.

At the moment all organisations are connected and are sharing the same memory.

Can you confirm so far that this solved the issue?

November 15, 2024 at 8:51 pm #16409773

ronaldT-5

I often pushed the staging to production for troubleshooting purposes only. I do not intend to EVER doing this again. Way too many hurdles! Enough to go insane!

I only unregistered inside WordPress when I was stuck or told to do so. This last time, I indeed heeded your warning and skipped the unregistration.

The license keys are NOT the same as we speak and I have not changed it today.

I just changed the title of a page (Lanaudiere ADT Alarm System) in Safari to test it out, and surprise - surprise, most of my translations are GONE. And none of my French links work.

Screenshot 2024-11-15 at 3.48.51 PM.jpg
Screenshot 2024-11-15 at 3.44.52 PM.jpg
November 15, 2024 at 8:59 pm #16409813

ronaldT-5

And now on Chrome (just changing the page title screws things up). Why can't you transfer me to 2nd Tier Support??

Screenshot 2024-11-15 at 3.57.31 PM.jpg
November 15, 2024 at 10:01 pm #16409912

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Yes, I will be scalating to Second Tier, but I need more information and seems to me we are handling two diffent issues here.

1) Translation memory
2) Lost translations

On your product site I have duplicated the page "Acknowledgement" and if I open the translation editor the translation is filled to 100%. This means that the translation memory is working now as expected.

On my duplicated page then I edited the title and opened the translation editor.

Result:
Only the title segment is expected to get updated.

So far this works as expected.

If I now do the same test with the page "Lanaudiere Business Alarm System" is it only translated to 7%.

This means, there seems to be an issue with this specific content and the issue does not occur on all pages. Also in this case "Clearing the cache in WPML" appears not longer to solve the issue.

---

Possible cause for this issue:

I remeber you were earlier asking me about the "I prefer bigger segment" options. If this option is changed the segments will need to get translated again.

This seems to be the reason for the issue, as once I complete the translation for this page and edit the original title again, the issue does not longer occur.

November 15, 2024 at 10:08 pm #16409960

ronaldT-5

I'm now using "I prefer bigger segments" on both, staging and production.

And I'm using the NEW Gen3 ATE on both. Should I switch to Gen2?

November 15, 2024 at 10:26 pm #16409971

ronaldT-5

Actually, reverting to the Gen2 ATE makes no difference. Could it simply be that the bigger pages are more prone to this issue?

Again, why are the two licenses not the same?

Screenshot 2024-11-15 at 5.26.24 PM.jpg
November 15, 2024 at 11:57 pm #16410047

Andreas W.
Supporter

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Each site needs a proper license key - it is expected that each site URL has a different key.

I am not sure why you are now changing back to Gen2.

The bigger segments were added with the new Gen3 and if you switch the setting the segments will need to get translated again.

I translated your example page, then updated the original content and I can not longer confirm an issue.

The site is functioning as expected now.

November 16, 2024 at 12:36 am #16410095

ronaldT-5

I moved back to Gen2 for troubleshooting purposes. I was desperate.

You translated my sample page? What page? And what kind of translation are you referring to?

What is functioning as expected?

November 16, 2024 at 5:07 pm #16411024

ronaldT-5

Can you do me a favor, stop telling that everything works now. Nothing works now!

And PLEASE have someone else on tier 2 support come along. You have no idea how fed up I am. To me WPML is the very worst plugin ever!!!

November 16, 2024 at 9:57 pm #16411203

ronaldT-5

Following you proclamation that everything worked, I tried to reset many pages, but most of them losing translations in the process. I didn't change any settings at all.

I just noticed this warning on the live production site:

This site is registered on WPML.org as a development site.
When this site goes live, remember to update the site key from "development" to "production" to remove this message. Learn more

Screenshot 2024-11-16 at 5.01.13 PM.jpg
November 16, 2024 at 10:06 pm #16411246

ronaldT-5

Unregistering the license key and re-registering it with the provided one get rid of the development message, but I'm STILL losing my translations past page resets.

November 16, 2024 at 10:45 pm #16411253

ronaldT-5

If I retranslate the pages, the issue goes away it seems for those pages. But, having that many pages to retranslate would take me forever...