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

Last updated by Lucas Vidal de Andrade 1 year, 1 month ago.

Assisted by: Lucas Vidal de Andrade.

Author Posts
April 10, 2024 at 11:11 am #15504114

lilyB

I am trying to: after updating all my plugins and theme I noticed the translated pages were a mix of Italian (translated language) & English (original language).
I tried using string translation and it still switches back to English randomly, I tried using the WPML editor or the WordPress editor for pages but the problem still occurs.

Link to a page where the issue can be seen: hidden link

I expected to see: content in Italian that I had added to the page

Instead, I got: a mix of English blocks & Italian blocks. In the editor the blocks say "This block was translated via WPML..." I even tried deleting & re-creating blocks on the Italian page but they just get overwritten again with the English blocks.

I tried using advanced editor & classic editor in the WPML settings, but that doesn't resolve the problem either.

Edit-Page-“Restaurants-bars”-‹-Il-San-Pietro-—-WordPress.png
Edit-Page-“Ristorazione”-‹-Il-San-Pietro-—-WordPress.png
April 11, 2024 at 11:18 am #15508746

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

It might be that this is causing by the memory. . I checked your debug info and noticed that your website doesn't have the minimum memory required for WPML to work. WPML requires a memory limit of at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set WP Memory Limit in your wp-config.php file by adding the following code:

define( 'WP_MEMORY_LIMIT', '256M' );
define( 'WP_MAX_MEMORY_LIMIT', '512M' );

See:

https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php

for details. Increasing WP Memory may help improve the performance and sometimes also help resolving such issues. Let me know if that solves it. Please, also make sure to empty all caches before checking the content, as it might as well influence that.

April 11, 2024 at 1:09 pm #15509473

lilyB

Thanks for replying. I increased the memory limits and turned off any cache I could find but the problem still occurs. As soon as I modify something on the English page, the Italian page content switches to English on some blocks.

April 11, 2024 at 4:41 pm #15510511

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for sharing. Since you are using manual translation, it's possible that the translation is a duplicate of the original. If that's the case, it's expected that the translation gets overwritten by the original, when the original content is updated.

Please refer to this documentation for more details:
https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/

If the document is a duplicate, you should be able to see the "Translate independently" option in the Language options inside the page. See attached image. Let me know if that solves it for you.

translate-independently.png
April 11, 2024 at 5:57 pm #15510685

lilyB

I followed those instructions but the issue persists. I don't see a "translate independently" button under languages.

Edit-Page-“Ristorazione”-‹-Il-San-Pietro-—-WordPress.png
April 12, 2024 at 11:40 am #15512721

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

It seems that the problem is something else. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to a testing site where the issue is replicated.

You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT

- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:

hidden link

April 12, 2024 at 3:57 pm #15513501

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

Thank you for sharing the access. I was checking your website in a local copy, and was able to fix the issue in the page you sent as an example. There was a corrupted image on the page that when I deleted, the translation worked again. Please make a full website Backup and follow these steps:

1. Delete the image in the original version of the page (see image attached) and save;
2. In the right column, in the Language section, change your translation option to "WPML Translation Editor", and select only that page;
3. Make a small change on the page's text and save;
4. Go to Pages and click on the gear icon to edit the translation of "Restaurants & Bars";

5. Translate the content normally;

You can add a new image element, if you wish. It's important that this is specific block is completely deleted. Please let me know if that solves the issue for you as well. May that not be the case, I'll be here to further support you 🙂

Edit Page _Restaurants _ bars_ _ Il San Pietro _ WordPress.jpeg
April 15, 2024 at 8:34 am #15518038

lilyB

Deleting the image in the original page seems to have fixed the problem.
Thanks for your help!

April 15, 2024 at 9:42 am #15518696

lilyB

Sorry, I thought the problem was solved but it isn't.

Everything seemed fine except I noticed that the "VIEW MORE" in the toolset view was in english.
I went into WPML string translation & translated the button there (see screencap).
Suddenly the page content on the Italian page switched back into English and the button in the view lost it's styling (see screencap).

So translating a string in the view seems to be somehow causing the issue...

String-Translation-‹-Il-San-Pietro-—-WordPress.jpg
Ristorazione-Il-San-Pietro.jpg
April 15, 2024 at 3:35 pm #15521187

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I checked your website again, and saw that you uploaded the image using dynamic sources. That seems to be what's causing the issue.

Please delete the dynamic source image (the one that has the red outline) and upload the image via the regular image element from WordPress. See image attached. Do that both in the original and in the translation.

Please let me know if it works that way.

Edit Page _Restaurants _ bars_ _ Il San Pietro _ WordPress · 12.30pm · 04-15.jpeg
April 15, 2024 at 4:07 pm #15521318

lilyB

I don't think it's just the Toolset image that's causing the problem.
I tried putting normal WordPress images in this page for example: hidden link but as soon as I save the English page the content still switches to English on the Italian page.

April 15, 2024 at 6:25 pm #15521600

Lucas Vidal de Andrade
WPML Supporter since 11/2023

Languages: English (English ) Spanish (Español ) German (Deutsch ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

I'm sorry that didn't resolve your issue. I checked the example you sent, made a small change to the English version, and the Italian version stayed as it is. So I can better understand the issue, could you please send me a video where I can see the error?

Loom is a great free tool for screen recording, in case you want a recommendation 🙂

April 15, 2024 at 6:33 pm #15521606

lilyB

I tried again and this time the Italian isn't changing!
It's so strange, as earlier I tested a bunch of times and every time saving the English page would change the Italian content.
Not sure how it got fixed but I'm gonna mark it as resolved & fingers crossed it'll stay that way 🙂
Thanks again for your help.