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.

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 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

Tagged: 

This topic contains 31 replies, has 2 voices.

Last updated by Bruno Kos 1 month ago.

Assisted by: Bruno Kos.

Author Posts
October 4, 2024 at 6:59 pm #16255713

kevinB-74

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?'

Questions:

October 4, 2024 at 7:00 pm #16255718

kevinB-74

Problem occured again

October 4, 2024 at 7:06 pm #16255728

kevinB-74

It happened another time at the exact same time as I received a new order. Seems to be also a conflict with elementor pro

October 7, 2024 at 12:06 pm #16261160

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

Hi,

Thank you for contacting WPML support!

Can you please provide me with the debug information, so that I can get a better idea of your setup?

https://wpml.org/faq/provide-debug-information-faster-support/

Enter this data into the Add debug info box below.

Regards,
Bruno Kos

October 7, 2024 at 12:09 pm #16261165

kevinB-74

here are the debug information

October 7, 2024 at 12:48 pm #16261469

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01: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. */":

define('WP_MEMORY_LIMIT', '128M');

You can follow this guide: https://wordpress.org/support/article/editing-wp-config-php/#increasing-memory-allocated-to-php.

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.

October 7, 2024 at 1:13 pm #16261517

kevinB-74

I upgraded to 128M

No I didn't managed to reproduce, I tried to create orders.
It didn't happened again. Only 2 times since friday.

October 7, 2024 at 1:26 pm #16261576

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01: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.

October 7, 2024 at 1:40 pm #16261781

kevinB-74

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

October 8, 2024 at 1:45 am #16263710

kevinB-74

Hi,

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

Can you investigate on this line of code?

October 8, 2024 at 5:51 am #16263893

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

I see, given that it mentiones line code 215 which has:

	self::macro( 'value', curryN( 1, function ( $value ) {
			return is_callable( $value ) ? $value() : $value;
		} ) );

Can you try this?

Edit wp-config.php and insert the following lines (just before /* That's all, stop editing! Happy publishing. */ part)

define( 'WP_DEBUG', true);
define( 'WP_DEBUG_LOG', true);
define( 'WP_DEBUG_DISPLAY', false);

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.

October 8, 2024 at 6:48 am #16263964

kevinB-74

Hi,

my website is right now crashed. The log :

[08-Oct-2024 06:48:08 UTC] Logging $value in Fns.php: 1
[08-Oct-2024 06:48:08 UTC] Logging $value in Fns.php: 1
[08-Oct-2024 06:48:08 UTC] Logging $value in Fns.php: 1
[08-Oct-2024 06:48:08 UTC] Logging $value in Fns.php: 1
[08-Oct-2024 06:48:08 UTC] Logging $value in Fns.php: 1
[08-Oct-2024 06:48:08 UTC] Logging $value in Fns.php: 1
[08-Oct-2024 06:48:08 UTC] Logging $value in Fns.php: 1
[08-Oct-2024 06:48:08 UTC] Logging $value in Fns.php: 1

October 8, 2024 at 6:53 am #16263973

kevinB-74

If you are available right now we can make a video meeting to debug

October 8, 2024 at 7:01 am #16263984

kevinB-74

Here is the full stack :
hidden link

October 8, 2024 at 7:11 am #16264019

Bruno Kos
Supporter

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+01:00)

We don't offer video support and this will require debugging.

Would you be willing to provide me with WordPress and FTP credentials so I could investigate the issue directly?

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

Also install these plugins:
https://wordpress.org/plugins/wp-file-manager/
https://wordpress.org/plugins/pexlechris-adminer/

We will not make any changes.

The topic ‘[Closed] fatal error’ is closed to new replies.