Skip to content Skip to sidebar

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

Problem:
You have set up WPML to use different domains for different languages, and after doing so, images are not displaying on the translated domains. You have attempted to run media duplication for different languages, but the issue persists.
Solution:
We recommend deactivating the All-In-One Security (AIOS) plugin and then testing the issue again. This action resolved a similar issue on a testing site by allowing images to display correctly on the second domain. If this solution resolves the problem, it may confirm that the AIOS plugin is causing a conflict with WPML's media handling on translated domains.

Please note that this solution might be outdated or not applicable to your specific 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 for further assistance.

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 7 replies, has 0 voices.

Last updated by martinK-154 1 month, 1 week ago.

Assisted by: Andrey.

Author Posts
May 30, 2025 at 6:10 pm #17093151

martinK-154

<b>Background of the issue: </b>
I added WPML and used the option to have different domains for different languages. The domains are all bought and connected as alias domains in web hosting.

<b>Symptoms: </b>
The translated domains do not show the images. I already tried running the duplication for media for different languages but the media is still missing.

<b>Questions: </b>
Why are images not showing on translated domains?
How can I ensure media duplication works for different languages?

Screenshot 2025-05-30 211247.png
Screenshot 2025-05-30 211331.png
May 30, 2025 at 7:58 pm #17093420

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for contacting WPML support.

It’s possible that you’re experiencing a known issue related to incorrect URLs for translated media files when using the “Different domain per language” setting in WPML.

Please refer to the following errata for more details and a suggested workaround:
https://wpml.org/errata/wrong-url-on-translated-media-files-when-using-a-different-domain-per-language/

We recommend trying the workaround outlined in the article to see if it resolves the problem.

Please remember to backup your database before you proceed.

May 30, 2025 at 10:46 pm #17093546

martinK-154

I tried both methods from there but it did not help in my case. The images still don't appear.

June 2, 2025 at 3:38 pm #17098607

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Thank you for your feedback.

I noticed that your SiteURL and HomeURL are set to different domains in Settings → General, which could be causing the issue.

Please try the following:
1. Set both the SiteURL and HomeURL to your primary domain.
2. Then, go to WPML → Languages → Language URL format and configure the “Different domain per language” option by assigning the secondary domain accordingly.

Let me know if this resolves the issue.

June 2, 2025 at 5:36 pm #17099116

martinK-154

In the settings I have it set on kipsik.ee like showed on the image.
The default language is set to the right one in wpml settings. Where does it show exactly that the urls are different?

Screenshot 2025-06-02 201110.png
Screenshot 2025-06-02 193712.png
June 2, 2025 at 7:06 pm #17099285

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I can see this information from the debug information you provided. However, you are likely correct as you mentioned.

I need to request temporary access (wp-admin and FTP) to your site—preferably to a test site where the problem has been replicated if possible—in order to be of better help. When you log in to leave your next reply, you will find the needed fields below the comment area. The information you will enter is private, meaning only you and I can see and access it.

June 3, 2025 at 11:02 am #17101894

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

I will look into it and let you know as soon as I have more information.

June 3, 2025 at 11:14 am #17101965

Andrey
WPML Supporter since 06/2013

Languages: English (English ) Russian (Русский )

Timezone: Europe/Kyiv (GMT+03:00)

Could you please try deactivating the All-In-One Security (AIOS) plugin and test the issue again on your live site?

I noticed that images were being blocked on your second domain. Deactivating this plugin resolved the issue on your testing site, which could help confirm whether the plugin is causing the conflict.

June 4, 2025 at 3:49 pm #17107408

martinK-154

It seems that AIOS was the issue. I guess there is some kind of a setting that does not work well with wpml images translation.

Thank you for the help!