[Resolved] All Media Library is not showing on the added language
This thread is resolved. Here is a description of the problem and solution.
Problem: After translating pages, images are not appearing on the translated versions. In the media library for the new language, only 40% of the content is displayed, while the remainder seems to be missing. Solution: If you're experiencing this issue, we recommend checking the settings inside the right sidebar of the WordPress Editor for each page or post. Ensure that the checkboxes to duplicate the featured image and attached media are marked. This action doesn't duplicate the physical image but creates the necessary database entries for different languages.
To sync all media in the library, navigate to WPML > Settings > Media Translation and click the "Start" button. This process might take some time but should resolve the issues with media not showing up in the second language.
If the problem persists, try re-uploading the images as this has resolved the issue in some cases.
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 continues, 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.
Background of the issue:
after i translated my pages, and I noticed that the images are not appearing on the translated version. The issue can be seen on this page: hidden link.
FYI, i have already cleared WPML caches.
Symptoms:
When I accessed my media library in the new language, it displayed only 40% of the content, while the remainder seems to be missing. However, in the default language, the media library displays all the images.
Questions:
Why are images missing in the media library for the translated language?
How can I ensure all images appear in the translated version?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hi!
Each page or post has a settings inside the right sidebar of the WordPress Editor which will allow you to mark a checkbox in order to duplicate the featured image and another checkbox for duplicating the attached media.
This will not duplicate the physical image, but it will create the necessary database entries for different languages.
If the checkboxes are not marked on a original content, the media is not synced.
To sync all the media of the library you can go to WPML > Settings > Media Translation and click the "Start" button. This process might take a while but should solve the issues about media not showing up inside a second language.
If this will not solve the issue, please let me know.
I do not see any button to start the media translation process. The only option i have allows me to proceed one image at a time, which is quite inconvenient because I have over 2,000 images.
I initiated the process by clicking on "start" in Media Translation. Currently, the media library becomes 1,161; but approximately 900 additional images are still missing.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hi,
I would like to offer to take a closer look and request temporary access (wp-admin and FTP) to the site to investigate the issue further.
The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up the site and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.
The private reply form looks like this: hidden link
The next time you reply, click on "I still need assistance".
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I am not fully sure yet, but the difference of images might be related to the fact that you use an Elementor Image Optimizer and on the dashboard it says:
"You’ve reached your plan quota. You have no images left to optimize in your current plan."
I need some more time to investigate this issue and will contact you tomorrow again.
Hi, Thank you for your time.I dont think so this is related. the image optimizer just reduces the file size of an image by compressing and resizing it! I currently have 300 images that remain unoptimized. while over 900 images are still missing in WPML.
I appreciate your assistance and look forward to hearing from you tomorrow.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
This is not fully correct.
An optimized image is a new physical file on the server, with a lower size.
If you open the image optimizer, and switch the language inside the admin bar to English, you will see that in English not any image has been optimized.
This is why you have a lower count in English.
Now, English will not need to optimize images. It should use the original images or their optimized versions.
I still need some time to investigate the gallery issues.
This option is not very convenient; however, I will try to remove and re-upload several images.
I have checked the image optimizer and switched the language in the admin bar to English, it says "the license key does not match your current domain." It is possible that Elementor is interpreting the English URL ((hidden link)) as a new domain.
What confusing me is that 60% of the images are displayed while 40% are missing . If there were an issue with the image optimizer plugin, it would not accept any images at all.
In any case, I will leave further investigation to you. Simultaneously, I have submitted a support ticket to Elementor team regarding this matter.