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 |
---|---|---|---|---|---|---|
10:00 – 14:00 | 10:00 – 14:00 | 10:00 – 14:00 | 10:00 – 14:00 | 10:00 – 14:00 | - | - |
16:00 – 20:00 | 16:00 – 20:00 | 16:00 – 20:00 | 16:00 – 20:00 | 16:00 – 20:00 | - | - |
Supporter timezone: Asia/Jerusalem (GMT+03:00)
This topic contains 3 replies, has 0 voices.
Last updated by Itamar 2 weeks, 1 day ago.
Assisted by: Itamar.
Author | Posts |
---|---|
June 8, 2025 at 9:37 am | |
katarzynaT-5 |
# WPML Support Ticket - Media Settings Issue for 27 Languages ## Issue Summary **⚠️ URGENT: Please implement any simple fixes directly if possible - you have full admin access!** ## Environment Details ## Problem Description - Each product has only 1 image assigned I cannot determine: ## Expected Behavior ## Current Configuration ## Questions ## Additional Information **IMPORTANT REQUEST: If there are any simple fixes or configuration changes that can be implemented immediately, please go ahead and make those changes directly. You have full administrator access to resolve this issue as quickly as possible.** Please provide step-by-step instructions for: Thank you for your assistance! |
June 8, 2025 at 9:55 am | |
June 8, 2025 at 11:12 am #17116175 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, WPML does not actually duplicate media files. It creates a DB entry to display the images from the /wp-content/uploads/ folder. You can read more about it in our guide here: https://wpml.org/documentation/getting-started-guide/media-translation/#frequently-asked-questions The link is to the 'Frequently Asked Questions' section of this guide. Please see the answer under the first question: 'Does duplicated media in other languages use storage?'. I assume you want and need to display product images in all languages. In this case, WPML must be able to duplicate the images' database entries to all the languages of your site. Again, please remember it is not an actual duplication of the files themselves. If otherwise, please let me know. Please note that you have 23,399 media files in the Media library, which is the default language of your site, English. Please see the attached screenshot en-media-library.jpg. Many themes and possible media plugins duplicate the images into different sizes. This enables the display of images as thumbnails and accommodates different screen sizes. I can see it when I inspect an image on your site. Please see the attached screenshot different-image-sizes.jpg. You can also view these settings in Appearance -> Customize WooCommerce -> Product Images. Please see the attached screenshot thumbnails-settings.jpg. You asked the following questions, and I'm providing answers under each question. 1. What are the correct WPML settings to prevent media duplication across 27 languages? Answer: You can prevent this in WPML -> Settings -> Media Translation. It is explained in the link to the Media translation guide I attached above. However, if you want to display images (of posts, pages, and products) in other languages, you must leave all the media options to duplicate the images as selected. 2. How can I safely clean up the existing 19,000+ duplicate media files? Answer: As I explained, WPML does not duplicate the media files. So in this case, please consult a WordPress developer on how to achieve this. 3. What's the recommended configuration for sharing the same media file across all language versions? Answer: Ensure all settings in WPML -> Settings -> Media Translation are selected. If some of the media files are not showing in other languages, then you can click the Start button. 4. Are there any database queries I should run to clean up orphaned media references? Answer: Do my answers above also answer this question? If not, can you please explain what you mean by "orphaned media"? Please note that we have a known issue if you don't want to display media files in other languages, which I believe is not your case. The known issue is when adding new languages. Then the images will still be displayed in the other languages even though you unselected the options in WPML -> Settings -> Media Translation. You can read about this known issue here: https://wpml.org/errata/all-media-is-duplicated-when-a-new-language-is-added/ Please note: The suggested workaround will not delete the duplicated images; it will just prevent the duplication process when creating a new language. Please let me know if you have any further questions about Media translation. Regards, |
June 11, 2025 at 8:38 am #17124527 | |
katarzynaT-5 |
Hi Itamar, I had ~4,680 original images (one per product) AFTER clicking the "Start" button: WPML triggered WordPress to generate ALL registered thumbnail sizes The math proves this: Before: ~4,680 files (originals only) My questions: How can I REVERT this action? I want to go back to having only the original images. Is there a way to undo what the "Start" button triggered? The SAME image file to be used across all 27 languages How can I clean up the mess created by clicking "Start"? I now have ~18,719 unnecessary thumbnail files (23,399 - 4,680 = 18,719) that were generated after clicking this button. To be absolutely clear: Before clicking "Start" = ~4,680 files (originals only) Please provide specific steps to: Revert what the "Start" button did IMPORTANT: This button caused WordPress to generate ~18,719 unnecessary files. This behavior MUST be documented clearly as it can cause serious storage and performance issues. |
June 11, 2025 at 7:08 pm #17127680 | |
Itamar WPML Supporter since 02/2016
Languages: English (English ) Timezone: Asia/Jerusalem (GMT+03:00) |
Hi, WPML does not duplicate the media files when the Start button is clicked. Regards, |
The topic ‘[Closed] WPML Support Ticket – Media Settings Issue for 27 Languages’ is closed to new replies.