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 1 reply, has 2 voices.

Last updated by Long Nguyen 1 year, 2 months ago.

Assisted by: Long Nguyen.

Author Posts
October 30, 2023 at 5:48 am #14688075

sergeyD-7

I am using latest WPML and latest Newspaper theme.

When trying to add a page to translation queue, I get the following error:

WPML cannot send some of the content to translation
Some of the content that you selected for translation includes fields that are encoded. Translators will not be able to work on this kind of content, so we removed it from the job.

Наши контакты: There are base64 encoded fields in this document
vc_raw_html: content: JTNDaWZyYW1lJTIwc3JjJTNEJTIyaHR0cHMlM0ElM

I have modified vc_raw_html in XML configuration as follows below. But it does not help.

<shortcode>
<tag>vc_raw_html</tag>
<attributes>
<attribute encoding="base64">content</attribute>
</attributes>
</shortcode>

Am I doing something in the wrong way?

This base64 encoding does not let me live a normal life as I have to dig inside the page raw html every time I face this issue.

Also, there are some fields that are base64 encoded in Cloud Templates but not encoded in Pages. So every time switch translating from page to template and vice versa, I have to modify the XML file.

I am a bit tired of this.

Is there an option to let WPML just pass through these base64 encoded fields? At least I would be able to translate it using a free online encoder/decoder. But for some reason WPML just blocks these fields and it wants me to do some "debugging" and "coding" every time.

In general it is strange that WPML detected a base64 encoded field and it still needs me to manually tell him it is base64. But you've already detected that it is base64! 🙂

Screenshot_38.jpg
Screenshot_39.jpg
October 31, 2023 at 4:40 am #14696499

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Sergey,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

Please try the custom XML code below:

<shortcode>
<tag>vc_raw_html</tag>
<attributes>
<attribute raw-html="1">content</attribute>
</attributes>
</shortcode>

or this one

<shortcode>
<tag raw-html="1">vc_raw_html</tag>
</shortcode>

Then edit the page > Make a small change to the content > Save > Send the page to translation again and see if it helps.

If not, please try to replicate the issue on a sandbox site, I will take a look. You can login directly with this link hidden link

Look forward to your reply.
Thanks

November 3, 2023 at 9:49 am #14724149

sergeyD-7

Hello,
Thanks for your support.
I did not try your method. But I have created a translation page using WP Editor. Then I manually adited it in another language.
I will try your method with the next page later. Thank you.