Home›Support›English Support›[Resolved] Images in second language don't show up also not in preview, but when I click on
[Resolved] Images in second language don't show up also not in preview, but when I click on
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.
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?
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.
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.
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.
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.
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
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.