Skip to content Skip to sidebar

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
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -
- 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 20:00 – 23:00 -

Supporter timezone: Asia/Singapore (GMT+08:00)

Tagged: 

This topic contains 17 replies, has 0 voices.

Last updated by Kor 2 months ago.

Assisted by: Kor.

Author Posts
November 14, 2025 at 11:24 am

raminK

Background of the issue:
I am trying to display media that was correctly added to media translation on our French pages: hidden link

Symptoms:
Instead of seeing French media, I get the original links to English PDFs and images. A colleague mentioned it could be related to the EWWW Media translation plugin, but I optimized all images and the issue persists.

Questions:
Why are the media links not displaying the translated French versions?
Could the EWWW Media translation plugin be causing this issue despite image optimization?

November 14, 2025 at 1:45 pm #17579372

Kor

Thanks for your patience.

I regret any inconvenience caused, but to proceed with troubleshooting, I kindly ask for a snapshot of the site. Alternatively, with your permission, I can create one myself. For this purpose, I typically recommend using the free plugin "Duplicator." If you're already familiar with Duplicator (https://wordpress.org/plugins/duplicator/), please skip the following steps and simply send me the archive file you downloaded.

To guide you further, please adhere to these instructions:

1. View the Duplicator instructions video: hidden link

2. Consult WPML's instructions on providing supporters with a copy of your site: https://wpml.org/faq/provide-supporters-copy-site/

3. If the archive file exceeds 400MB, please use Duplicator's file filters to exclude cache, wp-uploads directory, media, and archive files.

Once you have the archive file ready, kindly share the link with us. You can utilize platforms like Google Drive, Dropbox, or similar for file sharing, as the snapshot file might be large.

Please note that your next reply will be private, visible only to you and me. You can paste the file link there. Rest assured that once the issue is resolved, I will delete the local site.

November 19, 2025 at 8:50 pm #17593522

raminK

Hi,

the backup failed to be created in Duplicator, i can send you one in WP Migrate or All in one WP Migration. But please feel free to just do it yourself with your account!

November 20, 2025 at 2:10 pm #17596032

Kor

Thanks for your reply. It says "out of disk space" when I try to create a copy using the All in one migration plugin. Could you check?

Screenshot_34.png
November 26, 2025 at 4:21 pm #17612869

raminK

I made some space, could you try again?

November 27, 2025 at 8:35 am #17614025

Kor

Thanks for your reply. I have the copy of the site now, here hidden link and I will check this on my local site, and I will come back to you as quickly as possible.

November 30, 2025 at 9:23 pm #17621101

Kor

Thanks for your patience. I've tried to replicate it here hidden link , and it worked fine. I'm able to download the English and French languages without issue. You can login using this link hidden link

Looks like the issue is isolated to your Website for some reason. I'll need to escalate this further to our 2nd Tier Support and I will come back to you once I've feedback.

December 2, 2025 at 3:09 pm #17627247

raminK

Have you replicated the multiple domains? In my experience this is an important factor in our setup, which WPML doesnt always handle smoothly. I can try to set up a more advanced copy with multiple domains on our server for the second tier if that helps.

December 2, 2025 at 4:20 pm #17627735

Kor

Thanks for your patience. My apologies for the delay. I'm still waiting for a response from our 2nd Tier Support. I will come back to you once I hear from them.

December 9, 2025 at 2:22 pm #17648115

Kor

Thanks for your patience. I've some feedback from our 2nd Tier Support, and they shared a solution by using the custom XML configuration code below. You need to insert the code into WPML > Settings > Custom XML Configuration. Then, resave the page, and the image/pdf file should use the copy or version from the Media Translation Addon. Here is the test page hidden link and here is the custom XML configuration hidden link

<wpml-config>
  <shortcodes>
    <shortcode>
      <tag>et_pb_blurb</tag>
      <attributes>
        <attribute>title</attribute>
        <attribute>title_phone</attribute>
        <attribute>title_tablet</attribute>
        <attribute>alt</attribute>
        <attribute type="media-url">image</attribute>
        <attribute type="media-url">background_image</attribute>
        <attribute type="media-url">image__hover</attribute>
        <attribute type="media-url">link_option_url</attribute>
        <attribute type="link">url</attribute>
        <attribute encoding="allow_html_tags">content_tablet</attribute>
        <attribute encoding="allow_html_tags">content_phone</attribute>
      </attributes>
    </shortcode>
      <shortcode>
      <tag>et_pb_button</tag>
      <attributes>
        <attribute type="media-url">button_url</attribute>
      </attributes>
    </shortcode>
  </shortcodes>
</wpml-config>
December 17, 2025 at 8:47 am #17670068

raminK

Thanks I will try this and get back to you!

December 17, 2025 at 5:12 pm #17672166

Kor

Thanks for your reply. Please let me know how it goes.

February 3, 2026 at 3:22 pm #17788538

Kor

Thanks for your patience. I've reopened this ticket as requested. Could you please tell me a little bit more about the issue that you're facing now?

February 10, 2026 at 10:04 pm #17811206

raminK

Hi Kor,
So following the implementation of the SML code, most buttons were suddenly shown in english and leading to the english pages, in french and spanish and german. It was a mess and after trying various things, thinking we had encountered a new, massive bug, I removed the code and this reverted the buttons to the original, translated state, but also means that we still have no resolution for the wrong PDF links that we were trying to fix. Could you check in with second tier support to investigate a better solution to our problem? Can I help you with that in any way?

February 10, 2026 at 10:05 pm #17811211

raminK

As a side-note, I somehow do not get email notifications when I receive replies from support, yet I do get emails about tickets being closed, any idea why? THats the reason why I reply so slowly...

The topic ‘[Closed] Media translation not linking to translated PDFs/images’ is closed to new replies.