Skip to content Skip to sidebar

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 6 replies, has 0 voices.

Last updated by Otto 1 week ago.

Assisted by: Otto.

Author Posts
November 26, 2025 at 12:25 pm #17611673

danielD-143

Background of the issue:
I was trying to use the Relevanssi search plugin, and I encountered an issue after disabling error hiding.

Symptoms:
Maximum call stack size of 8306688 bytes reached, possibly due to infinite recursion.
PHP Fatal error: Uncaught Error: Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. /wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php:202

Questions:
What causes the maximum call stack size to be reached?
How can I resolve the infinite recursion issue with the Relevanssi search plugin?

November 26, 2025 at 3:34 pm #17612781

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

As your site uses PHP8.3 it may be related to this:
https://wpml.org/errata/php-8-3-x-fatal-error-maximum-call-stack-size-reached-due-to-possible-infinite-recursion/

Can you please try the workaround suggested there?

❌ Please make a full website backup before proceeding ❌

Let me know how it goes, please.

Best Regards,
Otto

November 27, 2025 at 6:49 am #17613846

danielD-143

Hi Otto,
I saw that workaround, but I don't think it's a safe solution.
Aren't you planning any udpates of this?

November 27, 2025 at 7:16 am #17613864

danielD-143

I also have a few scripts whose execution time exceeds the limit in WPML. These two scripts are repeated frequently.

Example:
PHP Fatal error: Maximum execution time of 600 seconds exceeded in /wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/collect/src/Illuminate/Support/Traits/Macroable.php on line 56

PHP Fatal error: Maximum execution time of 600 seconds exceeded in wp-content/plugins/woocommerce-multilingual/classes/Rest/Functions.php on line 31

And I know the fastest solution is increase max_execution time but I don't think so that is the best solution

November 27, 2025 at 4:11 pm #17615858

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

I checked with our second tier support and the erratum was closed, the issue is already addressed.

Nevertheless, there is a WPML minimum requirement with PHP8.3:
WPML needs at least 208 KB of Available stack size on PHP 8.3+; please set "zend.max_allowed_stack_size" to at least 256 KB and "zend.reserved_stack_size" to at least 48 KB in your php.ini file. After these changes, restart your web server.

Can you please try it?

Best Regards,
Otto

November 28, 2025 at 9:06 am #17617518
danielD-143

I will test it with new php.ini values

Also I have error on edit product page
SES_UNCAUGHT_EXCEPTION: ReferenceError: wp is not defined
<anonymous>wp-admin/post.php?post=1832024&action=edit&lang=pl:125
<anonymous>wp-admin/post.php?post=1832024&action=edit&lang=pl:139

From this script
<script type="text/javascript">
wpml_background_tasks = {"endpoints":[{"endpoint":"WPML\\BackgroundTask\\BackgroundTaskLoader","nonce":"68ae2e045b"}],"tasks":[]}</script>
<script type="text/javascript">
(function() {
wp.data.dispatch("core/notices").createNotice(
'warning',
'Musisz ręcznie przetłumaczyć ten wpis, ponieważ dołączone do niego grupy pól używają różnych opcji tłumaczenia.',
{
id: 'acfml_post_edit_translation_notice',
isDismissible: true,
actions: [
{
url: 'https://wpml.org/documentation/translating-your-contents/using-different-translation-editors-for-different-pages/?utm_source=plugin&utm_medium=gui&utm_campaign=acfml&utm_content=manual-translation',
label: 'Przejdź do dokumentacji'
}
]
}
);
})();
</script>
This error block execute of other scripts

New threads created by Otto and linked to this one are listed below:

https://wpml.org/forums/topic/i-have-error-on-edit-product-page/

November 28, 2025 at 1:40 pm #17618297

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Great, thanks. Let me know how it goes.

For the new question, I've created a new ticket:
https://wpml.org/forums/topic/i-have-error-on-edit-product-page/

I'll follow up there.

Best Regards,
Otto