Skip Navigation

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

Problem:
The client reported that texts in the fields for the English language on an Advanced Custom Fields options page changed to Russian unexpectedly. Other languages displayed correctly.

Solution:
We attempted to reproduce the issue by:
1. Opening the options page in the default English language.
2. Changing some section texts back to English and saving.
3. Switching to Russian to check if the changes were overwritten and then saving.
4. Switching back to English to confirm if the changes persisted.

Since the issue could not be reproduced, we suggested that the client monitor the site closely and isolate the issue on a staging site if it occurs again. It's important to note any special activities or workflows that might influence the language settings.

If this solution does not resolve your issue, or if it seems outdated or irrelevant to your case, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket 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 14 replies, has 2 voices.

Last updated by Waqas Bin Hasan 3 months ago.

Assisted by: Waqas Bin Hasan.

Author Posts
August 8, 2024 at 8:01 am #16051020

Martynas.V

Background of the issue:
We have options page created with Advanced custom fields. One day all texts in the fields for English language changed to Russian texts: hidden link

All other languages show correct texts. Is there a way to set correct texts again without writing every fields?

Symptoms:

Questions:

August 8, 2024 at 12:25 pm #16052638

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for contacting the support.

Before proceeding further, I'll recommend to fix the following:

IMPORTANT: Please take full backup of your website and database beforehand. 

It is highly advised to try this on a staging/dev site first, so your live website isn't compromised.

1) Update WordPress, WPML and Plugins
- Update WordPress to the latest version.
- Update WPML plugins to the latest versions.
- Update all other plugins specially the ones involved in the said process, to the latest versions.
- Update theme to the latest version if needed.

2) Then fix “WP Memory Limit” to at least 128MB while 256MB is recommended. See https://wpml.org/home/minimum-requirements/ for detailed information. You can set this in your wp-config.php file by adding following code:

{code}
define( 'WP_MEMORY_LIMIT', '128M' );
define( 'WP_MAX_MEMORY_LIMIT', '256M' );
{/code}

Remember to add these lines before the line where it says:

/* That's all, stop editing! Happy publishing. */ 

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.

Then clear all caches and check again.

Please let me know and I'll try my best to help you further on the matter.

Regards.

August 8, 2024 at 12:32 pm #16052653

Martynas.V

Hello,

can you explain how updating plugins will help restore texts?

WP memory limit is 128M. Nothing changed.

P.S. We have a complex website with a lot of plugins and it is not an easy task to do.

August 9, 2024 at 6:12 am #16054907

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Well new plugins bring bugs known to old versions, as well as, improvements.

Unfortunately you're using very older versions and we are not able to provide support for that because several known and related issues have been fixed since then.

I'm not sure if this 'll "bring back" your text, but at-least you'll be able to fix your content and observe that the same issue does not happen again.

And if it still does, we'd gladly help investigating and fixing for the good.

I understand that you may have a complex setup, however, that's why a staging or a dev site is always good to have. So whenever you run into an issue or want to try out new features/fixes, you can do it safely without compromising the live site.

August 12, 2024 at 6:16 am #16060563

Martynas.V

Hello,

I will try to do update and let you know after.

August 12, 2024 at 7:27 am #16060828

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sure, please take your time and let me know your findings when ready, thanks.

August 13, 2024 at 7:54 am #16064928

Martynas.V

Hello,

website is update, memory limit ok. Problem still the same. I can give you staging website logins if you make a private reply.

August 13, 2024 at 1:12 pm #16066567

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I need to take a closer look at your site. So I request temporary access (WP-Admin and FTP), preferably to a test site where the problem has been replicated.

Your next answer will be private, to share this information safely.

Also provide detailed steps to reproduce the issue and links to pages in the admin and on the frontend.

IMPORTANT: Please take a complete backup of the site to avoid data loss. I may need to activate/deactivate plugins also.

See https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/ for details on privacy and security.

August 15, 2024 at 5:56 am #16072995

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the access, I was able to observe the issue.

Looks like that ACF options page is theme dependent. And theme is a custom theme and is heavily customized. Unfortunately that custom coding is out of scope of this forum.

However, I'd love to help you about it, if you can switch to 2024 (standard WordPress) theme and make that Options page (hidden link) accessible and can reproduce the said issue.

Please let me know and I'll try my best to help you further on the matter.

August 16, 2024 at 6:52 am #16076985

Martynas.V

Hello,

options page is now available at twenty twenty four theme. The problem is still the same.

August 16, 2024 at 12:24 pm #16078252

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

I tried to reproduce the issue but looks like it is working fine. I tried following steps:

- Opened options page in default language English (hidden link).
- Changed a few top sections text back to English, i.e. Equipment, Software, Services and Useful pages.
- Saved.
- Switched to Russian from top admin bar so that options page content is loaded in Russian. I could see there is Russian text.
- Saved.
- Switched back to English and my changes were still there (means weren't overwritten by Russian text).
- Repeated these steps for a few times and everything looks as expected.

Can you try the way you do changes in this page and see if you can reproduce the issue? If yes, please take notes of the steps so I can try again.

August 16, 2024 at 1:19 pm #16078391

Martynas.V

There is no way to know what caused it thats why I opened the ticket. It seems like one day it just changed to russian. Some fields.

August 19, 2024 at 5:45 am #16082104

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Thank you for the updates.

Well in this case, I'll recommend keeping a close eye on the site and as soon as it happens again, isolate it on a staging/dev site before doing anything further. While, taking notes of any special activity or workflow.

As long as I've observed and checked, I couldn't find anything suspicious. It'd be great if it can be reproduced so we can investigate accordingly. So far it looks like that if someone (or a process which may be caused by a conflict) added the texts while not being aware of the selected language (from top admin).

August 19, 2024 at 6:12 am #16082120

Martynas.V

I think you can close this ticket. There is no way to check it when it happens or to know why.

August 19, 2024 at 7:14 am #16082173

Waqas Bin Hasan
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Sure, the ticket 'll be closed automatically in a week or two without any activity. However, in the meanwhile if you tend to find again and isolate that issue (as mentioned in previous message), you can reply to this ticket to continue further.