Skip Navigation

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

Problem:
The Visual tab in the Classic Translation Editor is white and not displaying content in some posts.
Solution:
If you're experiencing this issue, we recommend trying the following steps:
1- Edit the file at

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

2- Replace the line at 155 from:

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

to:

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

3- Update the iFrame page and re-translate it.

This solution might be outdated or not applicable to 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 the issue persists, 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.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by Osama Mersal 12 months ago.

Assisted by: Osama Mersal.

Author Posts
April 20, 2024 at 12:52 pm #15546124

yusufK-2

Visual tab is white and not showing in Classic Translation Editor. The problem occurs in some posts, not all of them. I checked the following potential solutions but non of them fixed;

1- solutions suggested here; https://wpml.org/errata/visual-tab-in-classic-translation-editor-is-not-showing-contents-after-update-to-wordpress-5-6/

2- I cleaned all caches, from wpml, from browsers, database

3- I tried in different browsers

4- I runned most of the troubleshooting options in WP > Wpml > Support

5- I uninstalled all the plugins except wpml and checked if the issue comes from a plugin

6- I uninstalled and removed all wpml plugins and download them from the beginning

Thank you,

Y. Sipahi

April 20, 2024 at 2:04 pm #15546166

yusufK-2

Hi again, I found out the reason. When I removed the embeeded google map script from the page the issue is disappeared. And now can you offer me a solution to add it again with secure, is there any way? Thank you.

April 21, 2024 at 12:40 pm #15547292

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Y. Sipahi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

Please log in to this sandbox site and try to replicate the issue. (hidden link)

If the issue is reproducible, please let me know the steps to reproduce it so I can consult our second-tier support team.

Best regards,
Osama

April 24, 2024 at 7:10 pm #15562577

yusufK-2

Thank you, I tried but failed because I am not so familiar using blocks. I am using classic editor and having the issue in a classic editor page. Thank you

April 25, 2024 at 8:17 am #15563863

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi Y. Sipahi,

I was able to replicate the issue on the sandbox site. Thanks for your help.

I've consulted our 2nd tier support team regarding this issue and will update you as soon as I get their reply.

Best regards,
Osama

April 29, 2024 at 9:37 am #15576033

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Thanks for your patience. The visual mode is a TinyMCE, and the iframe tag is not allowed there.

In order to add support for it, you need to add it manually using custom code. Please check this guide. (https://stackoverflow.com/questions/5220754/is-there-a-way-to-be-able-to-insert-iframe-in-tinymce)

Alternatively, you can use a plugin called (Iframe), and add the maps iframe as a shortcode.

I tried the 2nd approach on the sandbox site, and it works correctly. Kindly check this post and try to translate it. (hidden link)

Best regards,
Osama

May 9, 2024 at 8:08 am #15609331

Osama Mersal
WPML Supporter since 02/2020

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

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

Hi,

Our 2nd tier support team has found another workaround. Please check the following steps:

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

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

With

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

3- Update the iFrame page and re-translate it

Kindly let me know if the above steps fixed the issue.

Best regards,
Osama