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

Last updated by Jasmin 5 months ago.

Assigned support staff: Alejandro.

Author Posts
April 23, 2021 at 2:49 pm #8610507


To follow up on this thread:

Gravity Forms support still turns me on the WPML side.

Here are the languages the form works and doesn't work for:
> Don't works: Arabic, Bulgarian, Czech, Dansk, Deutch, Filipino, Hebrew, Indonesian, Italian, Korean, Lietuvos, Mongolian, Nederlands, Persian, Polish, Portugues, Romana, Russian, Slovenian, Slovak, Spanish, Swedish
> Works: Chinese S, Chinese T, English, French, Japanese, Thai

I followed all of GF's guidelines to keep the form out of the cache. I have also placed rules in Cloudflare.

I compared the html code of the page in English and in Italian. The main differences are:
English: <script type="text/javascript">
Italian: <script type="9f21fdc8e06e52caf5efc6a4-text/javascript">

What is the 9f21fdc8e06e52caf5efc6a4- ?

I would like to know why the form works in some languages and not in others.

hidden link
hidden link

Thank you

April 24, 2021 at 11:53 am #8614309


Languages: English (English ) Spanish (Español ) Italian (Italiano )

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

Hello there!

This is indeed weird and i couldn't recreate the problem on a clena installation. that code is probably something that should be somewhere else in the XLIFF, it sound like an ID from an XML file tag.

However that is not normal and as i mentioned before, it doesn't seem to happen on my end.

Do you have a staging site that i can check for you?

If you do, please do the following:

- In the staging site, disable the theme and enable "twentytwenty"
- Disable the plugins except WPML (+ its addons) and gravity forms
- Try to translate the form again (and tell me the name of the form)

Does the problem keep happening?

April 26, 2021 at 3:28 pm #8627605


Hello, We finally fixed the problem with this code added in functions.php. Now it works well in all languages of our website.

add_filter( 'script_loader_tag', function ( $tag, $handle ) {
if ( 'jquery-core' === $handle ) {
return str_replace( "type='text/javascript' src", "data-cfasync='false' src", $tag );
} else {
return $tag;
}, 10, 2 );

April 26, 2021 at 3:29 pm #8627611


My issue is resolved now. Thank you!