Skip to content Skip to sidebar

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

Problem:
The client was experiencing performance issues on their site's archive pages, particularly with high load times and frequent errors. The WPML_Element_Translation->maybe_populate_cache() function was being called excessively, resulting in around 1,800 SELECT queries per request, significantly affecting site performance.
Solution:
We identified that the issue was related to the Adjust ID setting in WPML, which was trying to fetch translated IDs for menu items not set in other languages. To resolve this, we recommended the following steps:
1. Disable the Adjust ID option.
2. Navigate to WPML > String translation > Admin Texts Translation.
3. Locate the default language theme option for the main menu at [theme_mods_motors][nav_menu_locations]primary with ID 207.
4. Add this option for translation and assign the translated menu ID for other languages, such as French ID 253.
After applying these changes, the site's load time improved significantly, with pages loading in about 2.5 seconds even with cache disabled.
For further details on optimizing SQL queries, you can visit https://wpml.org/faq/how-to-optimize-mysql-queries/.

If this solution does not apply to your case, or if it seems outdated, 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. Should you need further assistance, please do not hesitate to 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 17 replies, has 1 voice.

Last updated by Dražen 6 days, 23 hours ago.

Assisted by: Dražen.

Author Posts
September 1, 2025 at 6:47 am #17361309

Dražen
Supporter

Languages: English (English )

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

Hello,

thanks for getting back, glad to hear that helped.

I understand you have many other issues, since we limit 1 issue per ticket best would be to open new chat and we can quickly check and try to solve all the issues there, if not you can then open later ticket for each issue and we will be glad to help.

Regards,
Drazen

September 1, 2025 at 9:55 am #17361945

firmaD-2

I didn't have those issues. Those issues started when I deactivated the feature in the language settings, so it would be great to keep the context here, otherwise I have to explain everything in a new ticket from scratch.

September 1, 2025 at 10:17 am #17362024

Dražen
Supporter

Languages: English (English )

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

Hello,

I understand but it just might be the case that translation were not added correctly at first place. Either way, we can not check that many issue in 1 ticket, especially when the main issue was resolved it will be very difficult to keep conversation clear.

I will open new ticket for first issue, and then I can check one by one what is the issue and we will continue like that:

- https://wpml.org/forums/topic/split-string-translated-but-not-showing-translated-on-front/

I will be closing this one for now.

Regards,
Drazen