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.
Tagged: Exception
| Author | Posts |
|---|---|
| April 8, 2025 at 2:39 pm #16910064 | |
|
michaelG-167 |
Background of the issue: Symptoms: Questions: |
| April 10, 2025 at 4:11 am #16916381 | |
|
Bigul |
Hello, 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). -- Bigul |
| April 11, 2025 at 1:46 pm #16922994 | |
|
michaelG-167 |
Hi Bigul, 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? |
| April 14, 2025 at 4:43 pm #16930605 | |
|
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, 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/ Best Regards, |
| April 17, 2025 at 5:11 pm #16945422 | |
|
michaelG-167 |
Hello, 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? Regards, |
| April 17, 2025 at 5:38 pm #16945517 | |
|
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hi Mike, Thanks. 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): 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? Best Regards, |
| April 22, 2025 at 5:12 pm #16956742 | |
|
michaelG-167 |
Hi Otto, Regarding your notes: 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 ... 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. |
| April 22, 2025 at 7:49 pm #16957239 | |
|
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, Thanks. 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. 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** Best Regards, |
| April 23, 2025 at 5:33 pm #16961633 | |
|
michaelG-167 |
Actually, the upload file can be downloaded here: hidden link |
| April 23, 2025 at 5:47 pm #16961651 | |
|
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, Thanks. But the credentials are not working for me, can you please check them? Best Regards, |
| April 23, 2025 at 8:22 pm #16961987 | |
|
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, Thanks. I made a copy of your site to do some tests locally. When I try to run the import, I get this message: As you don't have this issue, I wonder if the XLIFF files you've shared are the latest. Can you please confirm? Best Regards, |
| April 24, 2025 at 2:51 pm #16964952 | |
|
michaelG-167 |
Here's an updated link that contains .zip files for all 3 languages. hidden link The Chinese .zip file didn't work for me either, but the other two did (Korean and Japanese) which may make testing easier for you. |
| April 24, 2025 at 5:11 pm #16965663 | |
|
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hello, I am sorry, but I need some clarification. The issue reported was that the import failed, but for other reasons: After that, we found some errors during the import. Splitting the import per language helped us reduce the possible causes. But now, I see another error during the import: In my local environment and your test site. Are you seeing the same? Is this a new issue? That error is probably related to changes in the original content. Is that possible? Please let me know, and we will move forward from there. Thanks! Best Regards, |
| April 24, 2025 at 5:17 pm #16965666 | |
|
michaelG-167 |
Hi Otto, I'm sorry but I don't receive that error when I upload. Is it possible that it is because your instance of the website is on a different domain? This is a new issue. In the meantime, I've taken the time to upload each page individually, and they've all uploaded successfully (as far as I can tell, since I still can't find anywhere that says an update has been made). My guess is that the issue lies with the .zip archive rather than with the plugin. Best, |
| April 24, 2025 at 5:57 pm #16965781 | |
|
Otto WPML Supporter since 09/2015
Languages: English (English ) Spanish (Español ) Timezone: America/Argentina/Buenos_Aires (GMT-03:00) |
Hi Mike, Thanks for the clarification. I am sorry for the inconvenience. I agree it was probably an issue with zip and Chinese characters. I suspected that one of the translations was corrupted, but since you managed to upload them all, probably the zip file was corrupted. Since you solved the problem, please let me know if you need anything else from our end. Best Regards, |