Skip Navigation

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

Problem:
The client was experiencing a 6-second delay when navigating through the wp-admin pages on a localhost WordPress setup with WPML installed. The client had blocked

ate.wpml.org

in their

/etc/hosts

file to avoid this delay and was inquiring about the necessity of API calls to

ate.wpml.org

and the language mapping step.

Solution:
1. We recommended updating the WPML plugin to the latest version, 4.6.8.
2. After updating, we advised the client to navigate to WPML > Languages > Site languages > Edit languages, select the language mapping for the available languages, and save the changes.
3. This step is necessary because language mapping is used when utilizing the Advanced Translation Editor (ATE) and automatic translation. WPML checks the language mapping on the site, and if there is an issue, it sends a request to our server when ATE is activated and checks the language mapping.
4. By re-saving the language mapping, the issue was resolved, and the client no longer observed the API calls to

ate.wpml.org

.
5. If the client does not require ATE features, including automatic translation, we confirmed that using the WPML Classic Translation Editor is the correct approach, which also prevents requests to our server.

For further details on language mapping, please refer to our documentation: Using Automatic Translation with Custom Languages.

If this solution doesn't look relevant to your issue, 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 Long Nguyen 10 months, 2 weeks ago.

Assisted by: Long Nguyen.

Author Posts
January 3, 2024 at 6:03 am #15145222

Matteo Canever

I am trying to: use wordrpess wp-admin with WPML in a localhost wordpress for use in development

Link to a page where the issue can be seen: See attached screenshot

I expected to see: not 6 seconds for page inside wp-admin

Instead, I got: 6 seconds wait per page inside wp-admin
So what I do to avoid the 6 seconds wait is to block ate.wpml.org by adding an entry in /etct/hosts file
Mainly I would want to understand why would you need to always do an API call to ate.wpml.org which could cause a 6 seconds wait every page visit inside wp-admin

Versions:
WordPress 6.4.2
WPML Multilingual CMS 4.6.6
WPML String Translation 3.2.8
PHP 7.4.33

Screenshot_20240103_122911.png
January 3, 2024 at 7:12 am #15145274

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi Matteo,

Thank you for contacting WPML support, I'd be happy to help you with this issue.

It looks like there is an issue with language mapping on your site. Please update WPML plugin to the new version 4.6.8 then go to WPML > Languages > Site languages > Edit languages > Select the language mapping for the available language > Save changes and recheck this issue.

Refer documentation https://wpml.org/documentation/automatic-translation/using-automatic-translation-with-custom-languages/#in-the-languages-settings

Look forward to your reply.
Thanks

January 3, 2024 at 11:39 am #15146216

Matteo Canever

I did update to 4.6.8 and also did the language mapping as you instructed. After a couple of page browsing in wp-admin, I did not see any API call (or curl) to ate.wpml.org
I just need to know more info about this fix since we do handle lots of multisites. May i know why do I need to do the language mapping step?
Not sure if related, my Translation Mode is set to "Translate What You Choose"

Thank you!

January 4, 2024 at 1:29 am #15149029

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Glad to hear it works. As far as I know, language mapping is used when you use the Advanced Translation Editor (ATE) and automatic translation. WPML checks the language mapping on your site and there could be an issue then it sends a request to our server when activating ATE and compares the language mapping. By re-saving the language mapping on your site that fixes the issue and everything works properly.

Thanks.

January 4, 2024 at 1:40 am #15149031

Matteo Canever

Hello, just want to check.
If this issue is related to Advanced Translation Editor, is it safer to do this option
WPML > Translation Editor > Editor for new translations > Classic Translation Editor
For my current use case, after reading here https://wpml.org/documentation/translating-your-contents/translation-editor-options/ I'm not in need of any features in ATE, including automatic translation.

Thank you for the replies, appreciate it.

January 4, 2024 at 2:39 am #15149037

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Yes, it is the correct setting if you use the WPML Classic Translation Editor. You also won't see the request to our server as before, all the translations are made on your site.

Thanks.

January 4, 2024 at 9:09 am #15149619

Matteo Canever

Thanks a lot for all replies!
Will close all this. 😀