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: Exception
This topic contains 3 replies, has 3 voices.
Last updated by Carlos Rojas 11 months, 3 weeks ago.
Assisted by: Carlos Rojas.
Author | Posts |
---|---|
May 3, 2024 at 2:12 pm #15591679 | |
larsR-24 |
Tell us what you are trying to do? I want my images to be reused without them being duplicated for each language translation. When I translate a product (the original) I want the translated version to have (be linked to) exactly the same images as the original. If I change an image in the original I want all translations to get the same image updates (image linking updates). Is this possible? And what settings should I use in order to achieve this? Or which default settings do I need to change, and to what value? I have installed WPML (using your OTGS Installer plugin), and I have translated a product from Danish to English in my WooCommerce site. However, after translation I am missing images (gallery images) in both the Danish (default) and English translations. Also, many of the preview images in my media library (using FileBird plugin) have disappeared. I'm currently running in a local test environment using "Local". I want to test how to avoid this situation before installing WPML in my production system. Is there any documentation that you are following? Is there a similar example that we can see? What is the link to your site? |
May 4, 2024 at 12:39 am #15593016 | |
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Hello, WPML will always use the same physical image for all languages, but it will need to create connections inside the database, so that the image can be displayed on all URLs. If you update the image on a original content, then you need to update the translation and this should solve the issue. Simply applying the translation with the WPML Translation Editor should be enough in such cases. Another way would be to go to WPML > Settings > Media Translation and click the "Start" button. This will create all missing language entries for each media file inside WordPress's media library, but this task can be time-demanding, if there is a lot of media on your site. Best regards |
May 6, 2024 at 9:20 am #15596193 | |
larsR-24 |
Thank you for explaining how the same image is being reused in translations by being referenced in the database and not copied. (But it is quite misleading that you are calling it "Duplicating media..." when in fact you mean "Duplicating media references"). However, as you can see from my screenshots more or less all my images (preview images) in all of my products including images in the translated product are missing after my first translation of a single product. I think something has happened to the preview images (not the original images). When I hover over the large image box in my product description page I can see the zoom version of the correct original image, and I can select another images by clicking a place-holder-image box in the gallery and afterwards see that images when I hover over the large image box area. How do I solve this problem of missing preview images and why did it happen? (I have tried you suggestion of running the WPML > Settings > Media Translation and clicking the "Start" button, but it had no effect) |
May 6, 2024 at 10:41 am #15596666 | |
Carlos Rojas WPML Supporter since 03/2017
Languages: English (English ) Spanish (Español ) Timezone: Europe/Madrid (GMT+02:00) |
Hello, I kindly ask you to visit a URL where the images are missing and check the structure of the image src. This might lead us to the cause of the issue. Do you see the image src? Is it pointing to the correct URL? |