- Support forum for the Min Max Default Quantity Manager for WooCommerce.
- This topic has 3 replies, 3 voices, and was last updated 2 years, 9 months ago by
Coen Niesten.
Viewing 4 posts - 1 through 4 (of 4 total)
-
AuthorPosts
-
November 1, 2021 at 9:21 am #104865
Coen
GuestHi team,
We try to update our WordPress / WooCommerce to php8. When we put a product in the cart it displays the following error (replaced the domain with xxx)
Do you have an update / solution for this?
Thanks,
Coen
Fatal error: Uncaught TypeError: Unsupported operand types: int - string in /home/xxx/domains/xxx.nl/public_html/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/class-alg-wc-pq-core.php:2913 Stack trace: #0 /home/xxx/domains/xxx.nl/public_html/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/class-alg-wc-pq-core.php(3003): Alg_WC_PQ_Core->check_product_step() #1 /home/xxx/domains/xxx.nl/public_html/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/class-alg-wc-pq-core.php(2381): Alg_WC_PQ_Core->check_step() #2 /home/xxx/domains/xxx.nl/public_html/wp-includes/class-wp-hook.php(303): Alg_WC_PQ_Core->check_order_quantities() #3 /home/xxx/domains/xxx.nl/public_html/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters() #4 /home/xxx/domains/xxx.nl/public_html/wp-includes/plugin.php(470): WP_Hook->do_action() #5 /home/xxx/domains/xxx.nl/public_html/wp-content/themes/homestock/woocommerce/cart/cart.php(20): do_action() #6 /home/xxx/domains/xxx.nl/public_html/wp-content/plugins/woocommerce/includes/wc-core-functions.php(345): include('...') #7 /home/xxx/domains/xxx.nl/public_html/wp-content/plugins/woocommerce/includes/shortcodes/class-wc-shortcode-cart.php(99): wc_get_template() #8 /home/xxx/domains/xxx.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(72): WC_Shortcode_Cart::output() #9 /home/xxx/domains/xxx.nl/public_html/wp-content/plugins/woocommerce/includes/class-wc-shortcodes.php(85): WC_Shortcodes::shortcode_wrapper() #10 /home/xxx/domains/xxx.nl/public_html/wp-includes/shortcodes.php(356): WC_Shortcodes::cart() #11 [internal function]: do_shortcode_tag() #12 /home/xxx/domains/xxx.nl/public_html/wp-includes/shortcodes.php(228): preg_replace_callback() #13 /home/xxx/domains/xxx.nl/public_html/wp-includes/class-wp-hook.php(303): do_shortcode() #14 /home/xxx/domains/xxx.nl/public_html/wp-includes/plugin.php(189): WP_Hook->apply_filters() #15 /home/xxx/domains/xxx.nl/public_html/wp-includes/post-template.php(253): apply_filters() #16 /home/xxx/domains/xxx.nl/public_html/wp-content/themes/homestock/page.php(51): the_content() #17 /home/xxx/domains/xxx.nl/public_html/wp-includes/template-loader.php(106): include('...') #18 /home/xxx/domains/xxx.nl/public_html/wp-blog-header.php(19): require_once('...') #19 /home/xxx/domains/xxx.nl/public_html/index.php(17): require('...') #20 {main} thrown in /home/xxx/domains/xxx.nl/public_html/wp-content/plugins/product-quantity-for-woocommerce-pro/includes/class-alg-wc-pq-core.php on line 2913
November 3, 2021 at 7:46 pm #104866WPWhale
ModeratorHi Coen,
We’re trying to reproduce this currently and will let you know when it’s fixed, or if we need further details.
Omar
November 4, 2021 at 7:40 pm #104867WPWhale
ModeratorHey Coen,
Please update to version 3.9.4 (just released) and let us know if everything is sorted now.
Omar
November 26, 2021 at 9:43 am #104868Coen Niesten
ParticipantHi Omar,
If I change
$_product_qty_step = $product_qty_step;
into
$_product_qty_step = (int) $product_qty_step;
on rule 2911 in class-alg-wc-pq-core.php
…the error is gone and it seems to work in php 8.0 on our configuration. The value $product_qty_step was empty btw.
Can we add this?
Thanks,
Coen -
AuthorPosts
Viewing 4 posts - 1 through 4 (of 4 total)
- You must be logged in to reply to this topic.