Skip Navigation

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

Problem:
You are unable to translate pages containing HTML using the WPML Classic Translation Editor, and images are not visible.
Solution:
We recommend following these steps to resolve the issue:
1. Edit the file at

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

2. Replace the code on line 155 from:

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

to:

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

3. Edit the page in the default language.
4. Make a minor edit and update it.
5. Attempt to translate the page again.

If this solution does not apply because it might be outdated or not suitable for your case, 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 issues persist, please open a new support ticket.

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 0 replies, has 1 voice.

Last updated by Osama Mersal 1 month ago.

Assisted by: Osama Mersal.

Author Posts
March 13, 2025 at 8:56 am #16809981

yusufK-2

Background of the issue:
I am trying to translate my pages on my site hidden link using WPML. I am using the Classic Translation Editor.

Symptoms:
I cannot translate my pages because they contain HTML, and the images are not visible.

Questions:
How can I translate pages that contain HTML using WPML?
Why are images not visible in the Classic Translation Editor?

March 14, 2025 at 8:04 am #16814914

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

It is expected that you see HTML inside the Classic Translation Editor and you need to maintain the same markup when translating your pages.

Images will not be displayed in any of our editors.

If you do not wish to translate the HTML I suggest you switch the translation editor option to "Advanced Translation Editor " inside WPML > Settings > Translation Editor.

Advanced Translation Editor:
https://wpml.org/documentation/translating-your-contents/advanced-translation-editor/

Best regards
Andreas

March 14, 2025 at 10:29 am #16815857

yusufK-2

Dear Andreas,

Thank you for your reply. I don't want to use Advanced Translation Editor, its not practic for me. And no you can see the images in clssic translation editor, I cana see it in my previous translations, please see my attached sample. If you changed it and don't give this support in Classic Translation Editor I can understand.

J. Sipahi

4.jpg
March 16, 2025 at 4:23 am #16820988

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I'm Osama from WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please back up your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

March 16, 2025 at 4:37 pm #16821994

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

The login URL redirects to (You don't have permission to access this page). Please share the access details using a username and password, not a login URL.

Best regards,
Osama

March 16, 2025 at 5:05 pm #16822097

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. Please check the following steps:

1- Edit the (wp-content/plugins/sitepress-multilingual-cms/classes/translation-jobs/ExtraFieldDataInEditor.php) file
2- Replate line 155

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

With

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

3- Edit the page in the default language
4- Make a minor edit and update it
5- Translate the page

I tested the above steps with a test page. Please check if it works correctly. (hidden link)

Best regards,
Osama

March 16, 2025 at 5:12 pm #16822102

yusufK-2

Thanks a lot my friend, you solved the issue so quickly, wish you a happy day.

March 16, 2025 at 5:16 pm #16822104

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi Yusuf,

It's great to hear that the issue is fixed. Please don't hesitate to open a new ticket if you face any other issues. We are always happy to help you.

Have a great day! 🙂

Best regards,
Osama