[Resolved] Media files only showing up for one language
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing an issue where some media files are only visible in one language and not in others within the WordPress media library. Solution: We recommend the following steps to resolve the issue: 1. Navigate to WPML-> Support ->Troubleshooting. 2. Click the following buttons: -
Clear Cache in WPML
-
Set Language information
-
Fix element types collation
-
Remove ghost entries from the translation tables
-
Assign translation status to duplicated content
-
Fix post type assignment for translations
3. After completing these steps, run the media duplication settings again.
If this solution does not seem relevant to your issue, please do not hesitate to open a new support ticket with us.
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.
I have a strange issue. Some media files are only showing up for one language but not for a different one. I go to media and list files and I have different set of files when I change language in WordPress. I've tried to do settings->media translation but no change. Please assist.
Before this thread gets assigned to my colleague, I'd like to offer some initial guidance or potential solutions.
The issue you're having could happen if the option to make the media file available in each language is disabled. Could you please go to "WPML > Settings > Media Translation" and ensure that the option "When uploading media to the Media library, make it available in all languages" is enabled? If it is not enabled, please enable it, save the changes and click on the "Start" button right above it.
If you're still having the issue, please deactivate other plugins except for WPML and Its addons and check again. If that solves the issue, start activating the plugins one by one and continue to check after activating each. In this way, you'll be able to pinpoint what exactly causing the issue.
Let us know the update. We will be happy to help if you need further assistance in this matter.
Thank you for response. The setting are the same as you instructed and I tried the start button a few times as well. I already did the plugin deactivation procedure with no avail. I still need assistance.
Hi, thank you for your response, I've adjusted the memory limits following the documentation and clicked on the start button but the images are only available for one language.
How large is your site? In particular, how many entries in the media library are there?
The batch process to make existing media available in other languages can take time to complete if you have many (e.g. thousands) of images.
Are you able to observe in the browser developer tools the network requests that are triggered when you click the Start button (and have the option "Translate existing media in all languages" selected)?
In my screenshot you can see how it looks when I am inspecting the XHR ajax requests after clicking the button.
You should see a series of requests, the first of which has the action wpml_media_scan_prepare, and then there would be possibly many requests with the action wpml_media_translate_media, where the media are translated in small batches.
Does that appear to be occurring? Or do you see errors reported?
The site has 2800 media files. The duplicate process takes 2-3 minutes but when I check only the translate checkbox, like on your screenshot, it only runs for a few seconds. There's one scan, one translate and one processed request.
Can you provide me few media examples that have this issue? Image names will help or links to images.
To debug this issue further, I would need to check your site settings once, for this I would need temporary access (wp-admin and ftp) to your site.
So could you please provide me with those details, you will find the needed fields for this below the comment area when you log in to leave your next reply. hidden link
Hello, I've disabled all plugins and tried to run a duplicate/translate process without any luck. Also disabled the theme with zero results. When I disabled WPML, the media showed up, but contrary with the others, only one version showed up. Enabling WPML and re-run the process didn't help either. Also in the database, I've tried to set the wpml_media_processed flag to 0 and run the process. There were no duplication but the flag changed to 1.
I can also confirm that uploading media in secondary language duplicates without an issue.
I went to WPML-> Support ->Troubleshooting and click the below buttons:
+ Clear Cache in WPML
+ Set Language information
+ Fix element types collation
+ Remove ghost entries from the translation tables
+ Assign translation status to duplicated content
+ Fix post type assignment for translations
Then run the media duplication settings again and it's fixed now.