Home›Support›English Support›[Resolved] Import failed - the uploaded xliff file does not seem to be properly formed...
[Resolved] Import failed - the uploaded xliff file does not seem to be properly formed...
This thread is resolved. Here is a description of the problem and solution.
Problem:
The client has some issues importing XLIFF files in his system. Some of them were not properly formed.
Solution:
After downloading the XLIFF file to inspect them I noticed that some translations '' were missing. This website had a low PHP memory allocation (40M) and that's why translations were not completed.
- Go to "WPML > Support > WordPress (table) and check the WP_MEMORY_LIMIT (if it's inferiror to 128M the number will be in red).
- Access your server via FTP and open wp-config.php (in your Wordpress root directory).
- Insert those lines just before /* That's all, stop editing! Happy blogging. */
Welcome to the WPML support forum. Thanks for contacting us.
We are currently experiencing some technical issues. This error has been reported to our system team and they are already working on it. Can I kindly ask you to wait for a moment and try again later.
This incident is resolved now. You should be able to download all our plugins directly from your WPML account.
- Go to https://wpml.org/account/downloads/
- Click on "Download WPML manually" to see all plugins and download them
- In your WP dashboard, go to "Plugins > Add new" and use the button at the top of your screen to upload the .zip file
Could you please provide me with a temporary admin access (wp-admin and FTP) – preferably to a test site where the issue has been replicated – so I can further investigate. I will activate a private field for your next answer where you can provide that information safely (this field is only visible by you and the support team). Don't share your own admin account, create a new one that you will delete when we finish troubleshooting.
IMPORTANT: Before we proceed, please backup your site and database.
Also, please attach the XFILL files so I can test it myself (using a Gdrive or Wetransfer link).
As I suspected, some <target> tags are empty.
I downloaded a new job from the same page (Comexi F2 Evolution) and compare it to the file you sent me (job 544).
Some translations are correctly formatted with a source (original text) and a target (translation):
<source><![CDATA[Download catalogue]]></source>
<target><![CDATA[Descargar el catálogo]]></target>
But some are missing the target:
<source><![CDATA[<p>Print with the highest quality and at 600 m/min at the touch of a button. If you are looking for 10 colors and better choice for extended color gamut, and optimize energy costs, the F2 Evolution is the flexo printer for you. A new generation of flexo printers that offer greater efficiency and print quality and greater ease of use.</p>]]></source>
<target></target>
It seems that the translation is not 100% completed. I'm not sure if it's a human mistake or an issue from your configuration as I've noticed you have a very low PHP memory allocation (40M) that can impact your translations.
The minimum requirement for WPML is 128M but we recommend 256M:
- Access your server via FTP and open wp-config.php (in your WordPress root directory).
- Insert those lines just before /* That's all, stop editing! Happy blogging. */
Then resend the page for translation (create a new job) to your translator and ask him if he can see more segments to translate. Ask him to complete the entire translation, then try to upload the new translation and let me know how it goes.