Skip to content Skip to sidebar

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

Problem:
The client is trying to change the website language to Indonesian but is encountering issues with some endpoints not being correctly translated, which is causing problems when switching languages.
Solution:
We recommend reviewing the translations of the endpoints to ensure they are in the correct format and do not contain spaces. Specifically, the string causing the issue should be translated as follows:

msgid "lost-password"<br />msgstr "kata sandi yang hilang"

It is important to use the correct format and avoid spaces. For example, the problematic string:

msgid "wc/file/transient"<br />msgstr "wc/file/transien"

should be translated as:

msgid "wc/file/transient"<br />msgstr "wc/file/transient"

If after following these steps the issue persists, or if this solution becomes outdated or irrelevant to your case, 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 necessary, please open a new support ticket in the WPML support forum.

100% of people find this useful.

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 9 replies, has 3 voices.

Last updated by Dražen 1 year, 6 months ago.

Assisted by: Dražen.

Author Posts
March 30, 2024 at 4:24 pm #15466500

dewic

Tell us what you are trying to do?
Change language to Indonesia by switcinng

Is there any documentation that you are following?

Is there a similar example that we can see?
hidden link
hidden link
user: demo password: demo1234

What is the link to your site?
hidden link
user: demo password: demo1234

page not found.png
March 30, 2024 at 10:11 pm #15466874

Mohamed Sayed

Hi there,
Thanks for contacting WPML support.

1. Please increase the WordPress Memory Limit. According to your Debug.info, the WP memory limit needs to be increased. PHP memory is fine, but WordPress uses 40Mb as default. Minimum requirements for WPML is 128Mb. (Kindly check this page https://wpml.org/home/minimum-requirements/)

You can increase it by adding the following code in your wp-config.php file, right before the /* That’s all, stop editing! Happy publishing. */ line:

/** Memory Limit */
define('WP_MEMORY_LIMIT', '256M');
define( 'WP_MAX_MEMORY_LIMIT', '256M' );

2. Please go to Pages > All Pages, and make sure the translation is complete (Shows a pencil icon).

3. If the translation is complete, please create a full backup of the database and website then go to WPML > Support > Troubleshooting page and click the following:

- Clear the Cache in WPML
- Remove ghost entries from the translation tables
- Fix element_type collation
- Fix WPML table collation
- Set language information
- Fix post type assignment for translations

Let me know please if that helps.

Kind regards,
Mohamed

March 31, 2024 at 4:28 am #15467032

dewic

Hi Mohamed,

I have already done the instructions, but unfortunately still have issues.
Any further action for solve this issue?

Regards,

March 31, 2024 at 10:04 am #15467197

Mohamed Sayed

I would need to request temporary access (WP-Admin) to investigate the issue further.
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 first❌

✙ 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.

If you don't see the form below, please don't add your credentials as they will be publicly exposed:
hidden link

Privacy and Security when Providing Debug Information for Support:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

Thanks for your cooperation

April 1, 2024 at 8:32 am #15468429

Mohamed Sayed

I checked the site but I can't find more details, but I see that the issue happens with all the Indonesian pages.

To best troubleshoot the issue, kindly create a copy of your site and provide a link to download it. You can use the Duplicator plugin (https://wordpress.org/plugins/duplicator/) or the All-in-One WP Migration plugin (https://wordpress.org/plugins/all-in-one-wp-migration/).

The plugin will create a package file that you can download then upload again to Google Drive or Dropbox and share the download link in the next reply which I have marked as private. I'll import it to debug the issue locally, then escalate it to our 2nd tier support team for further investigation if needed.

Alternatively, you can grant me permission to install one of the above plugins and get the copy from my side.

Please check here for more details: https://wpml.org/faq/provide-supporters-copy-site/

Thanks for your cooperation.

April 2, 2024 at 2:02 am #15470964

dewic

Hey,
I already install https://wordpress.org/plugins/all-in-one-wp-migration

please download the backup file from there

backup.png
April 2, 2024 at 1:36 pm #15473182

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back.

I have checked your website and escalated to our 2nd tier for further check, it seems the issue happens only when WC is enabled along with WPML.

I will update you soon on any news.

Regards,
Drazen

April 3, 2024 at 6:45 am #15476113

Dražen
Supporter

Languages: English (English )

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

Hello,

we checked and it seems issue is caused by some of the endpoints not being correctly translated, for example:

example :
msgid "lost-password"
msgstr "kata sandi yang hilang"

I advise going over this and fixing it, it needs to have format and not spaces in between.

The issue causing problems for you is in string:

msgid "wc/file/transient"
msgstr "wc/file/transien"

If you translate it to "wc/file/transien" - then there is a problem.
If you translate it to "wc/file/transient" - then there is no problem

Regards,
Drazen

April 3, 2024 at 3:07 pm #15479254

dewic

Does it affect another page? my translate is only work on home page,

why does this not work? this is only 1 word translate!
hidden link
hidden link

please test and find the exactly issue

April 4, 2024 at 6:22 am #15481008

Dražen
Supporter

Languages: English (English )

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

Hello,

as explained it will affect all of your pages, since translations of these endpoints are not correct.

Please go to WPML > String translation, filter WP-Endpoints and delete all of them or make sure you have added correct translation, without any spaces and text is correct.

Regards,
Drazen