Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 9:00 – 18:00 - -
- - - - - - -

Supporter timezone: Africa/Cairo (GMT+02:00)

This topic contains 26 replies, has 1 voice.

Last updated by Osama Mersal 1 week, 6 days ago.

Assisted by: Osama Mersal.

Author Posts
January 12, 2026 at 1:41 pm #17721689

Natalie Wood

I have just done another minor edit and the page has corrupted again

It is the html that is getting corrupted

This code

<div class="gb-text gb-text-ace35c65 sav-divider sav-centre"></div>
<p class="gb-text gb-text-457dd1ca sav-intro-text">Herunder kan du se rapporterne, der kan fremstilles på baggrund af testene Wave Professional Styles og Wave Focus Styles.</p>

becomes this:

<div class="gb-text gb-text-ace35c65 sav-divider sav-centre">

<p class="gb-text gb-text-457dd1ca sav-intro-text">Herunder kan du se rapporterne, der kan fremstilles på baggrund af testene Wave Professional Styles og Wave Focus Styles.</p>

See how the closing div is missing above

January 12, 2026 at 1:43 pm #17721691

Natalie Wood

please tell me what attributes you removed

January 12, 2026 at 1:49 pm #17721697

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English )

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

Hi,

Please check the page now. Kindly check the attached screenshot to see the attributes.

Note: The screenshot is from the Danish version of the page.

Best regards,
Osama

2026-01-12_15-46-32.png
January 12, 2026 at 1:59 pm #17721780

Natalie Wood

Thanks

why should I need to change the css on the Danish page?

Please look at the Danish page now (don't edit)

You can see it is corrupted

The HTML is wrong as per this reply of mine:
https://wpml.org/forums/topic/updating-translation-causes-issues/?paged=2#post-17721691

Why is that happening?

January 12, 2026 at 2:01 pm #17721782

Natalie Wood

sorry - this reply
https://wpml.org/forums/topic/updating-translation-causes-issues/?paged=2#post-17721689

January 12, 2026 at 2:17 pm #17721843

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English )

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

Hi,

Thanks for your update. I see the HTML difference in the closing div tag.

Please log in to this hidden link">sandbox site and try to replicate the issue.

Note: The sandbox is configured with WPML and GeneratePress.

If the issue is hidden link">replicable, please let me know so I can consult our compatibility team.

Best regards,
Osama

January 12, 2026 at 3:25 pm #17722140

Natalie Wood

I'm sorry I can't replicate the same error in the sandbox site

There are a lot of plugins / things missing though

I can't add any custom css, or js which the page has, nor the gravity form

I'm happy for you to take a duplicator copy from my dev site to look at

what I can reproduce though is that when you edit the Danish page directly in WordPress (not through translation) some of the elements show as having invalid content - as per image below.

I have also uploaded an image of what you see if you click 'resolve'
If shows nested <a> tags which is not what the html is in the English page

If you inspect the html of that element on the front end on the English page it is:

hidden link">FIND OUT MORE

on the Danish page it is

hidden link">hidden link">FIND UD AF MERE

so html is getting corrupted in translation

Could it be the marking of the link in the translation that is causing issues there?

resolve.png
invalid-content.png
January 13, 2026 at 10:07 am #17724392

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English )

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

Hi,

Thanks for your reply. I checked why the slider isn't working on the sandbox site and found that you have 3 custom JS and CSS elements in Appearance -> Elements, so I copied them to the sandbox site.

Please check whether the issue is reproducible on the hidden link">sandbox site now.

Thanks for your cooperation

Best regards,
Osama

January 13, 2026 at 1:05 pm #17725459

Natalie Wood

Hi Osama

Thanks for your continued help.

No I can't reproduce it in the sandbox site, but it really isn't the same environment.

I have continued to test in my dev environment.

I have created a minimal page that you can reliably reproduce the error
english
hidden link
danish
hidden link

The issue is the divider line which is a div with no text content

If I look at the code in the posts table for the english and the danish posts of this page I can see the difference in the code which is shown in the two images below:
english-div.png and danish-div.png

See how the english ends with a proper closing div but the danish ends with a just ' />'

The browser doesn't render the danish correctly - it leaves off the closing div
If you open the danish page in the editor then the editor seems to 'auto correct' the closing slash to a proper closing div

So the translation is returning the html with a '/>' on the end instead of a proper closing div

If I actually put text in the div then the translation works correctly and returns with a proper closing div

I have tried this page in the sandbox site but it doesn't cause the error.

So it is odd that the ATE behaves differently on my site and the sandbox site.

I'm hoping this is enough info for your devs to be able to find the problem. To me it seems like an html parse error caused by no text/content in the div.

danish-div.png
english-div.png
January 13, 2026 at 1:39 pm #17725810

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English )

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

Hi,

Thanks for your update. I've consulted our 2nd-tier support team and will update you as soon as I receive a response.

Thanks for your cooperation and patience.

Best regards,
Osama

January 14, 2026 at 2:51 am #17727712

Natalie Wood

Thanks Osama

Just one piece of extra info, someone else had a similar issue with a closing div tag being replaced by '/>' in the translated page

More information here
https://wordpress.org/support/topic/wpml-ate-seems-to-break-block-html-self-closing-english-page-layout-co/

and here

https://wpml.org/de/forums/topic/wpml-breaks-layout-on-translated-pages/

January 14, 2026 at 8:19 am #17728005

Osama Mersal
WPML Supporter since 02/2020

Languages: English (English )

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

Hi,

Our dev team is aware of the issue, and it will be fixed in the next ATE update.

Currently, the workaround is to manually add the closing div tag.

Thanks,
Osama