Sauter la navigation

Il s'agit du forum d'assistance technique de WPML, le plug-in multilingue pour WordPress.

Il est accessible à tous, toutefois seuls les clients de WPML peuvent y publier leurs messages. L'équipe du WPML répond sur le forum 6 jours par semaine, 22 heures par jour.

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 -

Fuseau horaire du supporter: Europe/Zagreb (GMT+01:00)

Marqué : 

Ce sujet contient 0 réponse, a 0 voix.

Dernière mise à jour par Bruno Kos Il y a 9 heures et 15 minutes.

Assisté par: Bruno Kos.

Auteur Articles
janvier 13, 2025 à 12:08 pm #16588178

juliaZ-6

Contexte de la question:
I am trying to upgrade our website lien caché with WPML instead of Weglot. We prepared this long in advance, with a staging server, and went live on Thursday, January 10th. We are hosted at WPMU. Link to a page where the issue can be seen: lien caché

Symptômes:
Since the upgrade, we are getting PHP fatal errors of exhausted memory, not consistently nor on the same webpages, but always on the original language, never on translated ones. The errors include: 'PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) in /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php on line 133' and 'PHP Fatal error: Allowed memory size of 536870912 bytes exhausted (tried to allocate 262144 bytes) in /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/functions.php on line 139'. After upgrading to a plan allowing 2048 MB, we still get the error: 'PHP Fatal error: Allowed memory size of 2147483648 bytes exhausted (tried to allocate 20480 bytes) in /var/web/site/public_html/wp-content/plugins/sitepress-multilingual-cms/classes/utilities/class-debug-backtrace.php on line 133'.

Questions:
Is there a sYou will notice that the memory allocation try is the same : 20480 bytes. In the first case we had 512 MB memory limit, now 2048MB.
It looks like there is a sort of loop somewhere?ort of loop causing the memory exhaustion?

janvier 13, 2025 à 12:55 pm #16588415

Bruno Kos
Supporter

Les langues: Anglais (English ) Allemand (Deutsch ) Français (Français )

Fuseau horaire: Europe/Zagreb (GMT+01:00)

Here is the ticket.

Please check https://wpml.org/forums/topic/memory-limit-issues-due-to-wpml/page/4/#post-14433023, implement this solution and observe your website in the course of couple of days.

Let me know if the issue got resolved or is back again, so we could check.

There is something else worth checking:
https://wpml.org/faq/why-is-htaccess-getting-overwritten-with-the-language-folder-on-my-wpml-website/#how-can-i-identify-the-plugin-causing-this-and-fix-the-issue

After this server error, can you check .htaccess file and compare its contents after you resaved site permalinks?

janvier 13, 2025 à 2:19 pm #16588864

juliaZ-6

Hi Bruno,

we have no .htaccess since we are running on WPMUDEV hosting, and they have implemented NGINX

on the provided link, we are using hummingBirdPro Cache, were we can exclude pages in caching, not categories see
lien caché

furthermore there are other "Memory exhausted" issues in the forums:

https://wpml.org//?s=exhausted&search=forum
https://wpml.org/forums/topic/php-fatal-error-allowed-memory-size-of-5368709120-bytes-exhausted/
https://wpml.org/forums/topic/memory-limit-issues-due-to-wpml/
https://wpml.org/forums/topic/compatibility-between-wpml-and-object-cache-pro/

janvier 14, 2025 à 6:45 am #16591253

Bruno Kos
Supporter

Les langues: Anglais (English ) Allemand (Deutsch ) Français (Français )

Fuseau horaire: Europe/Zagreb (GMT+01:00)

I see. I am checking this with our 2nd tier to gather some ideas based on your setup, I will update here.

janvier 14, 2025 à 9:57 am #16592140

juliaZ-6

Dear Bruno,

Yesterday night, upon discussion with WPMUDEV support we have deactivated object caching as referring to lien caché and https://wpml.org/forums/topic/memory-limit-issues-due-to-wpml/page/3/#post-14433023 by adding in the wp-config.php define( 'WPMUDEV_HOSTING_OBJECT_CACHE_ENABLED', false );

Since then no more issue with memory overflow.

That confirms WPML has an issue with object caching feature on servers, in the source language and when it’s configured without directory.
Of course the issue seems solved by disabling the object cache, but that is not really cool.

It seems WPML supports object caching since version 3.1.9 (2015). Since then some improvements and bug fixes have been regularly pushed in regards to object caching : https://wpml.org/fr//?s=object+cache

Is our issue is something you wish to escalate ? that would be greatly appreciated.

Many thanks

janvier 14, 2025 à 2:19 pm #16593388

Bruno Kos
Supporter

Les langues: Anglais (English ) Allemand (Deutsch ) Français (Français )

Fuseau horaire: Europe/Zagreb (GMT+01:00)

What if you enable caching again, disable the "Adjust IDs for multilingual functionality" option under WPML -> Languages, and observe the site for a few days?

In the meantime, we are trying to set up a WPMUDEV environment with the possibility of installing WPML and activating Object Cache Pro, so we can investigate this more thoroughly.

disablethis.jpg