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.

Tagged: 

This topic contains 5 replies, has 2 voices.

Last updated by lorenzP 1 year, 9 months ago.

Assisted by: Prosenjit Barman.

Author Posts
April 21, 2023 at 4:05 pm #13519125

lorenzP

On every admin dashboard page we see network calls like the following one which take at least 0.6 seconds and in some cases even up to 6 seconds while saving a post:

hidden link
?wpml_core_version=4.6.3
&wpml_tm_version=2.11.0
&shared_key=ABC
&token=ABC
&website_uuid=ABC
&ui_language_code=de
&site_key=ABC
&signature=ABC

Secret parameters were removed from the example.

Origin is:

WPML_TM_ATE_API->request()
wp-content/plugins/sitepress-multilingual-cms/classes/ATE/API/class-wpml-tm-ate-api.php:659
WPML_TM_ATE_API->requestWithLog()
wp-content/plugins/sitepress-multilingual-cms/classes/ATE/API/class-wpml-tm-ate-api.php:675
WPML_TM_ATE_API->get_language_mapping()
wp-content/plugins/sitepress-multilingual-cms/classes/ATE/API/class-wpml-tm-ate-api.php:405
WPML\T\A\A\CachedATEAPI->callWithCache()
wp-content/plugins/sitepress-multilingual-cms/classes/ATE/API/CachedATEAPI.php:39
WPML\T\A\A\CachedATEAPI->__call()
wp-content/plugins/sitepress-multilingual-cms/classes/ATE/API/CachedATEAPI.php:33
WPML\T\A\A\LanguageMappings::get()
wp-content/plugins/sitepress-multilingual-cms/API/ATE/LanguageMappings.php:76
WPML\T\A\A\LanguageMappings::WPML\T\A\A\{closure}()
wp-content/plugins/sitepress-multilingual-cms/API/ATE/LanguageMappings.php:83
WPML\FP\{closure}()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:154
WPML\FP\{closure}()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php:50
WPML\T\A\Loader::getData()
wp-content/plugins/sitepress-multilingual-cms/classes/ATE/Loader.php:123
WPML\FP\Right->map()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php:207
WPML\FP\Right->chain()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Either.php:257
WPML\FP\Promise->resolve()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Promise.php:24
WPML\L\W\Hooks::WPML\L\W\{closure}()
wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/wp/classes/Hooks.php:50
do_action('wp_loaded')
wp-includes/plugin.php:517

We also checked the JSON response and it is [].

Why are there such calls on every admin screen?

April 24, 2023 at 11:01 am #13526229

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thanks for reaching out to us. I will try my best to assist you in this matter.

We are experiencing a high volume of tickets right now which has caused some delays in our response times. We are working hard to resolve this issue as quickly as possible. We appreciate your understanding in this matter.

I understood that an API call to WPML is happening on every page of the Admin Dashboard. Based on the information you've shared, The API is requesting the language mappings from the ATE server for WPML Plugin, which is necessary for the plugin to properly manage and display translated content.

If you're experiencing any issues due to that API call, can you please help us to reproduce the same issue? If possible, kindly capture the steps to reproduce the issue in a video and share that with us in the next response. I will try accordingly and will let you know an update soon.

Your cooperation in this matter will be highly appreciated. Looking forward to your response.

Best Regards,
Prosenjit

April 25, 2023 at 3:05 pm #13534647

lorenzP

Query Monitor lists the external request on every admin page and it takes at least 600 ms per request. In some cases even several seconds. This is about 30-50% of the page load time.

April 27, 2023 at 10:56 am #13548919

Prosenjit Barman
Supporter

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
I hope you're doing well.

Thanks for clarifying the issue. I have checked by installing the query monitor in my development environment but I'm unable to trace any calls in the Request section of the query monitor.

Would you kindly check if the languages on your site are mapped correctly or not? You can do that by going to the "WPML > Languages > Edit Languages" page.

If everything is correctly configured there, then I need to inspect closely to figure out the root cause. 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 have 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

Looking forward to your response.

Best Regards,
Prosenjit

April 27, 2023 at 2:45 pm #13550975

lorenzP

The Chinese language had no mapping in the languages edit screen. After adding the mapping this issue is gone. There was only one more request after that to the ATE server.