Skip Navigation

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

Problem:
The client reported issues with WPML where languages were mixing on their website's English and Danish versions. Specifically, Danish links were appearing in English pages, and updates to translated versions were reverting to old content. Additionally, the client noted that the 'Edit Translation' page appeared differently after an update.
Solution:
We identified a bug related to the theme's compatibility with WPML. We recommended a workaround involving a modification in the theme's code. The client should locate the file at

/wp-content/themes/themify-ultra/themify/themify-builder/includes/plugin-compat/wpml-translation.php

and find the specific block of code. The modification involves changing the line

ThemifyBuilder_Data_Manager::save_data( $builder_data, $translated_post_id );

to

if (!empty(self::$translations)) { ThemifyBuilder_Data_Manager::save_data( $builder_data, $translated_post_id ); }

. This change prevents the system from updating the front page automatically with incorrect language data.

If this solution does not resolve the issue or seems irrelevant due to updates or different circumstances, we recommend opening a new support ticket. Additionally, it's advisable to check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum 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 24 replies, has 0 voices.

Last updated by Dražen 2 weeks, 2 days ago.

Assisted by: Dražen.

Author Posts
May 14, 2025 at 6:48 am #17030322

hanneO

Hello Drazen,

Yes, I can see, that I can edit backend on the staging site.

I need your help to get through the proces on my main site - step by step, so I dot it correctly.

The other issues still persist though. On the front page, wmpl still mixes languages on the English and Danish version, put Danish links into them - some places, and updates the translated versions with old content as well. As I described in my ticket at the beginning.

It is very importnant, that WMPL don't update the frontpage automatically. I have that the issue a couple of times before, where your colleguaes have looked at it and solved it. Maybe you can see it in my last couple of tickets?

Also there are posts on the English versions, which is translated correctly, but again languages are mixed. When I look at the translation, everything are translated correctly, but not shown. I have found it in theese two posts:

hidden link

In this post the headline and introductory text is in English, but the rest is in Danish

Also this one
hidden link

In this post the introducting is in Danish and the rest is in English. And again all in english if I look at the translated version backend.

So I need you to take a look at this too. There might be other posts - also in Spanish. I haven't been through them all.

After your opdate the page with Edit Tranlation looks very different from what it normally do. Have you changed it in WMPL or?

I have attached some screenshots.

Can you please help me with solutions for this?

May 14, 2025 at 6:55 am #17030360

Dražen
Supporter

Languages: English (English )

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

Hello,

lest step back a second, since you mentioned a lot of things here in your reply.

1) How do you translate your pages? Using which method/steps? Since mixing methods can cause issues.

2) Does the issue happen after specific steps, or just correct translation is not shown on the frontend?

3) When you translate, if you use WPML editor, do you finish up translation 100% and then wait for pencil icon to show for translated page?

Let me know.

Thanks,
Drazen

May 15, 2025 at 1:38 pm #17037151

hanneO

Hello,

1) I have published the Danish version of the frontpage and translated it manually and edit manually on the Spanish and English version. The persons from the support I have spoken to earlier told me, that they have set the page so it wouldn't be overwritten when I update the Danish version. It have worked fine until recently. Then it startet mixing content in lanugages and links again. I don't know if the issue with the plugin have to do with it.

2) The posts I have mentioned, where I found mixed language are translated correctly and have been shown correctly until now. Suddenly the languages is mixed. When I look at the translation editor all is translated but it is not shown. Here are some examples

hidden link

In this the first txt after the headline is in Danish and it should have been in English

In this example the Headline and the intro txt are translated. The rest is in Danish
hidden link

There might be other posts. I haven't been through them all. So they have been corretly shown earlier, but suddenly changed without I have edit the Danish version or the translated

3) Yes, I follow that process

Can you help me fixing that?

Thanks

May 15, 2025 at 1:47 pm #17037164

Dražen
Supporter

Languages: English (English )

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

Hello,

if you have made changes to 2nd language (en) manually by editing the page and added your content like that, then it is expected to have this issue, since we do not recommend mixing methods.

If you are to use manual approach you need to switch to WordPress editor from default language page.

https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

If you are doing translation via WPML editor, try to re-translate the page from WPML > Translation Management and check if that helps fix the issue.

Let me know how it goes.

Regadrs,
Drazen

May 15, 2025 at 2:25 pm #17037404

hanneO

Hello Drazan,

I have set the page as it says in the documentation, it has been set like that since some of your collegues has helped me witth the issue before. It worked for several months, but suddenly it switched again. It didn't even copied from the Danish version of the page, but put old images and links into the layout.

You can see the settings at the screen shot.

So I am stille confused about it and how to solve it?

Best,

Hanne

Skærmbillede 2025-05-15 kl. 16.00.40.png
May 15, 2025 at 2:54 pm #17037556

hanneO

I retranslated the posts I linked too. And it fixed the issues. So now it is only the frontpage I need help to fix

May 16, 2025 at 4:46 am #17039287

Dražen
Supporter

Languages: English (English )

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

Hello Hanne,

great, glad to hear it works fine now.

So the solution is to keep WordPress editor switch if you are going do do translation manual, otherwise you can have issue with content being overwritten.

I am not sure for frontage do you have same issue, if you do, please make sure to do the switch and adjust the translated page accordingly.

Regards,
Drazen

May 16, 2025 at 6:36 am #17039449

hanneO

Hello Drazen,

I do have the same issue on the front page, even though the Word Press editor is switched on - and it has been all the time. I did that months ago, when another supporter told me to do so. As I wrote earlier, it has worked for a long time, but now is doesn't work anymore. It keeps mixing the links and languages.

So how can I fix that?

May 16, 2025 at 9:25 am #17040495

Dražen
Supporter

Languages: English (English )

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

Hello,

okay, lets clear things up a bit.

If you make a change to 2nd language and fix the links and content, what happens? Does it not save and show correct or?

It would be good for you to share me video of your steps and what you do and then showing me issue, you can use tool like LOOM.

Then I can try the same steps adn see why changes are not being saved.

Regadrs,
Drazen

May 16, 2025 at 9:30 am #17040604

hanneO

Hello Drazen,

The issues doen't appear when I edit the page or link in second language. After I have done that, everything works fine.

The strange thing about this issue, it that it appears out of the blue after days, weeks, months. Suddenly the front page is a mix og languages, layout parts and txt without I have edited anything. So it seems to live its own life.

This time, I haven't had problems for months. But out of the blue it changed. So it doesn't help, that I send you a video. Because it works fine, when I edit. I happens for some reason out of the blue.

May 16, 2025 at 9:35 am #17040673

Dražen
Supporter

Languages: English (English )

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

Hello,

I understand, best would be to keep track and see if any steps or specific causes problem, since it would be difficult for me to check and debug issue if we do not know how it happens, or do not have any steps to reproduce it.

You can also enable WordPress revisions, so you can easily revert to correct page version:

- https://wordpress.org/documentation/article/revisions/
- hidden link

Hope you understand.

Regards,
Drazen

May 16, 2025 at 9:51 am #17040752

hanneO

Hello Drazen,

The thing is, that the sudden changes and mix doesn't show in the revisions, so it doesn't help me.

I am not sure, what you suggest me to track, as it doesn't happens when I edit. So I have no idea how and when.

It has been the same issue 2 times before, where your collegaues has been looking into it.

May 16, 2025 at 10:12 am #17040919

hanneO

Hello again Drazen,

So it actually just happened, that the translated pages ended up mixed again.

What I did:

1) I edited a layout part in the Danish version in Themify builder frontend. A part I only want on the Danish version of the page.
2) The English and Spanish version updated automatically to old layout parts (and not the one I just edited) and mixed links and language

I have attached screen shots so you can see it

Skærmbillede 2025-05-16 kl. 12.07.55.png
May 16, 2025 at 10:27 am #17041047

hanneO

I could only ad one screen shot so here are the rest.

1. Here is what I do after checking correct settings backend. I edit in builder frontend.

2: Here is the results on the translated page. A layout part I did not edit and which is old and outdated shows up together with mixed language and Danish link

2.jpg
1.jpg
May 16, 2025 at 10:36 am #17041098

hanneO

Here you have a video of what I have done while editing the Danish version. And it is set to wordpress editor backend

hidden link