Skip Navigation

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

Problem:
The client is trying to use media translation to translate an image on an Elementor page, but the original image still appears on the translated page despite configuring WPML settings for media translation and scanning and replacing media after saving the translated image.
Solution:
This issue may occur if there was a mass import or a change that did not trigger WPML to detect a change in the original version of the product, which is necessary for image translation. To resolve this, the client needs to make a small change on each product page to prompt WPML to perform the translation. Alternatively, the client can use the bulk edit feature by going to the WordPress Dashboard > Products, selecting the products, and clicking the edit option at the top. Without changing anything, clicking the update/save button will force WPML to recognize the changes and perform the necessary translations. However, this will cause all the products to appear as needing translation completion, indicated by a circle icon, until the translation is verified as 100% complete.

If this solution does not apply or is outdated, or if further issues arise, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If problems persist, please open a new support ticket at WPML support forum.

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 3 replies, has 0 voices.

Last updated by Christopher Amirian 1 week, 4 days ago.

Assisted by: Christopher Amirian.

Author Posts
November 14, 2024 at 4:39 pm #16404128

chi-tsanC

Background of the issue:
I am trying to use media translation to translate an image in an Elementor page, but the original image is still shown in the translated page. I have already configured WPML settings for media translation and scanned and replaced media after saving the translated image. Here is the link to the page where the issue can be seen: hidden link. I expected to see: hidden link.

Also, WPML media shows as "Not installed" in the Support page. I already tried deactivating, reinstalling WPML Media and even WPML core.

Symptoms:
Instead of the translated image, the original image is displayed: hidden link.

Questions:
Why is the original image still showing instead of the translated image?
Are there additional steps needed to ensure media translation works with Elementor?

November 15, 2024 at 7:43 am #16405884

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

Thank you for contacting our support.

The WPML Media Translation plugin seems to be installed correctly from what I see in the debug information.

One thing that I see that might cause issue is that the WPML Media needs enough PHP memory limit to be able to work correctly and at the time being your WordPress installation does not utilize enough memory.

The minimum requirement is 128M but I suggest that you increase it to 512M: https://wpml.org/home/minimum-requirements/

You can add this by adding the code below to "wp-config.php" file of your WordPress installation root folder:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '512M');
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

Please add the code above the line below:

/* That's all, stop editing! Happy blogging. */

After that, please make a small change on the Elementor page and make sure the translation is 100% complete. See if it fixes the image not showing the translated version.

One other thing is that we have an issue with the new caching system of Elementor that worths checking by you:

https://wpml.org/errata/elementor-translated-pages-show-stale-content-after-being-updated/

Thanks.

November 18, 2024 at 2:15 am #16412417

chi-tsanC

| After that, please make a small change on the Elementor page

Hi,

I dont think the memory limit helped but the small change in the translated page seemed to have fixed it.

But now the question is do I have to make this small change to every translated page that i want the changes to reflect?

I think it defeats the purpose of having media translation, to skip updating the said pages manually.

November 18, 2024 at 4:17 pm #16415802

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi,

This might be happening because maybe you had a mass import or some sort of change that did not cause WPML to detect that there is a change on the original version of the product and it needs that to perform any sort of Image translation for sure.

For example, if there is a product that is already translated but you translate the media after the fact, you still will need to make a small change on a product to force WPML to do the actual work.

That is important for WPML as if WPML tries to guess what is changed without the actual edit of the user it will cause problems along the way as it might be scenarios that the customer would say, why there is a change while I did not change the original language?

So basically you need to do the process for the products that you need the media translation.

Alternatively, you can go to WordPress Dashboard > Products select them and click the edit option at the top and without changing anything click the update/save button.

That will bulk edit products without affecting the actual content. and will force WPML to perform the changes.

The side effect of such a step is that you will see all the products now in a status of need translation complete with a circle icon. It will not have an effect on the final point which is what you want but be aware that only when you actually make sure the translation is 100% complete the cion next to the products will show as Pencil.

Thanks.