[Resolved] Wrong media translation path with Offload Media
This thread is resolved. Here is a description of the problem and solution.
Problem: The client reported an issue with media translation paths when replacing an image uploaded in the same month as the original. This problem was specific to their setup and involved the Offload Media plugin. Solution: We suggested a workaround involving code changes in the Offload Media plugin. Specifically, the client needed to open
We also communicated with the plugin authors to seek a permanent fix. Meanwhile, the client can use this workaround as a temporary solution.
Please note that this solution might be outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket at WPML support forum.
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.
thank you for the follow-up and for sharing the sandbox and video.
I checked the screencast and the sandbox site. I can see the broken image URL for the image you pointed out, however the video cuts off at that point and the page remains blank, so I’m not able to clearly follow the exact steps that lead to the issue.
I also tried uploading and using new "translated" images in the Media Library on the sandbox, and those URLs are generated correctly on my end.
Could you please check and share the exact step-by-step process to reproduce the issue (or a longer video showing the full flow)? That would help me investigate this further.
Indeed, my bad, the video is the wrong one, and obviouly I had an issue while recording the right upload attempt.
The issue occurs when I try to replace an image translation that's been updated on on different year/month.
The image you see as broken is the one I replaced (though I think you replaced it again in the meantime.
All I did today was replacing this image by another one from the Media translation screen. The newly uplodaed image will show up as broken, because once updated, the filename is fine, but the path is the one from the previous image (or the original image, I'm not so sure): 2026/04/
Disable Offload Media, the image will show up, because the path of the uploaded translation image is now fine: it reflects todays' date: 2026/05/
By the way, I think your website faces caching issues.
The message I posted 15 minutes still wouldn't show up after clean page refresh, and the post notification setting apparently wouldn't save, or show up as saved, until a few more minutes.
Finally, after a few more minutes, my message has shown up, and the notifications settings got saved (or appeared as).
our team will check further but it does seem that the WPML integration is included as part of their Premium license.
Because of this, the plugin authors should also be able to assist with compatibility and integration-related issues from their side.
We will still take a closer look from the WPML side , but to speed things up I would also recommend contacting their support in parallel, as they may already know about the issue or have a workaround available.
we are still trying to reproduce the issue, but so far it seems to work correctly for other images, even when they are uploaded in different months.
For example, if you check Media Translation now, you will see I replaced several images and they are showing correctly without issues.
- hidden link
At the moment, we are unable to reproduce the same behavior. It currently only seems to happen with the specific image you replaced, so we are a bit stuck from the debugging side because other images work as expected.
Can you please check and advise further if we are missing some steps?
"Unfortunately we could not use that solution as is, as it’ll leave orphaned objects in the bucket, but it is good to know about the wpml_updated_attached_file filter, I expect we can use that."