Skip Navigation

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

Problem:
The client is experiencing issues with their media library becoming enormous due to duplicated media entries created by WPML. They are seeking solutions to prevent future duplications and to remove existing duplicated media.
Solution:
1. To address the issue of duplicated media, we recommend temporarily disabling the WPML Media Translation plugin. This action has helped reduce the number of duplicated thumbnails from 2000 to around 500.
2. After managing the existing duplicates, reinstall the WPML Media Translation plugin to see if the issue of duplication recurs. This step will help in identifying whether the plugin is the cause of the problem.
3. It's important to understand that WPML creates additional database entries for images in the second language, which are necessary for the images to function correctly in both languages. These entries appear as duplicates in the media library but do not represent actual duplicated files.
4. For further technical details or if the problem persists, please check our documentation on managing media with WPML here: WPML Media Translation.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your specific case, we highly recommend opening a new support ticket. Also, please visit our known issues page to check for related problems and confirm that you have installed the latest versions of themes and plugins. For further assistance, you can always contact us through our support forum here: 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.

Tagged: 

This topic contains 4 replies, has 2 voices.

Last updated by jaspalS 2 weeks, 5 days ago.

Assisted by: Paola Mendiburu.

Author Posts
November 20, 2024 at 10:54 am #16423995

jaspalS

Background of the issue:
I am trying to manage my media library on my site hidden link. WPML has made my media library enormous, and I am trying to prevent and remove the existing duplicated media.

Symptoms:
Duplicate images are appearing in the media library.

Questions:
How can I prevent WPML from duplicating media in the future?
What steps can I take to remove existing duplicated media from my library?

November 20, 2024 at 10:58 am #16424038

jaspalS

I have tried several times to manually delete the duplicate images from my Media Library but they still keep returning.

I need to delete all the duplicates that WPML has made and also prevent duplications in the future.

November 20, 2024 at 11:27 am #16424171

jaspalS

Please note that this 40M value is incorrect, see screenshot of the dialogue between my host support and I.

Screenshot 2024-11-20 at 13.25.51.png
Screenshot 2024-11-20 at 13.01.08.png
November 20, 2024 at 1:01 pm #16424770

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

Thanks for contacting us.

While you wait for my colleague to take over the ticket, let me try to help you with the issue quickly.

I am afraid that is expected and needed, WPML adds DB entry for 2nd language for images, the files are not duplicated, only a DB entry, but you will see them in your Media library for both languages, which is needed for images to work correctly in both languages.

For memory, there are different memory values and these are read directly from the server / Worpdress and should be correct. You can also check it from Tools > Site health > Info > Server / WP constants.

Regards,
Drazen

November 20, 2024 at 7:29 pm #16426315

jaspalS

I have been using WPML for years on other WP sites, about 5 other WordPress sites over the years and the duplication of the thumbnails within the Media Library has never happened, not like this.

The thumbnail duplication that I am experiencing is absurd.

I've been working on this site which is in development for months and now I don't know what to do. I cannot launch this or deliver the site to the client like this.

I've tried so many different ways to resolve this situation and I'm stuck. It just gets worse, even when I mass delete so many duplicate thumbnails. Now, there are even broken images within the Media Library.

Please help fix this. This cannot be the expected outcome. Look at these screenshots of my media library and what WPML has done to it!

AwesomeScreenshot-lashdream-biz-wp-admin-upload.php-11-20-2024_09_16_PM_part6.jpg
AwesomeScreenshot-lashdream-biz-wp-admin-upload.php-11-20-2024_09_16_PM_part5.jpg
AwesomeScreenshot-lashdream-biz-wp-admin-upload.php-11-20-2024_09_16_PM_part4.jpg
AwesomeScreenshot-lashdream-biz-wp-admin-upload.php-11-20-2024_09_16_PM_part3.jpg
AwesomeScreenshot-lashdream-biz-wp-admin-upload.php-11-20-2024_09_16_PM_part2.jpg
AwesomeScreenshot-lashdream-biz-wp-admin-upload.php-11-20-2024_09_16_PM_part1.jpg
November 25, 2024 at 11:34 am #16439374

Paola Mendiburu
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hi there!

This is Paola and I will continue with the ticket.

Do you know after what action appears images duplicated on media library?

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

**IMPORTANT**
- Please make a backup of the site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.
The private box looks like this: hidden link

November 25, 2024 at 12:22 pm #16439675

jaspalS

WP-admin and FTP credentials have been provided as instructed.

November 26, 2024 at 6:27 am #16442644

Paola Mendiburu
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hi!

Could you do a test?
- please deactivate WPML and delete thumbnails and let me know if they are regenerate again

November 28, 2024 at 3:19 pm #16456097

jaspalS

WPML has been deactivated. Please standby while I attempt to delete all of those duplicate thumbnails. I will post in here again with an update. Thank you for your patience.

November 28, 2024 at 3:37 pm #16456153

Paola Mendiburu
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Ok, please let me know if the issue persists.

November 30, 2024 at 10:25 am #16461748

jaspalS

I will attempt these steps, hopefully on Monday and then message you an update here. Let me know what you think of these plans (see screenshot).

Please add any tips you think might help me as manually deleting all of the thousands of images was proving too difficult for me.

Screenshot 2024-11-30 at 12.25.10.png
December 2, 2024 at 10:13 am #16465264

Paola Mendiburu
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Please let me know if the issue persists with WPML deactivated.

December 2, 2024 at 10:21 am #16465319

jaspalS

With the WPML plugins all deactivated, the duplication stopped.

I am still in the process of deleting duplicate thumbnails.

December 2, 2024 at 10:32 am #16465405

Paola Mendiburu
Supporter

Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Could you please make a video if you activate WPML how the duplication of thumbnails occurs please?

December 2, 2024 at 11:29 am #16465665

jaspalS

My plan was (and still is) to remove the duplications, create a backup of the entire site, and then inform you to use the admin credentials I provided to WPML so that WPML support staff could ensure the re-enabling of the plugins so that this duplication doesn't occur again.

May we stick to that plan?