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.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| - | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | 8:00 – 12:00 | - |
| - | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | 12:00 – 16:00 | - |
Supporter timezone: Europe/Zagreb (GMT+02:00)
Tagged: Compatibility
This topic contains 22 replies, has 0 voices.
Last updated by Dražen 1 day, 12 hours ago.
Assisted by: Dražen.
| Author | Posts |
|---|---|
| March 27, 2026 at 6:29 am #17930848 | |
|
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, Thank you for the detailed steps and testing, this was very helpful. I checked your setup and I can confirm the issue is related to the use of the “Enable Media Replace” plugin. Unfortunately, this plugin is not officially compatible with WPML, and issues like this can occur when replacing media files, especially with dated folders and translated images. The plugin authors are already aware of compatibility issues with WPML, as mentioned here and are working on full compatiblity: From our side, I did some additional testing and noticed that the original image path is updated correctly, but thumbnails are not properly regenerated, which causes the broken images you are seeing. As a workaround, I installed the “Regenerate Thumbnails” plugin (from the same author) and ran it. This fixed the issue in my test. For a long-term solution, I would recommend checking with the plugin authors regarding full WPML compatibility and their plans for resolving this behavior. Best regards, |
| March 29, 2026 at 10:45 am #17934572 | |
|
T4ng |
Hi, I understand what you suggest. Unfortunately, Enable Image Replace can't be the origin of the errors I encounter. As already explained, we don't use EIR on our website to replace such images. I used EMR here, only to **simulate** a time gap between the upload of the original image and its translation replacement image. Still, I gave it a try to your method: running Regnerate Thumbnail to fix the broken images that correspond to this scenario, on our website. Most of them are SVGs, on which this plugin won't do anything since there are no thumbnails for vectorial images. So that's just not a solution for this case. Clicking "Regenerate thumbnails" from this broken translated image in the Media Library, first offerred to regenate over 500 images it found as having broken thumbnails. I ran it, and it didn't fix the one I tracked. This process was tested on an local env, with all plugins up to date, without the Offload Media plugin enabled. To sum it up, while I understand what you offered, I can affirm EIR is not the origin of the issue I face, since we basically don't use this plugin (or only on different cases, where images aren't already translated, nor offloaded - off-topic). Anyways. I had a closer thought to that wepb case. This image was uploaded 2025/09, and translated to some other languages straight away (those worked fine after upload, and still work fine today). But when I provided, couple of months after, a new translated image for this language (so new folder date + new filename), its path was saved as {new folder date} + {original filename}.webp. So this case is different from what your solution aims to fix (where only the thumbnails are broken). The issue I face, could be that, when an image, that's first been automatically duplicated in a new language during a page's translation process, is then replaced by another image provided through the media translation tool, then it's path is updated, but not the filename. |
| March 29, 2026 at 11:47 am #17934591 | |
|
T4ng |
Hi, I understand what you suggest. Unfortunately, Enable Image Replace can't be the origin of the errors I encounter. As already explained, we don't use EIR on our website to replace such images. I used EMR here, only to **simulate** a time gap between the upload of the original image and its translation replacement image. Still, I gave a try to your method: running Regnerate Thumbnail to fix the broken images that correspond to this scenario, on our website. Most of them are SVGs, on which this plugin won't do anything since there are no thumbnails for vectorial images. So that's just not a solution for this case. Clicking "Regenerate thumbnails" from this broken translated image in the Media Library, first offered to regenate over 500 images it found as having broken thumbnails. I ran it, and it didn't list, nor fixed the one I tracked. This process was tested on an local env, with all plugins up to date, without the Offload Media plugin enabled. To sum it up, while I understand what you offered, I can affirm EIR is not the origin of the issue I face, since we basically don't use this plugin (or only on different cases, where images aren't already translated, nor offloaded - off-topic). Anyway, I had a closer thought to the case I identified. This image was uploaded 2025/09, and translated to some other languages straight away Those worked fine after upload, and still work fine today. But once I provided, couple of months after, a new translation image file for this language (so new folder date + new filename), its path was saved as {new folder date} + {original filename}.webp. So this case is different from what your solution aims to fix (where only the thumbnails are broken). The issue I face, could be that, when an image, that's first been automatically duplicated in a new language during a page's translation process, is then replaced by another image provided through the Media Translation tool, then its path is updated, but not the filename. So I uploaded new test images to your sandbox, in jpg and webp, to test if the issue occurs: I hope this explanation, and tests, make sense to you. Best Regards, |
| March 30, 2026 at 5:54 am #17935102 | |
|
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, Thanks for the detailed explanation, I understand your point. Just to clarify, my previous testing and suggestion were based only for the issue reproduced on the sandbox. If this is not the same scenario as on your live site, then fixing and checking that specific case will not help your actual issue or help us move forward since that is not same. Since you mentioned that Enable Media Replace is not part of your real workflow, it should not be used for reproducing the issue, especially as it’s not fully compatible with WPML. To move forward, the best approach would be one of the following: - Reproduce the exact issue on the sandbox without using not used plugin, so it matches your real workflow Once we have a clean and consistent reproduction, I’ll be able to properly investigate and provide a reliable solution. Let me know how you’d like to proceed. Best regards, |
| April 1, 2026 at 1:43 pm #17943431 | |
|
T4ng |
Hi Dražen, I have some good news. As planed, I tried, on the sandbox, from the Media Translation panel , to upload an alternative image instead of a copied one (pen mode), to check if it ends up broken. Then I did mutliple tests on different environments of ours, and finally found a consistant culprit: Offload Media. This issue occurs, again, on an image that's been declined earlier (pen symbol in Media Translation, NOT "+", whatever the date), but for which I upload an alternative image on a different month. After uploading the image > Validate > Reload the Media translation page : That's consistent with 3 images. Now if I have a look at the translated file path, from the Media Library, in the translated language: Finally, if I upload the alternative image from the Media Translation, while Offload Media is disabled >> The image works straight away... And will appear broken as soon as I re-enable Offload Media. So having Offload Media enabled or disable during the upload doesn't change anything I also tested it against W3 Total Cache as well, in case it was involved, and doing the process with and without it enabled didn't change the result. This was teste with previous versions for WPML and Offload Media, since I don't have a CDN capable environment with plugins up to date for now. Is this consistent enough? We could test it again on a clean environment, but this would require an offload media setup. |
| April 2, 2026 at 6:00 am #17944831 | |
|
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hi, Thanks for the detailed investigation and effort, this is very helpful and makes a lot of sense. Yes, this looks consistent and very likely related to Offload Media interaction with WPML Media Translation. The next best step would be to try to reproduce this on a clean sandbox so I can escalate it properly to our compatibility team. Since you are using WP Offload Media (which is listed as compatible with WPML), this should ideally work correctly: If we can reproduce the issue in a clean environment with that plugin, we can push it further and coordinate with our compatibility team (and if needed, with the plugin authors). - hidden link Let me know if you’re able to set this up on the sandbox, or if anything I can do to help with reproducing. Best regards, |
| April 2, 2026 at 8:42 am #17945245 | |
|
T4ng |
Hi, I'd be happy to test it, but I won't be able to create a test bucket before a week at least |
| April 2, 2026 at 9:24 am #17945374 | |
|
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+02:00) |
Hello, thank you and no worries, take your time. If there is anything I can help with please let me know. Regards, |

