Home›Support›English Support›[Resolved] Maximum call stack size of 8306688 bytes reached, possibly due to infinite recursion
[Resolved] Maximum call stack size of 8306688 bytes reached, possibly due to infinite recursion
This thread is resolved. Here is a description of the problem and solution.
Problem: You are experiencing an issue with the Relevanssi search plugin causing a PHP Fatal error due to maximum call stack size being reached, possibly due to infinite recursion. This problem occurs when using PHP8.3. Solution: First, ensure you have a full backup of your website. Then, check the following errata page for a potential workaround related to PHP 8.3 and infinite recursion issues: https://wpml.org/errata/php-8-3-x-fatal-error-maximum-call-stack-size-reached-due-to-possible-infinite-recursion/. If the issue persists, adjust your server's PHP configuration: 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 making these changes, restart your web server.
If this solution does not resolve your issue or seems irrelevant due to being outdated or not applicable to your case, 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. If needed, please open a new support ticket at WPML support forum for further assistance.
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.
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
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.
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: