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.

This topic contains 19 replies, has 1 voice.

Last updated by ziga pipan 3 weeks, 1 day ago.

Assisted by: Bobby.

Author Posts
May 7, 2025 at 11:05 am #17005860

ziga pipan

Background of the issue:
This SI version is showing me youtube video
hidden link
in the third product tab
hidden link

HR version is translated ok
hidden link

but video won't save. when I duplicate the content
hidden link
and save, the video is gone
hidden link

All other products work ok

Symptoms:
When I duplicate the content and save it, the video disappears from the SI version, although all other products work fine.

Questions:
Why does the video disappear when I duplicate and save the content on the SI version?
How can I ensure the video is saved correctly on the SI version using WPML?

May 7, 2025 at 11:42 am #17006221

Bruno Kos
WPML Supporter since 12/2018

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

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

Can you tell me if other products (where this doesn't happen) are also translated using the same method, so Classic Translation Editor? Or maybe these are done with Advanced Translation Editor?

Because if others are done with ATE, this reminds a bit on https://wpml.org/forums/topic/visual-tab-not-showing/ and you may want to consider using ATE for this one as well.

May 7, 2025 at 11:44 am #17006238

ziga pipan

everything is translated with cte

May 7, 2025 at 5:23 pm #17008212

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Is this issue happening only with the video embed code?

After you save it and it is removed, are you able to see it OK if you switch to the code tab?

If yes, please try the steps from this errata and share with me your results.
https://wpml.org/errata/visual-tab-in-classic-translation-editor-is-not-showing-contents-after-update-to-wordpress-5-6/

May 8, 2025 at 9:02 am #17010382

ziga pipan

Seems to only be happening with video code. It's also not visible in code tab. here is a. screencast
hidden link

May 9, 2025 at 4:32 pm #17017420

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for the video, that helped me better understand!

Please try the following workaround:

1. Go to wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/ExtraFieldDataInEditor.php

2. Edit line 199 (line can sometimes change, please find the actual code listed underneath)

You should locate a blacklist array and modify it by removing 'iframe' from it, changing the line from:

$black_list = ['script', 'style', 'iframe'];

to

$black_list = ['script', 'style'];

Let me know your results, please.

May 12, 2025 at 9:08 am #17021660

ziga pipan

thank you but this does not help. I'll just revert the code to what it was now.

May 12, 2025 at 9:08 am #17021663

ziga pipan

I have a site cloned, please enable private fields again.

May 13, 2025 at 5:01 am #17025056

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

private field reply enabled, thank you!

May 15, 2025 at 4:23 am #17034818

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Thank you for sharing the access details!

what is the URL used instead of wp-admin? At the moment I am not able to view wp-admin or wp-login.php

May 15, 2025 at 8:19 am #17035530

ziga pipan

sorry, it should be /wp-admin now

May 16, 2025 at 5:24 pm #17042979

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

Hi there,

Is this issue happening only with Classic 2 or with other products in the Croatian language?

It is interesting because it works OK in Spanish as well as if I add the Youtube Link via iframe in any other part of the product such as description.

I have also tested doing a duplicate of the defautl language into Croatian and it seems to still not show the video under that specific tab.

is there any custom code that would be causing some sort of issues with the product tabs under Croatian?

The HTML is fully missing from the tab.

Screenshot 2025-05-16 at 10.20.24 AM.png
May 19, 2025 at 10:24 am #17047727

ziga pipan

it only fails to work on this product and I don't know why 🙁

May 20, 2025 at 9:01 pm #17054657

Bobby
WPML Supporter since 04/2015

Languages: English (English )

Timezone: America/Los_Angeles (GMT-07:00)

There is a chance the product is corrupted somehow, what are your results if you create a new product with the same content, does it work OK then?

From our side I am not seeing something specific that would cause this behavior.

let me know your results, please.

May 20, 2025 at 11:10 pm #17054744

ziga pipan

idk, never tired it, cause I have really lots of acf fields 🙁