Skip Navigation

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

Problem:
You are trying to display images on your website in a second language using WPML, but the images are not showing up on the site or in the preview. However, they open normally when clicked in the library.
Solution:
If you're experiencing this issue, we recommend checking if your website is loaded over HTTPS but trying to load images over insecure HTTP. Modern browsers block such content for security reasons. Here's how you can fix this:
1. Navigate to Settings → General in your WordPress dashboard.
2. Ensure that both the WordPress Address (URL) and the Site Address (URL) are set to use 'https://' instead of 'http://'.

This solution might be irrelevant if it's 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.

This topic contains 4 replies, has 1 voice.

Last updated by Andrey 1 month, 2 weeks ago.

Assisted by: Andrey.

Author Posts
April 24, 2025 at 12:49 pm #16964421

thomasL-104

Background of the issue:
I am trying to display images on my website in a second language using WPML. The images are not showing up on the site or in the preview, but they open normally when clicked in the library.

Symptoms:
Images in the second language do not show up on the website or in preview mode.

Questions:
Why are images not displaying in the second language on my website?
How can I fix the issue of images not showing in preview mode?

April 24, 2025 at 5:34 pm #16965704

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

While waiting for one of my colleagues to be assigned to your ticket, please go to WPML->Settings->Scroll to the bottom of the page Media translation and click start.

Screenshot 2025-04-24 at 10.33.40 AM.png
April 24, 2025 at 6:32 pm #16965871

thomasL-104

I am a bit firm with WPML all things I have done and tried...nothing

April 24, 2025 at 7:43 pm #16966050

Andrey
WPML Supporter since 06/2013

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

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

This is Andrey here. I will be further assisting you.

Have you tried temporarily disabling all the plugins except WPML and the required plugins once to check the problem? Does the same issue occur with newly uploaded images?

Additionally, please upload any relevant screenshots or links that would help illustrate the problem.

April 24, 2025 at 9:06 pm #16966346

thomasL-104

Same issue
screenshot 265 all plugins disabled
screenshot 266 neu image upload

Screenshot(266).png
Screenshot(265).png
April 25, 2025 at 8:01 am #16967298

Andrey
WPML Supporter since 06/2013

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

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

Thank you for the update.

Do you have anything defined related to media or the media folder in wp-config.php?

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.

If I need to debug the problem further, I want to ask you about the possibility of replicating your site locally. I'll need to install a "Duplicator" temporarily or "All In One Migration" plugin on your site. This will allow me to create a copy of your site and your content. If you prefer to do it independently, you can provide the snapshot and send me the zipped package you downloaded.

Let me know how you feel about this.

April 25, 2025 at 2:49 pm #16969232

Andrey
WPML Supporter since 06/2013

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

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

Thank you for the details.

I have discovered that the issue arises because you have an error in the console: Blocked loading mixed active content. This is related to the "A different domain per language" option and probably to the Settings → General Settings, specifically the URL for the WordPress Address (URL) and Site Address (URL), which currently contain values for both domains.

To address this issue, I suggest one of the following options:

1) Use the Language URL format "Different languages in directories".

2) Keep hidden link as the WordPress Address (URL) and Site Address (URL), and set the secondary domain only for "A different domain per language" in WPML → Languages → Site Languages.

Screenshot-2025-04-25-at-17-51-33.png
General-Settings-‹-Developments-Brazil-—-WordPress.png
April 25, 2025 at 4:03 pm #16969386

thomasL-104

Hi Andrey,
but it should be set up as -

2) Keep hidden link as the WordPress Address (URL) and Site Address (URL), and set the secondary domain only for "A different domain per language" in WPML → Languages → Site Languages.

Now in settings is it set like this, but anyway I dont get any image in the 2.language gallery

April 25, 2025 at 6:49 pm #16969767

Andrey
WPML Supporter since 06/2013

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

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

Thank you for your feedback.

I need to check this further. Am I allowed to make a copy to do some testing on the local environment?

April 25, 2025 at 7:34 pm #16969824

thomasL-104

Sure, feel free, I made before a backup

April 28, 2025 at 1:58 pm #16975276

Andrey
WPML Supporter since 06/2013

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

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

Thank you for the update.

I was able to find a solution. It appears that your website is loaded over HTTPS, but it was trying to load an image over insecure HTTP, which modern browsers block for security reasons.

I have updated the WordPress settings as follows:
• Navigated to Settings → General.
• Ensured that both the WordPress Address (URL) and the Site Address (URL) are set to use https:// instead of hidden link.

I have attached the screenshot for your review.

Screenshot-2025-04-28-at-16-54-36.png