Home›Support›English Support›[Resolved] Translated posts not linked together anymore after moving to new host
[Resolved] Translated posts not linked together anymore after moving to new host
This thread is resolved. Here is a description of the problem and solution.
Problem: After migrating from Bluehost to Rocket.net, an older post that was previously translated is no longer linked to its translations. Each translation appears as a separate post, and some categories are incorrect. Solution: Since standard troubleshooting steps did not resolve the issue, we recommend manually linking the translations. It's possible that during the migration, some WPML tables did not transfer correctly. If the original site on the previous host is still accessible, consider redoing the migration using tools like Duplicator or All-in-One WP Migration. To manually link translations in WPML, edit the post and in the Language meta box, select the correct language from the dropdown and save. Then, under "Connect with translations", select the corresponding post for the other language and save.
If this solution does not apply to your case, or if it seems outdated, please open a new support ticket. We also 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. For further assistance, visit our support forum 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 recently moved from Bluehost to Rocket.net hosting. Everything seemed to have gone well but today I noticed that 1 older post that used to be translated is no longer linked to its translations. Now all translated languages have a new post of their own. And not only that but some of their categories are wrong.
I tried the usual steps to fix this:
– Synchronize posts taxonomies (for posts)
-- Set language information
-- Fix terms count
-- Fix post type assignment for translations
But nothing worked. Here are the links of the posts, starting with the English one which should be the default:
hidden link
hidden link
hidden link
hidden link
Could you look into this and see what went wrong? Is there an easy fix to relink these 4 posts as 1, or do I have to fix it manually? What worries me most is not even this post itself, but the indication of a larger problem in the translations due to the migration to a new host.
Symptoms:
1 older post that used to be translated is no longer linked to its translations. All translated languages have a new post of their own, and some categories are wrong.
Questions:
Could you look into this and see what went wrong?
Is there an easy fix to relink these 4 posts as 1, or do I have to fix it manually?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Since the above troubleshooting didn't work, I see no other way to but to link them manually.
We can only guess why this occurred, most likely something in one of WPML tables did not migrate properly, but without knowing exactly how to do reproduce issue we can hardly propose a solution.
As for fixing it, to change a post’s language in WPML, edit the post and use the **Language** meta box to select the correct language from the dropdown, then save. To link translations, go to the same meta box under "Connect with translations", select the corresponding post for the other language, and save.
I did use All in One WP Migration to move the site. But anyways I just deleted one of the main posts, and all the translated versions of it and retranslated them to the main post and its ok now.
But actually the real reason I opened this ticket is to try and see if this is an isolated situation or if there is a bigger corruption in the database. Any thoughts on that?
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
In WPML, the language of a post is stored in the wp_icl_translations table.
language_code defines the language of the post (e.g., en, fr, de). source_language_code specifies the original language of a translation (or NULL for original content).
But if these are wrong after the migration, we would need to reproduce this to see if All in One WP Migration is responsible for it or some of its settings.
However with All in One WP Migration I don't recall any such cases and we use it regularly.