[Resolved] Translations Stuck at 100% not creating localized pages
This thread is resolved. Here is a description of the problem and solution.
Problem: You are trying to translate content on a custom post using WPML, but the translations for Chinese traditional/simplified are not creating the associated localized pages. The translations appear stuck at 100% without generating localized pages, and error logs indicate issues with 'XLIFF Server Communication: The xliff file could not be read.' Solution: We discovered that the issue might be related to your theme or the files in the mu-plugins folder. To troubleshoot, try translating the content using a different theme on a local development site to see if the issue persists. If the problem is resolved with a different theme, the issue likely lies within your current theme or the mu-plugins files. If you are not the developer of the custom theme, we recommend contacting the theme author to investigate what might be preventing the translations from completing.
If this solution does not apply to your case, or if it seems outdated, please check the related known issues and confirm that you have installed the latest versions of themes and plugins. If the issue persists, we highly recommend opening a new support ticket at WPML support forum for further assistance.
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 am trying to translate content on a custom post at hidden link using WPML, but the translations are not creating the associated localized pages. This issue is occurring with Chinese traditional/simplified languages. I have attempted to cancel the translations from the translation manager's tools tab, edited the original content, completed the translations, and even deactivated and reactivated the plugin.
Symptoms:
Translations are stuck at 100% and not creating localized pages. Error logs show recurring events: XLIFF Server Communication The xliff file could not be read. wpml job ID = 1196/1192, ATE Job ID = 117267228/117256783.
Questions:
Why are the translations not creating localized pages even after completion?
How can I successfully cancel translations from the translation manager?
What does the error 'XLIFF Server Communication The xliff file could not be read' mean?
Why does the translation still show in progress after completion?
Sorry, could you check your staging site? When I try to open the homepage from your staging site hidden link , it's redirecting me to the production site.
There is no home page so the root url redirects to our parent website event listings.
You can access admin at hidden link and the specific custom post we are having issues with is hidden link
I regret any inconvenience caused, but to proceed with troubleshooting, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.
To guide you further, please adhere to these instructions:
1. View the Duplicator instructions video: hidden link
3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.
Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.
Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.
I've checked and it looks like the issue is caused by your theme and the files in the mu-plugins folder. I've tried translating the contents using another theme and it worked fine in my local dev site
Are you the developer of the custom theme? If not, you might want to check with the theme author and ask them to check what's preventing the translations from being completed.
Thanks for the feedback. Yes I am the developer working on the site. I'll look into this some more. The files in the mu-plugin is limited but maybe be the custom post type library. The code in those files hasn't changed in 2 years and the translations just stopped last week so I'm not sure what would be the cause.
Well I'm not sure what caused the translations to finally resolve but shortly after 10am est the the Chinese translation I had been trying to get to display finally displayed on the production site as well as some test translations that were not showing locally. I made no changes to the production files so I'm not sure if some type of cache was in place that prevented the completion.