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.

This topic contains 1 reply, has 0 voices.

Last updated by Florian 1 hour, 23 minutes ago.

Author Posts
April 7, 2025 at 3:40 pm #16905211

Florian

Background of the issue:
I am trying to access a page on my website, but sometimes I encounter an error 500. I already tried this fix but it doesn't work: https://wpml.org/errata/php-8-3-x-fatal-error-maximum-call-stack-size-reached-due-to-possible-infinite-recursion/. The issue can be seen on this page: hidden link.

Symptoms:
We are getting an infinite recursion within WPML, resulting in an error 500 page. This is the output from the error log:
[07-Apr-2025 15:30:34 UTC] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 20480 bytes) in /home/guidersde/staging.guiders.de/wp-includes/functions.php on line 718
[07-Apr-2025 15:30:44 UTC] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in /home/guidersde/staging.guiders.de/wp-includes/class-wp-term-query.php on line 308
[07-Apr-2025 15:30:58 UTC] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in /home/guidersde/staging.guiders.de/wp-includes/class-wp-term-query.php on line 308
[07-Apr-2025 15:31:23 UTC] PHP Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 262144 bytes) in /home/guidersde/staging.guiders.de/wp-includes/class-wp-term-query.php on line 308

Questions:
How can I solve this?

April 8, 2025 at 7:30 pm #16910733

Bigul
Supporter

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. Before passing this thread to my colleague, I would like to share some suggestions and possible solutions for the issues you mentioned.

You may be facing this issue because of compatibility conflicts. To make sure, please follow the following steps.

a) Backup your site first[Mandatory]
b) Switch for a moment to a WordPress default theme like 2025
c) Deactivate all the plugins that are not related to WPML
d) Then check if the issue exists or not
e) If the issue is gone, activate the plugins as a group of three or four to find which one has an interaction issue
f) Switch back to the original theme of the site

Which hosting service are you currently using? Please share more details about your hosting plan.

--
Thanks!

Bigul

April 12, 2025 at 2:43 pm #16925357

Florian

I resolved the issue by switching from PHP 8.3 back to 8.1.