Skip to content Skip to sidebar

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

Problem:
The client was unable to translate WooCommerce product images and gallery images from French to English. After uploading new images and saving the product, the images reverted to the original French versions, even after disabling unnecessary plugins.

Solution:
1. We navigated to WooCommerce > WooCommerce Multilingual > Status > Troubleshooting and synchronized the product images.
2. We then cleared the Siteground cache, which resolved the issue, and the translated images appeared correctly.
3. If the issue reoccurs, we recommend clearing the site's caches first. If the problem persists, synchronize the product images as described above and clear the caches again.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. If the issue persists, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket.

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.

This topic contains 12 replies, has 3 voices.

Last updated by Prosenjit Barman 1 year, 9 months ago.

Assisted by: Prosenjit Barman.

Author Posts
February 21, 2024 at 8:37 pm #15330410

pierreC-23

Unable to translate the woocommerce images in English from French.
Same with the galleries images.

After uploading new images and saving the post, the images revert to the original French images.

I've disabled all unnecessaries plugins and still the same behavior.

February 21, 2024 at 8:49 pm #15330420

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English )

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

Thank you for contacting WPML support. While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.

Please ensure that all your caches are being emptied after making your translations. Besides that, can you provide us with a concrete example, so we can better understand what's going on?

Thanks in advance,

February 22, 2024 at 1:57 am #15330908

pierreC-23

All caches were disabled, basic translatation of a product in woo commerce. I build about 50 sites so far with WPML and never got this issue. I simply translate a product but right after I upload the new images and save the changes, everything revert to initial images. Text is fine and got saved properly. So something must be wrong with the WPML Media plugin.

February 23, 2024 at 8:07 am #15336258

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well. I've taken over this ticket and would be happy to assist you further in this matter.

We've recently identified a problem with the WPML Media Translation addon, where translated images are mistakenly overwriting others due to similarities in their filename patterns. For more detailed information, please refer to this errata: https://wpml.org/errata/media-translation-issue-with-images-having-similar-filenames/

If the problem you're experiencing matches the description in the Errata, could you please implement the suggested solution and see if it resolves the issue?

But, if the issue you're encountering differs from what's detailed in the Errata, it's possible that the media translation settings were not configured correctly. To address this, please follow these steps and see if they resolve the issue:

1. Navigate to "WPML > Media Translation" and re-upload the translated image.
2. Upon saving the media translation, a notification will appear at the top, prompting you to scan the content and replace the media image with the translated version. Refer to this screenshot for guidance: hidden link. Choose the first option and click on the "Scan and Replace" button.
3. After the process is complete, go to "WPML > Settings" and scroll down to the 'Media Translation' section.
4. Make sure the options shown in this screenshot (hidden link) are selected, then click on "Apply".

Please let me know if the information above helps in solving the issue or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

February 23, 2024 at 3:40 pm #15338551

pierreC-23

I tested both solutions and none of them are working.
This seem to only affect the images from Woocommerce. (Featured images and Gallery Image)

February 23, 2024 at 4:46 pm #15338823

pierreC-23

Just FYI, after implementing your solution, random sections/pages of the site reverted to French or older translation. Really bizzare. I had to restore from yesterday's backup.

February 26, 2024 at 7:10 am #15342317

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

Thank you for the update. Given that the problem is occurring with the Featured and Gallery images of the WooCommerce product, could you please verify if the settings highlighted in this screenshot (hidden link) were enabled before submitting the product for translation? Occasionally, not selecting these specific options before translation can cause issues with translated images.

But, if the issue is happening despite selecting these options before translation, a closer inspection will be required to understand the root cause of the issue. 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.

You will find the needed fields 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.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup 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

Looking forward to your response.

Best Regards,
Prosenjit

February 27, 2024 at 7:21 am #15347344

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for sharing the access information.

To investigate the issue further, I created a product named support, added a different image there, and also translated the product. After that, I translated the image as well from the Media Translation section.

Now, when I checked the English version of the product, I found that the Image added in the French version is showing there despite translating the image properly.

Initially, I navigated to "WooCommerce > WooCommerce Multilingual > Status > Troubleshooting" and synchronized the product images (Screenshot: hidden link). After completion, I reviewed the English version of the product and noticed the default image was still displayed. However, upon clearing the Siteground cache, the translated image began to appear correctly alongside the translated product. Please check this video(hidden link) for a better understanding.

The problem appears to stem from unsynchronized product images and caching issues. If you face this issue again, start by clearing the site's caches. If the problem persists, synchronize the product images as described above and then clear the caches again. This approach should help resolve the issue.

Feel free to let me know if that helps or if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

February 27, 2024 at 1:51 pm #15349414

pierreC-23

How did you enable the Troubleshooting Tab under WooCommerce > WooCommerce Multilingual > Status > Troubleshooting ? And have you tried any product with existing language ?

February 27, 2024 at 1:53 pm #15349421

pierreC-23

And more importantly, how would a problem like this occur ?

February 28, 2024 at 4:45 am #15351796

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,

If you go to the "WooCommerce > WooCommerce Multilingual > Status" tab, at the bottom of the page, you'll see the link to the "Troubleshooting" page(Screenshot: hidden link).

I tried to investigate the issue with an existing product but was unable to properly find the translated image. For that reason, I opted to examine the problem by setting up a new product. Through this new product, I also noticed the issue you highlighted. However, after synchronizing the product images from WCML Troubleshooting and clearing the cache, the translated image became visible in the translated product.

Please feel free to check on an existing product. If you encounter the issue, Synchronize the images from WooCommerce Multilingual Troubleshooting, Clear the SG caches, and check again.

As highlighted in my previous message, such issues can arise from images that are not synchronized. This synchronization issue might happen if the Media settings within WPML or it might be caused by some background processes.

I hope you can understand, Please feel free to let me know if you need further assistance in this matter. I will be happy to help.

Best regards,
Prosenjit

February 29, 2024 at 8:35 pm #15360563

pierreC-23

I successfully modified the media by scanning and replacing the images.

Although I'm uncertain if it's connected, the website was initially translated using the Advanced Translation Editor and Automatic translation with Deepl.

Later, it was switched back to the Classic Translation Editor after publication. I observed that occasionally, some pages revert to the original translation from when the Advanced Translation Editor was in use.

Could transitioning from the Advanced Translation Editor to the Classic Translation Editor post-publication lead to these issues?

March 1, 2024 at 4:57 am #15360922

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thank you for the update. Glad to hear that the Media translation worked!

Indeed, switching from one translation editor to another can result in problems with your translations. If you added translations through the Advanced Translation Editor and later moved to the Classic Translation Editor, you'll have to input the translations again in the Classic Editor. If not, the translated pages might display the original content instead of the intended translations.

This is because the translation memories are not shareable between editors, meaning translations made in the Advanced Editor won't carry over to the Classic Editor. Therefore, we recommend consistently using the same translation approach to avoid such issues.

For more information on possible issues arising from switching translation editors or modes, please check this link.: https://wpml.org/faq/why-arent-my-translations-showing/

I hope you can understand. Please feel free to let me know if there is anything else if you need help with. I will be happy to assist.

Best regards,
Prosenjit