Home›Support›English Support›[Waiting for user feedback] How do I tell if an .xliff upload worked or not?
[Waiting for user feedback] How do I tell if an .xliff upload worked or not?
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.
Our wait time is higher than usual, please make sure you are meeting the minimum requirement - https://wpml.org/home/minimum-requirements before you report issues, and if you can take a look at current Known Issues - https://wpml.org/known-issues/. Thank you.
Background of the issue:
I have completed translations with a partner vendor and am trying to upload the updated .xliff files to update the site hidden link.
Symptoms:
The upload has timed-out more than once, and I can't find anywhere that would tell me what page or pages may have successfully updated.
Questions:
How do I tell if an .xliff upload worked or not?
Does anywhere list a last updated date or otherwise show the success of the upload?
Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.
Hope you are trying to import a group of XLIFF files as a zip. If so, as a workaround, try to upload the files individually and check whether it is showing the expected results or not.
Please visit WPML>>Translations queue or WPML>>Translation Management>>Translation Jobs and check whether the Posts/Pages sent for translation show the status as Completed (Pencil Icon) or In Progress (Gear Icon).
Yes, I'm trying to upload the XLIFF files as a ZIP, I have tried uploading individually, and it does seem to work, but I have more than 600 total XLIFF files (200+ each for 3 languages) and uploading individually is not a workable solution.
In terms of checking status, the entire website was machine translated prior to exporting and sending to our translation partner, so all the pencil (or eye icon) shows me is that a translation exists. Not what version of the translation it is or how recently it has been updated.
I need to know that a new translation has replaced the old translation via import. Is there any way for me to do that?
I apologize for the delay in responding. I will take care of this ticket; the reply time will be shorter now.
We need to gather more information to investigate why the import is failing.
Please follow the instructions mentioned on this page: https://wpml.org/documentation/support/debugging-wpml/
Then, run the import again and check your installation's **wp-content** folder to see if a file named **"debug.log"** was created (it will only be generated if a server error occurs).
If the file was created, please upload it to a platform like **Google Drive** or **Dropbox** (whichever you usually use) and share the link with me (make sure it is publicly accessible) so I can analyze it.
We've conducted all of the steps above and the debug.log is available here for download:
hidden link
Please let us know the next steps. Also, if the upload is successful is there anywhere that would allow me to view which pages where successfully updated?
I’ve reviewed your debug.log file and found the following WPML-related and XLIFF-relevant entries:
1. XLIFF Import Issue Detected:
PHP Notice: Trying to access array offset on value of type bool in /wp-content/plugins/wpml-translation-management/classes/ATE/Xliff/Import.php on line ...
This kind of notice suggests that the import process is encountering a false value where it expects an array. This can happen if the file being imported is malformed or if a step in the processing pipeline failed (e.g., parsing).
2. Potential File Handling Errors:
PHP Warning: file_get_contents(): Failed to open stream: No such file or directory in /wp-content/plugins/wpml-translation-management/classes/...
This warning could mean the XLIFF file path is incorrect or the file has been moved/deleted before the import process accessed it.
3. Deprecated or Warning Notices (not directly causing failure but important for debugging):
These might not stop functionality, but indicate coding practices that should be updated, especially when dealing with files or arrays.
You mentioned that individual updates worked, but importing one by one is not possible. Maybe splitting the import into chunks? 3 or 4 will probably work, and if not, it will help us isolate the issue.
Regarding tracking the updates (or not), you can go to Pages and use the language switcher in the admin bar to select the translated language you want to check. The Date column will tell you the last time a translation was modified, and you can sort the Pages by it. Will that help?
PHP Notice: Trying to access array offset on value of type bool in /wp-content/plugins/wpml-translation-management/classes/ATE/Xliff/Import.php on line ...
We tried with new files and I have successfully gotten 2 of the 3 languages to upload but the third still fails.
2. Potential File Handling Errors:
PHP Warning: file_get_contents(): Failed to open stream: No such file or directory in /wp-content/plugins/wpml-translation-management/classes/...
I'm not moving the file mid-upload or even touching my machine during the process. Not sure what could be causing this.
3. Deprecated or Warning Notices (not directly causing failure but important for debugging):
Also not clear what to do here.
When I go to Pages and use the language switch it's still not indicating any update at all.
I'd like to take a copy of your site so I can run the import locally and debug it further.
To do so, I would like to request temporary access (wp-admin and FTP) to your site.
It would be better to use a testing site where the issue is replicated.
The information you will enter is private, which means only you and I can see and have access to it.
I'll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" or "Updraft Plus" on your site, to make a copy to deploy on my local environment.
Please also share the import file.
Once the problem is resolved, I will delete the local site.
**IMPORTANT**
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields.