This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is trying to translate only three specific images on their website using the Media Translation plugin. However, after doing so, some other images that do not require translation are not displayed on the translated pages. The client noticed that missing images have a pencil icon in the Media Translation editor, while the images that are displayed correctly have a plus icon
Solution:
If you're experiencing missing images on your translated pages after using Media Translation, we recommend the following steps:
1) Navigate to WPML >> Support page, and click on the Troubleshooting link.
2) On the Troubleshooting page, click on the following options in the Clean up section, waiting for confirmation after each:
- Clear the cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Set language information
- Fix WPML tables collation
- Assign translation status to duplicated content
- Fix terms count
- Fix post type assignment
- Cleanup and optimize string tables
3) Go to WPML >> Settings >> Media Translation.
4) Click on the Start button and wait for the process to finish.
After completing these steps, delete the homepage translation on the staging site and translate it again. This should resolve the issue as it may have been caused by corruption of the images in the English language.
If this solution doesn't look relevant to your issue, please open a new support ticket with us.
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: Bug
This topic contains 18 replies, has 2 voices.
Last updated by Bigul 12 months ago.
Assisted by: Bigul.
Author | Posts |
---|---|
November 14, 2023 at 10:58 am #14796679 | |
olgaS-13 |
Tell us what you are trying to do? For the translation of the website I needed to translate 3 images (display different images depending on the language selected). Therefore I installed Media Translation and tried to translate (only) these 3 images. However, some of the other images (which do not need translation) are not displayed on the translated pages. I saw, that the missing images have a pencil icon (e. g. the logos for Bayer, BMW, Nissan, etc.), whereas the images that work have a plus icon in the Media Translation editor (see first picture) I tried to provide the translation by saving the translation but the configuration does not seem to stick and I'm left with the situation in the second picture. I cannot select "use the same image" and I certainly do not like to upload all the images a second time. I also cleared the various DIVI caches, but the images remain missing. What am I doing wrong? How can I remove the language-neutral images from translation? Is there any documentation that you are following? https://wpml.org/documentation/getting-started-guide/media-translation/ Is there a similar example that we can see? hidden link If you compare it to the german version (default language of the site), you will note that there are missing some images. hidden link What is the link to your site? hidden link |
November 15, 2023 at 2:10 pm #14809555 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Welcome to the WPML support forum. I will do my best to help you to resolve the issue. Please upgrade to the latest version of WPML(4.6.7) after a full site backup{mandatory} and make sure the issue exists or not. Please check the following URLs. Just to confirm, have you tried those steps before translating the Page & images? hidden link -- Bigul |
November 15, 2023 at 3:58 pm #14811325 | |
olgaS-13 |
Hi Bigul! I updated to 4.6.7 and re-tried, but the situation is unchanged. Yes, I selected the images I want to translate in the Translation Management (see picture). I updated the translation of the page's text and translated the images (see 2nd picture). But the problems persists. However, _some_ images re-appeared, but not all. As you can see, the translated images are displayed correctly. |
November 16, 2023 at 4:12 am #14821637 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the details. Just to make sure, it is only happening with the translated Homepage? Please fill in the private details fields after a full site backup. I would like to access the admin area of your site for further checking. Refer to the following links for more details about our private information sharing policies. hidden link -- Bigul |
November 17, 2023 at 4:23 pm #14865009 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the login information. Please try the following steps after a full site backup and make sure is there any difference in the result. 1) Upgrade to the latest version of the Divi theme(4.23.1) Do you have a staging/dev site(clone copy of the live site)? If the problem remains, it will help us to troubleshoot the issue without affecting your live site. -- Bigul |
November 21, 2023 at 8:43 am #14883179 | |
olgaS-13 |
I followed the suggested steps. Unfortunately, there are still images missing. The site inc.aufwind.co.at is a test site, so you can test / troubleshoot as necessary. |
November 21, 2023 at 1:40 pm #14887463 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the updates. We make to make sure this bug is happening in a minimal setup or not. So just to make sure, is it okay to deactivate all non-WPML plugins on hidden link Also, please allow me to make a duplicator copy of your site using the Duplicator plugin(https://wordpress.org/plugins/duplicator/) for debugging the issue on my local server. -- Bigul |
November 21, 2023 at 3:33 pm #14888711 | |
olgaS-13 |
Feel free to deactivate any plugins that are not relevant for the problem. I think you'll need the Divi Pixel plugin though, since there are many logos missing and (as fas as I remember) the logo slider is a DIVI Pixel module. If it simplifies the debugging, feel free to duplicate the site for this purpose. Of course, in the end, I need a solution that works with the complete site. |
November 22, 2023 at 7:12 am #14893009 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the permission. We will debug it further and get back to you as early as possible. Please wait. -- Bigul |
November 23, 2023 at 9:48 am #14905699 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, I had a few rounds of testing on your site. But not able to reproduce the issue exactly with a new page - hidden link Therefore one request. We had a similar issue reported a few months back and it was resolved by deleting the translation of the page permanently and translating it again. You are using Advanced Translation Editor. So the translation memory will exist for the pages. If possible, please try it and let us know your feedback. -- Bigul |
November 24, 2023 at 12:10 pm #14916865 | |
olgaS-13 |
I tried your suggestion with the "Home" page, following the instructions in this document: https://wpml.org/faq/how-to-delete-the-translation-of-a-page/ Alas, it did not solve the problem for me. There are still images missing from the carousels on the "Home" page (sections "Welding technology" and "Surface technology"), as well as in the Logo slider above the page's footer. |
November 24, 2023 at 4:53 pm #14919873 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the updates. Just to make sure, have you ever translated the logo images or or deleted the images in English in the past? Because it is not showing in the backend now. Please check the following screencasts. hidden link hidden link -- Bigul |
November 28, 2023 at 8:11 am #14936459 | |
olgaS-13 |
Hi Bigul! I'm not sure I fully understand your question or the intention of the screencasts. We want to translate only the 3 images with the arrow symbol and the text (e. g. "Produkte" / "products"). I have no idea, why all the other images ended up in the translation editor. I did not find any way to remove those images from the translation or to tell it to use the same as in the original language. I your second video, you point to the "use another file" area. But I do not want to use (or upload) another file, I want to use the same (i. e. not translate it). best regards |
November 28, 2023 at 4:41 pm #14942525 | |
Bigul Supporter
Languages: English (English ) Timezone: Europe/Vienna (GMT+01:00) |
Hello, Thank you for the details. I went through the missing images one by one. So one more question. Have you ever deleted the images from Media>>Library after switching to English, from the following URL? hidden link Please check the attached images. 33 Images are missing in English. It included the missing images. For example logos like Nissan, Siemens, etc... -- Bigul |
November 28, 2023 at 5:19 pm #14943191 | |
olgaS-13 |
Hi Bigul! Thanks for the reply. I'm pretty sure, that we did not manually delete the images (in whatever language). May it be, that the translations haven't been created in the first place? Should there always be an entry for every image in every language (even those that aren't translated)? What can be done to fix the problem? Would it make sense to roll back the project to before the media translation was done and redo it? What would be the essential steps / settings in doing so to achieve the original goal (translate only the 3 mentioned images) and avoid running into the same problem again? Thanks and best regards! |