Skip Navigation

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

Problem:
The client is managing media settings in WPML and noticed that the 'duplicate media' feature seemed enabled despite their intention to have it disabled. They observed that after deleting images in the English version of their site, these images remained in the Spanish version. They were unsure if this was due to a local cache issue and asked about safely disabling media translation options and handling duplicate images without breaking the site.
Solution:
We explained that WPML does not automatically translate media files; it only duplicates them in the database for synchronization purposes when the Media Translation plugin is active. To stop this duplication, the client can disable the media duplication options in WPML by navigating to WPML>>Settings>>Media Translation. For more details, they can refer to our documentation here: Media Translation Guide.
Furthermore, disabling the duplication options will only affect newly uploaded media; it will not remove existing entries in secondary languages. There is no automatic option to delete media files from secondary languages once they are created. However, the client can follow a workaround suggested in another support ticket after ensuring a full site backup. This workaround can help in manually removing media files from secondary languages. More details can be found here: Forum Post on Cleaning Media Translation.

If this solution does not apply to your situation, or if it seems outdated, 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 further assistance is needed, 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 5 replies, has 2 voices.

Last updated by Bigul 9 months ago.

Assisted by: Bigul.

Author Posts
August 1, 2024 at 12:22 am #16027197

robertoG-6

Background of the issue:
I am trying to manage media settings in WPML for my site hidden link. I thought I had the 'duplicate media' feature disabled, but it seems to be enabled.

Symptoms:
I deleted some images in ENGLISH, and when I went to SPANISH, the images were still available. I am unsure if this is due to a local cache problem.

Questions:
Which media translation options can be safely disabled if I do not need to translate media?
If there are duplicate images, how do I delete those without breaking the site?

August 1, 2024 at 4:10 pm #16030690

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

WPML will not translate the Media files automatically. We can only translate it from WPML>>Media Translation when our Media Translation plugin is active.

But when we upload a media item (image) in the original language, it will be automatically duplicated into secondary languages. This is not a physical file duplication but rather an extra entry in the database for easy synchronization in secondary languages.

The Media Translation Settings (WPML>>Settings>>Media Translation) is part of the WPML Core plugin. You can also disable the Media duplication options there. Refer to the following documentation for more details.

https://wpml.org/documentation/getting-started-guide/media-translation/

Please check it and let us know your feedback.

--
Thanks!

Bigul

August 1, 2024 at 5:14 pm #16030980

robertoG-6

And once disabled, the database will automatically clean those duplicated entries?

Thanks

August 2, 2024 at 8:26 am #16032114

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the feedback. Once we disable the duplication options in WPML>>Settings>>Media Translation will only apply to newly uploaded media files. The existing media entries in the secondary languages will not be deleted.

--
Thanks!

Bigul

August 5, 2024 at 10:51 pm #16042198

robertoG-6

So, there is no way to clean the database from duplicates?

Thanks

August 6, 2024 at 8:07 am #16042806

Bigul
WPML Supporter since 01/2013

Languages: English (English )

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

Hello,

Thank you for the updates. There is no single step or option to delete the media files from secondary languages.

You can try the workaround (except enabling and disabling WPML) suggested in the following ticket, after a full site backup, to delete media files from a secondary language.

https://wpml.org/forums/topic/how-clean-media-translation-mess/#post-7319909

hidden link

--
Thanks!

Bigul

August 6, 2024 at 4:15 pm #16044849

robertoG-6

Thank you, I will give it a try in a test environment.