Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 28 replies, has 2 voices.

Last updated by Long Nguyen 7 months, 1 week ago.

Assisted by: Long Nguyen.

Author Posts
April 10, 2024 at 9:26 am #15503322

peterJ-48

Hello,

If we save the "Post Type Translation" setting from WPML then we are getting duplicate images in the media library.
If we change anything in "Post Types Translation" or just save the settings without changes we are getting duplicate images in the media library.

You can see in the video, for i.e. : This image " Vidbag-Modulo-Skewer-attachment-ver3.jpg " without saving settings from WPML We have only one in media library, but after saving "Post Types Translation" settings from WPML we are getting duplicate images in the Media Library.

See this video : hidden link

Can you take a look and tell me the solution to the duplicate images issue?

April 11, 2024 at 2:20 am #15506792

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Peter,

Thank you for contacting WPML support, I’m happy to help you with this issue.

I've tried to replicate the issue on my demo site with the same translation preference of post types and search for the image but not see that.

From my point of view, the image is duplicated into other second languages as it is. But somehow when you search for the image, the translation is also displayed in the English language.

I suggest you follow steps below and recheck this issue:
1. Update WPML plugins to the new version WPML 4.6.10, String Translation 3.2.10.
2. Enable a minimal environment:
- Deactivate all non-WPML plugins.
- Switch to a standard theme of WordPress.
❌ IMPORTANT: Please backup your database and website before proceeding ❌

Looking forward to your reply.
Thanks

April 12, 2024 at 1:16 pm #15513047

peterJ-48

Hi Long,

Ok, I'll test as per your suggestion and come back to you.

April 15, 2024 at 1:30 am #15516868

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

I'm waiting for your feedback.

Thanks.

April 16, 2024 at 8:05 am #15523118

peterJ-48

Hi Long,

We followed this steps as you suggested, but we are still getting duplicate images in the media library.
1. Update WPML plugins to the new version WPML 4.6.10, String Translation 3.2.10.
2. Enable a minimal environment:
- Deactivate all non-WPML plugins.
- Switch to a standard theme of WordPress.

See this video :
hidden link

April 16, 2024 at 8:42 am #15523527

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Looking forward to your reply.
Thanks

April 16, 2024 at 9:43 am #15523864

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I go to WPML > Support > Troubleshooting > Click on the button "Set language information" and that fixes the issue. Can you please confirm it works on your end?

Looking forward to your reply.
Thanks

April 16, 2024 at 9:46 am #15523887

peterJ-48

Hi Long,

Okay, I'll check and come back to you.

April 16, 2024 at 10:46 am #15524244

peterJ-48

Hi Long,

If we click on the "Set language information" button then also we are getting duplicate images in media library.

See this video :
-------------------
hidden link

April 17, 2024 at 1:45 am #15528744

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I delete the duplicate images and run the button again, now I don't see that issue. Here is the screen record hidden link

Looking forward to your reply.
Thanks

April 17, 2024 at 9:54 am #15530608

peterJ-48

Hi Long,

We faced the same problem 6 months ago also. And we raised ticket with same issue.
This is the ticket URL : https://wpml.org/forums/topic/duplicated-images-in-the-media-library-2/

We did this 6 months ago under WPML > Support > "Set language information"
See the screenshot : hidden link
But still we are getting same issue. this is not a permanent solution.

Currently,
Without duplicate media count total : 16,095 (See the screenshot : hidden link)
With duplicate media count total : 22,048 (See the screenshot : hidden link)

Therefore, we need to remove about 6,000 duplicate entries in the media that are not feasible to us. and this is not a permanent solution because as I said we already did it with "set language information" 6 months ago and now we are getting the same problem.

April 17, 2024 at 10:20 am #15530937

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

I understand the issue. However, the root of the issue here is some duplicated images do not have the correct language when you search for a keyword and they show all in English language.

It is a normal behavior when the images are duplicated into other languages because it is setup in WPML > Settings > Media Translation.
https://wpml.org/documentation/getting-started-guide/media-translation/#id5

Let me know if the issue persists on your site.

April 22, 2024 at 6:15 am #15548050

peterJ-48

Hello,

Can you provide me a permanent solution about this issue? because as i said we fixed this issue around 6 month ago with same solution "set language information", but still we are getting second time this issue.

April 22, 2024 at 7:04 am #15548241

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Please share a backup file with me. I will restore your site on my localhost and investigate the issue further. You can use some plugins to create the backup file:
https://wordpress.org/plugins/duplicator/
https://wordpress.org/plugins/all-in-one-wp-migration/
and exclude some unnecessary folders like /wp-content/uploads/, /wp-content/caches/ ... to reduce the file size. Your next reply is set to private to share the info.

Looking forward to your reply.
Thanks

April 23, 2024 at 7:29 am #15553842

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

I'm not able to restore your site on my localhost with the DB and wp-content files. Please help me install the plugin Duplicator Pro on your site
hidden link

share the admin account again and I will take the backup file on my end. Your next reply is set to private to share the info.

Looking forward to your reply.
Thanks

The topic ‘[Closed] Getting duplicate images in media library after saving settings from WPML’ is closed to new replies.