Background of the issue:
I am trying to resolve a fatal error related to an uncaught error: Maximum call stack size of 8306688 bytes reached, possibly due to infinite recursion. This occurred in /home/ipkkcji/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php:215. The issue can be seen on the page: hidden link.
Symptoms:
I encountered a fatal error with the message: 'Uncaught Error: Maximum call stack size of 8306688 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion?'
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Please increase the WP Memory Limit to at least 128MB by adding this line to your wp-config.php file before the line "/* That's all, stop editing! Happy publishing. */":
Also, could you reproduce the issue by creating a test order? If so, please check if it still occurs with only WPML and WooCommerce plugins activated and a default theme like Twenty Twenty. This will help identify any plugin or theme conflicts.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
I see, any particular product where this is happening? Or products belonging to a certain category? Without knowing this (steps to reproduce) we may have difficulties with proposing a solution.
No right now as it happened only 2 times I can't find any specific informations..
I changed wp_memory_limit, I will see in couple of days if it happen again
The website crashed again during the night. We did not received any order at the crash time.
The issue happen only on the homepage of the website (in english version).
So increasing Wp_memory_limit was not enough.
Still same error : thrown in /home/ipkkcji/public_html/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php on line 215
After this, in the file `/wp-content/plugins/sitepress-multilingual-cms/vendor/wpml/fp/core/Fns.php`, find the line 125 and modify it as follows:
self::macro('value', curryN(1, function($value) {
// Log the $value before executing it
error_log('Logging $value in Fns.php: ' . print_r($value, true));
return is_callable($value) ? $value() : $value;
}));
Now wait until this happens again and once it does, check `/wp-content/debug.log` for details on what `$value` contain and send me the full error stack here.