Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client's bilingual website (German and English) displays only the German PDFs on both language versions of a page, despite using the WPML Media Translation tool to add English PDFs.
Solution:
If you're experiencing this issue, it's likely because the PDF links on your page were created with Elementor. In this case, simply replacing the file in WPML -> Media Translation might not suffice. We recommend translating the PDF links directly within the page using WPML's Advanced Translation Editor. For detailed guidance on how to translate links using this tool, please visit Translating Links with Advanced Translation Editor.

If this solution does not resolve your issue or seems irrelevant due to updates or differences in your setup, we encourage you to open a new support ticket. We also 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. For further assistance, please visit our support forum 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.

Tagged: 

This topic contains 4 replies, has 3 voices.

Last updated by Itamar 6 months, 1 week ago.

Assisted by: Itamar.

Author Posts
July 9, 2024 at 6:10 pm #15922545

leonR-10

Background of the issue:
My website is German and English. On one page, I'm providing PDFs that can be downloaded and of course the PDFs are different for the German and English languages. After creating the German page I translated it into English. Then I opened the Media Translation tool and added the English PDFs for the corresponding German documents.

Symptoms:
Even after clearing the cache and opening the pages in a different browser, both languages only show the German documents.

Questions:
Why are both languages only showing the German documents even after using the Media Translation tool?
How can I ensure that the English PDFs are displayed correctly on the English pages?

July 10, 2024 at 2:05 am #15924284

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Leon,

Before this thread gets assigned to my colleague, I would like to share some suggestions or potential solutions for the issues you've reported.

According to the debug info, I see you are using the plugin SVG Support. Can you please deactivate this plugin for a while and recheck this?

Also, please refer to this known issue https://wpml.org/errata/svg-support-activating-wpml-media-strips-uploads-folders-from-svg-image-url/

Looking forward to your reply.
Thanks

July 10, 2024 at 5:40 am #15925540

leonR-10

Hi Long, thanks for your suggestion. I just deactivated the SVG plugin, the again uploaded the media file and did a scan for URL replacement but unfortunately this didn't solve the issue.

July 10, 2024 at 6:35 am #15925899

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I'll continue to help you with this issue.

Your site slightly lacks updates for WPML CMS Multilingual (our core plugin) and Strings Translation. We have newer versions. If you don't see it in the plugins list, please go to hidden link and click the Check for updates button. Then please check if the problem persists.

If it persists, please give me access to your site and explain to me where and how to see the problem with the PDF file.

If you need further help with this, please share the access details to your site with me.
I'm enabling a private message for the following reply.

Privacy and Security Policy
We have strict policies regarding privacy and access to your information. Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/
**IMPORTANT**
- - Please backup the site files and database before providing us access. --
-- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.--

Regards,
Itamar.

July 11, 2024 at 7:02 am #15932871

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi, and thanks for the access details.

However, I need access with an administrator user. You gave me access to the lowest role, possibly a subscriber. Please change my user to an administrator.

Also, if the page and the PDF button were created with Elementor, replacing the file in WPML -> Media translation might not work. You need to translate the PDF links while translating the page with WPML's Advanced Translation Editor. You can read about it here.

https://wpml.org/announcements/2020/02/translating-links-with-advanced-translation-editor/

Regards,
Itamar.

July 11, 2024 at 8:06 am #15933373

leonR-10

Awesome, thank you, Itamar! That was it! I had to search for the link in the Advanced Translation Editor and could replace it there. Your help is much appreciated!