Fatal error on cart page
-
I get the following fatal error on the cart page while using your plugin on the latest WooCommerce themes (Bookix, Eben, etc.).
Fatal error: Uncaught TypeError: Automattic\WooCommerce\StoreApi\Utilities\QuantityLimits::limit_to_multiple(): Argument #1 ($number) must be of type int, string given, called in /wp-content/plugins/woocommerce/src/StoreApi/Utilities/QuantityLimits.php on line 58 and defined in /wp-content/plugins/woocommerce/src/StoreApi/Utilities/QuantityLimits.php:72 Stack trace: #0 /wp-content/plugins/woocommerce/src/StoreApi/Utilities/QuantityLimits.php(58): Automattic\WooCommerce\StoreApi\Utilities\QuantityLimits->limit_to_multiple(”, ”, ‘ceil’) #1 /wp-content/plugins/woocommerce/src/StoreApi/Schemas/V1/ProductSchema.php(487): Automattic\WooCommerce\StoreApi\Utilities\QuantityLimits->get_add_to_cart_limits(Object(WC_Product_Simple)) #2 [internal function]: Automattic\WooCommerce\StoreApi\Schemas\V1\ProductSchema->get_item_response(Object(WC_Product_Simple)) #3 /wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractProductGrid.php(114): array_map(Array, Array) #4 /wp-content/plugins/woocommerce/src/Blocks/BlockTypes/AbstractBlock.php(97): Automattic\WooCommerce\Blocks\BlockTypes\AbstractProductGrid->render(Array, ”, Object(WP_Block)) #5 /wp-includes/class-wp-block.php(463): Automattic\WooCommerce\Blocks\BlockTypes\AbstractBlock->render_callback(Array, ”, Object(WP_Block)) #6 /wp-includes/class-wp-block.php(443): WP_Block->render() #7 /wp-includes/class-wp-block.php(443): WP_Block->render() #8 /wp-includes/class-wp-block.php(443): WP_Block->render() #9 /wp-includes/class-wp-block.php(443): WP_Block->render() #10 /wp-includes/blocks.php(1705): WP_Block->render() #11 /wp-includes/blocks.php(1743): render_block(Array) #12 /wp-includes/block-template.php(260): do_blocks(‘<!– wp:templat…’) #13 /wp-includes/template-canvas.php(12): get_the_block_template_html() #14 /wp-includes/template-loader.php(106): include(‘/www/sundayscho…’) #15 /wp-blog-header.php(19): require_once(‘/www/sundayscho…’) #16 /index.php(17): require(‘/www/sundayscho…’) #17 {main} thrown in /wp-content/plugins/woocommerce/src/StoreApi/Utilities/QuantityLimits.php on line 72
- You must be logged in to reply to this topic.