Saltar navegación

Este hilo está resuelto. Aquí tienes una descripción del problema y la solución.

Problem:
The client was experiencing content duplication on their multilingual site when viewing a translated page. The issue occurred after translating a page that included a header content block with a background image and a title. The content appeared twice on the front end, although it was correct in the page builder.

Solution:
1. The client identified that the header content block was being duplicated along with the page translation, causing the content to appear twice.
2. To resolve the issue, the client created a new header content block in the target language instead of relying on the automatic translation. This prevented the duplication of the header content block.
3. For content headers that include code to handle strings, the client supposed that duplicating the page in another language might not be straightforward due to this complexity.

If you're experiencing a similar issue with content duplication after translating your pages, we recommend creating separate content blocks for each language to ensure that the translations do not cause duplication. If this solution doesn't seem relevant to your situation, please open a new support ticket with us, and we'll be happy to assist you further.

Este es el foro de soporte técnico de WPML, el plugin multilingüe de WordPress.

Todas las personas pueden leerlo pero solo los clientes de WPML pueden ingresar comentarios. El equipo de WPML responde en los foros 6 días a la semana, 22 horas por día.

Etiquetado: 

Este tema contiene 5 respuestas, tiene 2 voces.

Última actualización por fundaciOn-universitaria-europe hace 1 año, 8 meses.

Asistido por: Nigel.

Autor Publicaciones
octubre 10, 2023 a las 10:45 am #14548815

fundaciOn-universitaria-europe

I have a wordpress 6.3.1 and UNCODE as main theme. I installed the plugin yesterday and now i have the issue that when i create a new page for the language i want to add everything seems to be ok but in the view i see the content duplicated. Like if i have div1 and div2 after that i see another time div1 and div2.

In the code is not duplicated only in the view because if I delete the divs duplicated if i go to the view then everything is deleted.

I don't know i there's something i'm doing wrong.

Thank you.

octubre 10, 2023 a las 11:05 am #14548955

Nigel
Partidario de WPML desde 02/2016

Zona horaria: Europe/Madrid (GMT+02:00)

Hi there

Let me see if I can help.

First, the UNCODE theme is compatible with WPML and we don't have any relevant open issues reported for it, so things should work as intended (https://wpml.org/theme/uncode/).

I'm not quite sure I understand the problem you are describing.

You have added WPML to your existing site, and presumably set it up so that it works with some additional languages.

I would expect your workflow to be that you add content in the default language, and then you translate those posts and pages into the other languages.

I'm not sure from your question if that is what you are doing: "when i create a new page for the language i want".

When you say "in the view i see the content duplicated" do you mean that when you visit the post on the front end the content that you added in the back-end editor is duplicated?

And this is on translated pages or on the original default language page?

It would help if you could clarify the workflow so I understand exactly what steps you are taking which produce the problem.

Also, could you please share your debug info in your next reply?

https://wpml.org/es/faq/provide-debug-information-faster-support/

octubre 10, 2023 a las 3:27 pm #14551901

fundaciOn-universitaria-europe

Thank you foryour response. I will try to explain me better.

1 - I go to one page of mi site then i edit in backend mode.
2 - In backend mode edit, i can see at the right the option for translate (image 1)
3 - If I click in this option then next page show the translations and after check i submit the form (image 2).
4 - At this point I have the page in the language i need but here is the problem, when i go the the view i see the content duplicated. (image 3). Is not possible to show all content in one image but all content show 2 times in the view.

If I check the page, in the builder you only see 1 time the content, but in the view your see it duplicated.

Greetings.

wpml3.jpg
wpml2.jpg
wpml.jpg
octubre 10, 2023 a las 3:45 pm #14552217

Nigel
Partidario de WPML desde 02/2016

Zona horaria: Europe/Madrid (GMT+02:00)

OK, now I understand, thanks for the details.

I took a look at the translation file for the page shown in your screenshot that was returned from the translation editor to your site, and it appears to be perfectly normal.

So the issue seems to be when your site receives the translation and processes it.

In which case, could I get access to your site to do some testing to see what's going on?

(I may need to add one or two plugins to help with debugging, and if I can't determine the problem, to take a copy of your site for further testing, if that is acceptable.)

Let me mark your next reply as private so that I can get log-in credentials from you—you may want to create a temporary admin user for me to use that you can later delete. And be sure to have a current backup of your site.

octubre 11, 2023 a las 9:53 am #14557997

fundaciOn-universitaria-europe

Hello again.

If figured out what is the problem.

I have a header content block in every page of the site. This header block have a background image and a header title only.

When i make translation, the page takes the header content block and dont duplicate the background image and make the title translation the thing that happens is that the header block have the same translation of the page and this is why i see content duplicated. If I delete the header content block then the problem is solved. But we don't want to delete the header.

How can we do the translation with the content header to not have this issue?

octubre 11, 2023 a las 10:12 am #14558115

fundaciOn-universitaria-europe

I solved the issue.

If Itake the content header block and then change the language and create the same header content block in the new language then the page is 100% ok with no content duplicated.

The thing is that some content headers have code to take the strings of the headers and i supose that is not possible to duplicate the page in a language with this handicap.

Anyway, the problem is solved.

Thank you for your help.

Greetings.