Skip to content

Fatal error when enabling Multi currency - Compatibility with third party plugin #10646

@marcusig

Description

@marcusig

ℹ This is a duplicate of this thread, as it's more likely to get an answer from a developer here.

Hi there,

I’m the author of the plugin Product Configurator for WooCommerce

Since version 9.1.0, accessing the cart page with a configurable product (Additional options added by the above plugin) in the cart triggers a fatal error (memory exhausted).

I also noticed a slight increase in load time on the cart with regular products, but nothing breaking.

This can be observed on this test site: https://demos.mklacroix.com/monpetitmagasin/

I’m trying to find out what could be the cause of that issue. Would anyone be able to tell me significant changes in the Multi Currency feature between 9.0 and 9.1?

A user reported this error:

Error 'PHP message: PHP Fatal error: Uncaught Error: Maximum call stack size of 8339456 bytes (zend.max_allowed_stack_size - zend.reserved_stack_size) reached. Infinite recursion? in /wp-content/plugins/product-configurator-for-woocommerce/inc/base/choice.php:29](http://boysmods.com/httpdocs/wp-content/plugins/product-configurator-for-woocommerce/inc/base/choice.php:29)

Which points to this file at line 29.

The Choice object is serialized and stored in the cart_item_meta.
What could be causing this to be unserialized again and again if Multi Currency is enabled?

Hoping someone will have an idea of where to look.
Marc

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions