- Support forum for the WooCommerce Min Max Step Quantity Limits Manager.
- This topic has 2 replies, 2 voices, and was last updated 1 week, 2 days ago by Hindi.
-
AuthorPosts
-
October 24, 2024 at 7:39 am #152203SaulParticipant
Hello. I recently got this error that is crashing part of my website: https://share.streak.com/Tph5eJXDCFdFZ8JJpwHvtx
How can I/we fix this?
Error Details
=============
An error of type E_ERROR was caused in line 72 of the file /home/customer/www/laundrytown<wbr />.com/public_html/wp-content/pl<wbr />ugins/woocommerce/src/StoreApi<wbr />/Utilities/QuantityLimits.php. Error message: Uncaught TypeError: Automattic\WooCommerce\StoreAp<wbr />i\Utilities\QuantityLimits::<wbr />limit_to_multiple(): Argument #1 ($number) must be of type int, string given, called in /home/customer/www/laundrytown<wbr />.com/public_html/wp-content/pl<wbr />ugins/woocommerce/src/StoreApi<wbr />/Utilities/QuantityLimits.php on line 58 and defined in /home/customer/www/laundrytown<wbr />.com/public_html/wp-content/pl<wbr />ugins/woocommerce/src/StoreApi<wbr />/Utilities/QuantityLimits.php:<wbr />72
Stack trace:
#0 /home/customer/www/laundrytown<wbr />.com/public_html/wp-content/pl<wbr />ugins/woocommerce/src/StoreApi<wbr />/Utilities/QuantityLimits.php(<wbr />58): Automattic\WooCommerce\StoreAp<wbr />i\Utilities\QuantityLimits-><wbr />limit_to_multiple(”, ‘1’, ‘ceil’)
#1 /home/customer/www/laundrytown<wbr />.com/public_html/wp-content/pl<wbr />ugins/woocommerce/src/StoreApi<wbr />/Schemas/V1/ProductSchema.php(<wbr />487): Automattic\WooCommerce\StoreAp<wbr />i\Utilities\QuantityLimits-><wbr />get_add_to_cart_limits(Object(<wbr />WC_Product_Simple))
#2 [internal function]: Automattic\WooCommerce\StoreAp<wbr />i\Schemas\V1\ProductSchema-><wbr />get_item_response(Object(WC_<wbr />Product_Simple))
#3 /home/customer/www/laundrytown<wbr />.com/public_html/wp-content/pl<wbr />ugins/woocommerce/src/Blocks/<wbr />BlockTypes/AbstractProductGrid<wbr />.php(113): array_map(Array, Array)
#4 /home/customer/www/laundrytown<wbr />.com/public_html/wp-content/pl<wbr />ugins/woocommerce/src/Blocks/<wbr />BlockTypes/AbstractBlock.php(<wbr />98): Automattic\WooCommerce\Blocks\<wbr />BlockTypes\AbstractProductGrid<wbr />->render(Array, ”, Object(WP_Block))
#5 /home/customer/www/laundrytown<wbr />.com/public_html/wp-includes/c<wbr />lass-wp-block.php(519): Automattic\WooCommerce\Blocks\<wbr />BlockTypes\AbstractBlock->rend<wbr />er_callback(Array, ”, Object(WP_Block))
#6 /home/customer/www/laundrytown<wbr />.com/public_html/wp-includes/b<wbr />locks.php(2061): WP_Block->render()
#7 /home/customer/www/laundrytown<wbr />.com/public_html/wp-includes/b<wbr />locks.php(2113): render_block(Array)
#8 /home/customer/www/laundrytown<wbr />.com/public_html/wp-includes/c<wbr />lass-wp-hook.php(324): do_blocks(‘November 19, 2024 at 7:01 pm #153687HindiModeratorHi Saul,
I hope you’re doing well. Thank you for reaching out!
Please try updating to the latest version. Additionally, test the plugin with WooCommerce and the default WordPress theme to see if that resolves the issue, as it may be a conflict.
I will also forward your request to the development team for further assistance.
Best regards,
November 23, 2024 at 2:09 pm #154427HindiModeratorHi Saul,
Please try updating to the latest version, this should solve the problem.
Waiting to hear from you.
Best regards,
-
AuthorPosts
- You must be logged in to reply to this topic.