• I switched this site over to PHP version 8.3 since 7.4 has reached its EOL, but now I get a fatal error when adding a business card to the shopping cart. We are using the free version of Min and Max Quantity for WooCommerce (Ver. 1.3.8.2). Since this is a live site, I had to revert it back to PHP 7.4. I tried other PHP 8 versions, but get the same error message. See error below.

    Fatal error: Uncaught TypeError: Unsupported operand types: float + string in /home/chesters/public_html/web/wp-content/plugins/minmax-quantity-for-woocommerce/main.php:916 Stack trace: #0 /home/chesters/public_html/web/wp-content/plugins/minmax-quantity-for-woocommerce/main.php(1251): BeRocket_MM_Quantity->new_calculate_total() #1 /home/chesters/public_html/web/wp-includes/class-wp-hook.php(324): BeRocket_MM_Quantity->validate_add_to_cart() #2 /home/chesters/public_html/web/wp-includes/plugin.php(205): WP_Hook->apply_filters() #3 /home/chesters/public_html/web/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(870): apply_filters() #4 /home/chesters/public_html/web/wp-content/plugins/woocommerce/includes/class-wc-form-handler.php(844): WC_Form_Handler::add_to_cart_handler_simple() #5 /home/chesters/public_html/web/wp-includes/class-wp-hook.php(324): WC_Form_Handler::add_to_cart_action() #6 /home/chesters/public_html/web/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() #7 /home/chesters/public_html/web/wp-includes/plugin.php(517): WP_Hook->do_action() #8 /home/chesters/public_html/web/wp-settings.php(749): do_action() #9 /home/chesters/public_html/web/wp-config.php(83): require_once(‘/home/chesters/…’) #10 /home/chesters/public_html/web/wp-load.php(50): require_once(‘/home/chesters/…’) #11 /home/chesters/public_html/web/wp-blog-header.php(13): require_once(‘/home/chesters/…’) #12 /home/chesters/public_html/index.php(17): require(‘/home/chesters/…’) #13 {main} thrown in /home/chesters/public_html/web/wp-content/plugins/minmax-quantity-for-woocommerce/main.php on line 916

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Author RazyRx

    (@razyrx)

    Hello,

    What version of WooCommerce and WordPress do you have on your site?

    Regards,
    Oleg

Viewing 1 replies (of 1 total)

The topic ‘Fatal Error When Adding Product to Shopping Cart Using PHP 8.3’ is closed to new replies.