Skip Navigation

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

Problem:
The client updated product images on their website using a plugin to replace images, but the new square images are not appearing on the translated versions of the product pages. The original pages display the updated images correctly, while the translated pages still show the old rectangular images. The client attempted to synchronize the images via WPML's Settings > Media Translation but it did not resolve the issue.

Solution:
We recommend the following steps to ensure that the updated images appear on all translated pages:
1. Open the original content in the WordPress Editor and remove the image from the content.
2. Upload a completely new media file to the media library.
3. Translate your content.
4. Replace the image inside the media library with the new one.

This workflow should prevent the issue from occurring. If the image is not automatically replaced on the original post, it is expected that the translation will not show the new image, as it no longer exists in the media library.

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.

0% of people find this useful.

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: 

This topic contains 19 replies, has 2 voices.

Last updated by Andreas W. 1 year, 3 months ago.

Assisted by: Andreas W..

Author Posts
March 21, 2024 at 8:27 pm #15438321

ericR-40

Here's a detailed overview of the problem:

Initial Setup and Success: I have created 25 products on my website and successfully translated them using WPML. Everything was working perfectly until I made some updates to the product images.

Updating Product Images: To improve the visual appeal of my website, I decided to change the format of several product images from rectangular to square. To accomplish this, I used a plugin designed to replace images without manually updating each product.

Issue with Translated Pages: After updating the images to a square format, I noticed that the new images are not appearing on the translated versions of the product pages. The original pages display the updated square images correctly, but the translated pages still show the old rectangular images.

Attempted Solution: In an attempt to resolve this issue, I navigated to Settings > Media Translation in the WPML settings and clicked on "start," hoping it would synchronize the updated images across all translated pages. Unfortunately, this action did not yield any changes, and the issue persists.

Could you please provide guidance on how to ensure that the updated square images are displayed on all translated pages? I suspect there might be a step I'm missing or a specific WPML feature that I need to utilize.

March 21, 2024 at 8:38 pm #15438337

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Which is the plugin that you are using for this purpose?

Please verify inside the WordPress Media Library if the plugin created new images or if the changes are only achieved (for example) with CSS and JavaScript on the fly while still using the same image sources.

Best regards
Andreas

March 22, 2024 at 7:49 am #15438896

ericR-40

Hi Andreas,
I'm using a plugin Enable Media replace (see picture)

I choose this option :

"The attachment name will remain the same (f62aa51e-ab02-11ee-a834-9b50c03cded6.jpeg) regardless of what the file you upload is called. If a CDN is used, remember to clear the cache for this image!"

And I only change the date of the file. (same name, different size, diferent date)

I'm uploading a new file with the new dimensions, so the changes are not made with Javascript. (I understand)

Thanks,
Eric

Plugin.png
March 22, 2024 at 12:26 pm #15440420

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Could you please try to recreate the issue on the following test site?

One-Click-Login:
hidden link

Leave me a short comment once you are done with this task.

Please do not migrate your whole website to this test site. I only need a simple example that replicates the issue.

March 22, 2024 at 1:52 pm #15441117

ericR-40

I just did it, the new image is square and has white background (english) the old image is rectangular and has transparent background (german)

March 22, 2024 at 2:22 pm #15441198

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

I just replaced your image with a different one and can not confirm any issue.

Could you please tell me the exact steps that you took to replace the image?

March 22, 2024 at 2:33 pm #15441257

ericR-40

Oh no!
Now I can't replicate the issue in your demo site... I don't know what to tell you anymore.

March 22, 2024 at 3:36 pm #15441662

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

It seems not to work if you use the option "Replace the file, use the new file name, and update all links". (see new test product)

I can confirm that this option leads to an issue for which I was unable to find a workaround yet.

Can you please check again and confirm if this is the cause of the issue?

I will then escalate this issue internally.

March 22, 2024 at 3:59 pm #15441768

ericR-40

Thanks!
I was able to replicate the problem in booth situations, replacing name and not replacing

See this video for most info and insights from my website --> hidden link

Thanks!
Eric

March 22, 2024 at 11:09 pm #15442641

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hi Eric,

This is odd, as I could see issues right now on my test site but after replacing the images the following happens:

Now, we are not applying the translations again and this is also not necessary in this case.

WPML has an internal action, that will only run if the site is not refreshed for more than about 70 seconds. This is when WPML begins to sync the media in the background and then the issues are gone.

The issues were there after uploading, but right now I do again not see an issue on my test site.

Also, the Media Replacer mentions that some issues even can be cache-related and sometimes you might run into unexpected issues if you replace different file types.

At the moment, on my tests, I was not actually able to constantly see an issue on the test site, which is why I need to run further tests and I need to ask you for some patience.

I will be looking into this tomorrow again.

In the meantime, please let me know if clearing the cache on your site solves the issue or if the issue might occur if you replace media with different file types.

Also, please send me a link to a product on your website on which I can currently see the issue.

Best regards
Andreas

March 23, 2024 at 12:54 pm #15443163

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

I was visiting your website today and did some browsing and I was not able to find an example in which the images are not synced correctly.

Could it be that the issue solves itself after 1-2 minutes?

If so, please read my last comment or send me a link to an example on your website, where I can see the issue.

Best regards
Andreas

March 25, 2024 at 3:16 pm #15447631

ericR-40

Hi Hans,

In this video you can see what is happening and my lattest findings --> hidden link

sorry it is a little bit long video but I wanted to show you something

In the video you can see that in the riders category of the website you can see that the problem is evident when changing languages

thanks,
Eric

March 26, 2024 at 12:14 pm #15451146

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Thank you for your video!

This seems to be content-related, as it works on the product template but not on the shop page.

Are you using a Divi Template for this shop page? Is there maybe the plugin "Divi BodyCommerce" involved?

May I have please a closer look into this on the staging site, so that I can try to recreate the issue?

I would like to offer to have a closer look at the problem and request temporary access (wp-admin) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

March 27, 2024 at 12:09 pm #15455368

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

Unfortunately, I cannot log in to the staging because the password appears to be incorrect.

Can you please check the information again and then let me know on this ticket?

Best regards
Andrew

March 27, 2024 at 2:01 pm #15456158

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Thank you for the access to your staging site.

The issue only seems to occur if the plugin "Divi BodyCommerce" is enabled.

Could you please add this plugin to our test site, so that we can try to recreate the issue there?

One-Click-Login:
hidden link

Now, please try to replicate the issue here by using the same settings for "Divi BodyCommerce".

Please make sure to leave me a quick message on this ticket, once you are done with this task.