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 11 replies, has 2 voices.

Last updated by Jamal 1 month ago.

Assigned support staff: Jamal.

Author Posts
August 30, 2019 at 11:57 am

hilleH

I am trying to translate pictures and videos.

Link to a page where the issue can be seen: (Below, at the product overview "Trainings in this Serie") hidden link

I expected to see: The image I assigned to the product.

Instead, I got: I see the translated image. I did the translation using the Media Translator.

In the dashboard under Support -> Troubleshooting I have already deleted the caches and so on.

August 30, 2019 at 12:46 pm
August 30, 2019 at 12:47 pm
August 30, 2019 at 12:47 pm #4487273

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Please check my private message(AUGUST 30, 2019 AT 12:47 PM) for instructions on how to migrate your website to our platform.

Best regards,
Jamal

August 30, 2019 at 2:08 pm #4487631

hilleH

The migration is finished and ready for you 🙂

September 2, 2019 at 1:54 pm
September 2, 2019 at 1:54 pm #4497525

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

My apologies for the late reply. I was not working on the weekend. Now that I wanted to investigate the issue, I found that our internal bot has cleaned up all images from the migrated site, I will need you to perform the migration again. Please accept my apologies for this inconvenience.

Please check my previous private message(SEPTEMBER 2, 2019 AT 1:54 PM) for new instruction to migrate your website again.

Thank you for your understanding.

Best regards,
Jamal

September 2, 2019 at 3:21 pm #4498209

hilleH

No problem. You also have to take a break 🙂

The migration is now finished.

September 3, 2019 at 1:59 pm #4505031

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Thank you for your kind feedback. Unfortunately, the images have been cleaned up again, so I took the liberty to run the migration again this morning.

I think that there some issues about the images and the thumbnails created from the images. For example, in Chrome, it is the English thumbnail that is visible, but in the source code, it is the german thumbnail that is used. Firefox and Chrome for Android have used the original image(which is the German one).

According to your WPML->Settings->Media Translation, any uploaded image will be available for all language in the WordPress Media Library, that's probably what makes it available in English product and it was used instead of the English one. See the attached image(gerùa,-image-in-english-product.png)
The translated(German) product did not have any featured image attached to it.

In Media Translation, I looked for English images that are translated to German, I only found the German image registered as English. See the attached image(german-image-registered-as-english-in-media-translation.png).
There is also an English image registered as German. See the attached image(english-image-registered-as-german.png)

I suggest the following:
1. Upload the English image again in English Media Library,
2. Translate the image in Media Translation by uploading the German image again.
3. Update the product and set the featured image as the English image.
4. Open product translation and save it.
This should automatically assign the translated(German) image to the German product and fix the issue.
You may want to remove all the existing(similar) images so you won't be disturbed when choosing the featured image.

You can perform this on the migrate site before doing it on your live site.

I'll be looking forward to your reply.

Best regards,
Jamal

September 5, 2019 at 8:25 am #4516763

hilleH

So, here's what I've done:

1. I deleted ALL images from the english media library.
2. Then I deleted ALL images in the German library.
3. Then I inserted all pictures - on the English side - again into the sides, as well as into the products.
4. Via Media Translation I translated the English images with German images (only those that had to be translated as well)

Result: when I switched to the product overview, suddenly images were missing on the english page again (they were shown with a question mark). When I looked in the media overview (still on the English page), they were actually no longer there. I also suddenly found German pictures in the English library).

I made the changes on my own test environment - there is no bot that deletes anything. Do you have any other idea what I can do? we will gladly slowly take the German shop online as well....

Thanks for the help!

Translated with hidden link

September 5, 2019 at 10:19 am #4518383

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

I can't really tell what would be the issue that you get in your test environment. I would need to access it in order to investigate.

If you analyze the HTML code generated in the migrated site, we get the following:

<img width="300" height="168" src="<em><u>hidden link</u></em>" class="attachment-woocommerce_thumbnail size-woocommerce_thumbnail" alt="" srcset="<em><u>hidden link</u></em> 300w, <em><u>hidden link</u></em> 768w, <em><u>hidden link</u></em> 1024w, <em><u>hidden link</u></em> 483w" sizes="(max-width: 300px) 100vw, 300px">

You can see that the "srcset" attribute contains different images for different screen resolutions. hidden link
- German: hidden link 300w,
- German: hidden link 768w,
- German: hidden link 1024w,
- English: hidden link 483w

That's why there have been differences between browsers, each browser has used a different image.

Can you try what I have suggested before(SEPTEMBER 3, 2019 AT 1:59 PM) in the migrated site?
I made sure that the bot won't delete any images any more.

Would you also try this while the Smush plugin is deactivated to exclude the possibility that it is interfering here?

Best regards,
Jamal

September 5, 2019 at 2:31 pm #4520165

hilleH

Hi Jamal

Unfortunately it still doesn't work (see migrated site).

This is what I did:

1. smush plugin turned off
2. all pictures in the english and german library deleted
3. english pictures uploaded in english page (pages and products)
4. English images translated via Media Translation
5. products updated

Unfortunately I still have english pictures in the shop on the german page :/

Best regards,
Hille

September 5, 2019 at 4:19 pm #4520717

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello Hille,

From what I can see the image "Basic knowledge about Yarn Profiling" was translated with another English image(contains English text) rather than the German image.
So I took a German image from your live site and translated the image again.

Then I removed the featured image from the product. And updated the product, then the translation. But it did not resolve the issue.
So, I opened the translated product in WordPress native editor and set the German image as the featured image. And that resolved the issue for the German page and products.
But as the duplicate media feature was enabled on the product, the English product was assigned to a German featured image. I edited then the English product, deactivated the "duplicate media" option on the product, and set the English image as featured then saved.
Now It seems resolved on the migrated site (in Chrome and Firefox). Would you please check from your side:
- hidden link
- hidden link
- hidden link
- hidden link

Best regards,
Jamal

September 8, 2019 at 6:45 pm #4532403

hilleH

I tested it on the live site. It seems to work.
Did I understand correctly that the main problem is the "duplicate media" option? Should I turn it off permanently?

September 9, 2019 at 10:17 am #4535901

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hi,

I am glad we could fix this issue.
I don't think that the "duplicate media" is the cause of this issue, it is a stable feature within WPML and does not cause issues as far as I know. Maybe there is a compatibility conflict with another component(theme/plugin). Maybe you have opened multiple browser tabs and the language cookie was different when uploading the image than what it should be for the uploading tab.
If this issue happens again, we should investigate it more deeply.

Best regards,
Jamal