Navigation überspringen

Dies ist das technische Support-Forum für WPML – das mehrsprachige WordPress-Plugin.

Mitlesen können alle, doch nur WPML-Kunden können hier Fragen veröffentlichen. Das WPML-Team antwortet im Forum an 6 Tagen pro Woche, 22 Stunden am Tag.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 13:00 9:00 – 13:00 9:00 – 13:00 8:00 – 12:00 8:00 – 12:00 -
- 14:00 – 17:00 14:00 – 18:00 14:00 – 18:00 13:00 – 17:00 13:00 – 17:00 -

Unterstützt die Zeitzone: Europe/Zagreb (GMT+01:00)

Schlagwörter: 

Dieses Thema enthält 3 Antworten, hat 0 Stimmen.

Zuletzt aktualisiert von Bruno Kos Vor 2 Tage, 3 Stunden.

Assistiert von: Bruno Kos.

Verfasser Beiträge
Februar 10, 2025 unter 3:44 pm #16688505

sandraS-19

Hintergrund des Themas:
I am trying to identify why there are over 200 duplicate requests from WPML when using Query Monitor. The issue can be seen on this page: versteckter Link.

Die Symptome:
I see over 200 duplicate requests from WPML.

Fragen:
What is the reason for the duplicate requests?
How can it be fixed?

Februar 11, 2025 unter 7:09 am #16690094

Bruno Kos
Supporter

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+01:00)

Hi,

There are several possible causes for the duplicate WPML queries you are seeing in Query Monitor. For example, String Translation can generate multiple queries to fetch translated strings, increasing the query count. Also, certain themes or plugins, such as Elementor, WooCommerce, or ACF, may interact with WPML in a way that results in duplicate queries.

If object caching is disabled, WPML won’t store query results efficiently, leading to repeated database requests.

To help diagnose the issue further, could you check the queries under these conditions?

- **Only WPML plugins activated** – This will help determine if the duplicate queries are caused by an interaction with another plugin.
- **Theme set to a WordPress default like Twenty Twenty** – This will help identify if the issue is related to your theme’s compatibility with WPML.

Another thing, can you update WPML? We just released a new (major) version, can you check the number of queries after this?

Let me know about the results!

check for updates.png
Februar 11, 2025 unter 3:15 pm #16692568

sandraS-19

Hi,

i have updated WPML - the result is the same.

You can see in my screenshot that 98% of all duplicate WPML queries comes from x_output_primary_navigation()

If there is a chance to fix this - 98% of the duplicate queries are solved 😉

Februar 12, 2025 unter 8:57 am #16694719

Bruno Kos
Supporter

Sprachen: Englisch (English ) Deutsch (Deutsch ) Französisch (Français )

Zeitzone: Europe/Zagreb (GMT+01:00)

What if you disable Adjust IDs for multilingual functionality option, what is the number of queries then?

Eliminating queries is not that simple as it typically comes from WPML core.

Can you please check the number of queries when:

- only WPML plugins are activated, as it will tell us if there is an interaction issue with other plugin
- theme is set to a WordPress default like Twenty Twenty as it will tell us if there is an interaction issue with your theme

I did not understand from your reply if you did such test?

disable this.png