Skip Navigation

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.

Sun Mon Tue Wed Thu Fri Sat
- - 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00
- - - - - - -

Supporter timezone: America/Lima (GMT-05:00)

Tagged: 

This topic contains 10 replies, has 1 voice.

Last updated by Andreas W. 7 hours, 50 minutes ago.

Assisted by: Andreas W..

Author Posts
January 28, 2025 at 10:55 am #16641058

T4ng

Background of the issue:
I am trying to update a product's gallery image because the current one is out of date and provides incorrect information. I uploaded a new image and translated it through Media Translation. I removed the previous image from the original product and saved the changes. I expected the old image to be removed and the new one to be displayed on the product translation pages. The issue can be seen here: hidden link

Symptoms:
The old image is not removed from the translated product pages.
The new one is not displayed.
If I remove the image I don't want to see anymore (starting, one by one, with the translations, to the original one), an empty thumbnail appears where the old image was.
Changing the Custom Field Translation _product_image_gallery from 'Do not translate' to 'Copy' does not persist and reverts back automatically, 2 seconds after saving.

Questions:
Why is the old image not removed from the product translation pages?
Why is the new image not displayed on the product translation pages?
Why does the Custom Field Translation setting revert back automatically?

January 29, 2025 at 11:08 am #16645730

T4ng

Hi,
For some reason, the problem solved by itself after a couple of hours.
Which, I must admit, once again points us toward a caching issue.
Could you provide some avenues for investigation? Knowing that cache plugins were disabled and that I had cleared WPML caches from the troubleshooting tools before sending my last message.
Thanks

January 29, 2025 at 6:36 pm #16648290

Andreas W.
Supporter

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

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

Hello,

After uploading a new alternative media file at WPML > Media Translation you should see a dialog that will ask you to sync the media.

If you do not use this dialog it might be that the sync occurs at a later moment of time in the form of a background task.

If you create a new test product and add images, then replace them afterwards, can you still recreate the issue?

Best regards
Andreas

January 30, 2025 at 4:54 pm #16652904

T4ng

Hello.
I feel your answer is not relevant to the issue.
The images were updated, and translated **before** adding the original language image to the original product. Which should addde the translated image to the translated products.
What I see, is that this update, for some reason, seems to take more time.

I have the same behavior on a test website. I checked it twice. Same results.
I also noticed that, the new images do are visible from the admin product page, in all language, after adding the image in the original language only. So it's definitely set, and taken into account, but it won't display in the frontend before a while.

So something seems to hold this update, I'm trying to understand what.

January 30, 2025 at 5:53 pm #16653188

Andreas W.
Supporter

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

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

Did you update the translation after making changes to the original product?

Would you like me to take a look into the site admin user?

January 30, 2025 at 8:03 pm #16653362

T4ng

Yes I tried and it didn't change anything at that moment.
I had new look at the images 2 hours after my last message and they were finally appearing on the frontend.
I suppose it's related to some WordPress cron tasks being processed.

Can you tell me which one would are responsible for this process?

Thank you

January 30, 2025 at 8:23 pm #16653401

Andreas W.
Supporter

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

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

No, WPML does not have a Cron job for that.

If you go to WPML > Settings > Media Translation and click "Start" a background process will run and create the necessary media entries in all languages.

Anyhow, this is not related to WPML > Media Translation.

Usually, once you upload media at WPML > Media Translation has its own dialog which should appear and ask you to sync the media.

January 30, 2025 at 9:31 pm #16653498

T4ng

Ok, I checked again. I had checked the wrong media. So it's actually still not present on the frontend in the translated products.

So I did again, a bit differently.
Instead of adding the image to the library and add translation images straight away in the other languages from the WPML Media Translation, I added only the original image, added it as a product gallery image to the product, then clicked dialog option as you said. It didn't change the result: the original image wasn't shown on the frontend, but (as usual) it was already in visible from the translated product admin page > Product gallery.
Then I added translation images, clicked the option again. Same result.

January 30, 2025 at 9:44 pm #16653566

Andreas W.
Supporter

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

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

You are saying: "the original image wasn't shown on the frontend".

What makes you think that this is a WPML-issue?

If the original media does not show up, then it would be expected for a translation not to show up either.

Please disable WPML, repeat changing the original media, and let me know if this way the media shows up. In case not, then this is not a WPML-issue.

January 30, 2025 at 10:00 pm #16653578

T4ng

I didn't made myself clear, sorry.
It didn't change the result: the original image wasn't shown on the frontend... for the product translations.

To sum up my tests:
- The image I add in the original language always shows up on the frontend in the original language
- From there, whether I translate it or not, it always shows up in the product translation admin pages (I assume it's a fallback behavior, which makes sense), but not on the frontend (or only some time later).

January 30, 2025 at 10:07 pm #16653581

Andreas W.
Supporter

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

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

Hi,

I would like to offer to take a closer look and request temporary access (wp-admin and FTP) to the site to investigate the issue further.

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

IMPORTANT
Please be sure to back up the site and database before granting us access.

If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private reply form looks like this:
hidden link

The next time you reply, click on "I still need assistance".

Video:
hidden link

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

Best regards
Andreas