Skip Navigation

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

Problem:
The client was experiencing an issue where parts of a page were not translated, even after translating them in String Translation, as they still appeared in the default language.
Solution:
We resolved the issue by taking the following steps:
1. We created a

404.php

file in the child theme.
2. We made slight changes to the code.
3. We deleted the

wpml_st_upgrade_in_progress

key from the

wp_options

table.
4. We translated the strings again.

We then asked the client to check if the translated strings were displaying correctly.

Please note that this solution might be irrelevant due to it being outdated or not applicable to your case. If you're still facing issues, we highly recommend checking the related 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 with us.

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

Last updated by Osama Mersal 2 months ago.

Assisted by: Osama Mersal.

Author Posts
February 27, 2024 at 11:41 am #15348933

sergeyS-14

some part of the page is not translated...

I translate those in String Translate, but on the page it's still in the default language

February 27, 2024 at 11:53 am #15348973

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

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

Hi,

1) I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I would need your permission to de-activate and re-activate the Plugins and the Theme and change configurations on the site. This is also a reason the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

2) Could you please share your Debug information with me?
You can read a detailed explanation about it here. (http://wpml.org/faq/provide-debug-information-faster-support)
The debug info will give me a lot of information about how your site is configured.

Best regards,
Osama

February 28, 2024 at 4:00 pm #15354934

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

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

Hi,

Thanks for the access details. I checked the issue and was able to fix it by the following steps:

1- Create a "404.php" file in the child theme
2- Change the code slightly
3- Delete the "wpml_st_upgrade_in_progress" key from the wp_options table
4- Translate the strings

Please check if the translated strings work correctly. (hidden link)

Best regards,
Osama

February 29, 2024 at 12:49 pm #15358089

sergeyS-14

So the must important is 3- Delete the "wpml_st_upgrade_in_progress" key from the wp_options table, right?

Looks like i dont have this entry in db.... are you sure this is the right key?

Captura de pantalla 2024-02-29 134854.jpg
February 29, 2024 at 1:19 pm #15358338

sergeyS-14

I found a solution here:

https://wpml.org/forums/topic/string-translation-not-working-for-some-admin-strings-checkout/

i added this to functions.php

add_action('init', function (){
delete_transient('wpml_st_upgrade_in_progress');
});

Any way why is this happens? Is this WPML or WordPress cache problem?

February 29, 2024 at 1:22 pm #15358355

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

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

Hi,

Yes, it's a caching issue. It's great to hear that the issue is fixed 🙂 . Please don't hesitate to open a new ticket if you face any other issues. We are always happy to help you.

Have a great day!

Best regards,
Osama

sergeyS-14 confirmed that the issue was resolved on 2024-02-29 13:19:14.
This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.