Skip Navigation

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.

Tagged: 

This topic contains 10 replies, has 5 voices.

Last updated by Shekhar Bhandari 1 year, 5 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
December 14, 2023 at 12:59 pm #15063209

evaB-28

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.

December 16, 2023 at 12:27 pm #15077271

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for contacting WPML Support.

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.

Best regards,
Prosenjit

December 17, 2023 at 9:03 am #15078491

evaB-28

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.

clipimage.jpg
December 18, 2023 at 5:24 pm #15086587

Laura
WPML Supporter since 05/2018

Languages: English (English ) Italian (Italiano )

Timezone: Europe/Rome (GMT+02:00)

Hi,

please increase your WP Memory Limit (https://wpml.org/faq/checklist-before-opening-a-ticket-in-wpml-support/#how-can-i-increase-my-sites-memory-limit) and re-run the Media Translation process

December 18, 2023 at 7:38 pm #15087293

evaB-28

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.

clipimage.jpg
December 19, 2023 at 4:13 pm #15094989

Nigel
WPML Supporter since 02/2016

Timezone: Europe/Madrid (GMT+02:00)

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?

Screenshot 2023-12-19 at 16.08.37.png
December 20, 2023 at 9:30 am #15099669

evaB-28

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.

clipimage.jpg
clipimage.jpg
December 20, 2023 at 2:16 pm #15103399

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello EvaB 🙂

I will help you further with this issue.

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

This info is private and available to you and WPML supporters only.
Read more about this: https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Note:
Backup your sites before providing the credentials or if possible provide credentials for the test site

Look forward to your reply.

Thanks

December 25, 2023 at 4:13 am #15125379

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I can see the issue, can you upload a new image on the default language and see if it duplicates to secondary languages.

Also, I suggest you to upload a new image on secondary language and see if it duplicates.

Further, Have you tried disabling all non-WPML plugins, switching to one of the default themes, and checking whether the issue still persists or not?

Please remember to create a backup of your site (both files and the database) before making any updates or changes. This is always a good practice.

Look forward to your reply.

Thanks

December 26, 2023 at 11:38 am #15129823

evaB-28

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.

December 26, 2023 at 12:33 pm #15129984

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Can you check the issue now.

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.

Look forward to your reply.

Thanks

December 26, 2023 at 5:31 pm #15130612

evaB-28

Yes, it worked. Thank you for your assistance.