• Resolved louisapple

    (@louisapple)


    hi, there

    i keep receving error message from log as below, please advise the cause and solution thanks

    Uncaught TypeError: Unsupported operand types: float * string in /home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:111 Additional context{ “error”: { “type”: 1, “file”: “/home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php”, “line”: 111 }, “remote-logging”: true, “backtrace”: [ “”, “#0 /home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1829): WC_Order_Item_Fee->calculate_taxes()”, “#1 /home4/igrabcom/public_html/wp-content/plugins/woocommerce/src/Internal/Orders/TaxesController.php(50): WC_Abstract_Order->calculate_taxes()”, “#2 /home4/igrabcom/public_html/wp-content/plugins/woocommerce/src/Internal/Orders/TaxesController.php(20): Automattic\WooCommerce\Internal\Orders\TaxesController->calc_line_taxes()”, “#3 /home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(1487): Automattic\WooCommerce\Internal\Orders\TaxesController->calc_line_taxes_via_ajax()”, “#4 /home4/igrabcom/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::calc_line_taxes()”, “#5 /home4/igrabcom/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#6 /home4/igrabcom/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()”, “#7 /home4/igrabcom/public_html/wp-admin/admin-ajax.php(192): do_action()”, “#8 {main}”, “thrown” ] }2025-07-30T01:49:29+00:00Critical Uncaught TypeError: Unsupported operand types: float * string in /home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:111 Additional context{ “error”: { “type”: 1, “file”: “/home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php”, “line”: 111 }, “remote-logging”: true, “backtrace”: [ “”, “#0 /home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(1829): WC_Order_Item_Fee->calculate_taxes()”, “#1 /home4/igrabcom/public_html/wp-content/plugins/woocommerce/src/Internal/Orders/CouponsController.php(84): WC_Abstract_Order->calculate_taxes()”, “#2 /home4/igrabcom/public_html/wp-content/plugins/woocommerce/src/Internal/Orders/CouponsController.php(29): Automattic\WooCommerce\Internal\Orders\CouponsController->add_coupon_discount()”, “#3 /home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(1269): Automattic\WooCommerce\Internal\Orders\CouponsController->add_coupon_discount_via_ajax()”, “#4 /home4/igrabcom/public_html/wp-includes/class-wp-hook.php(324): WC_AJAX::add_coupon_discount()”, “#5 /home4/igrabcom/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#6 /home4/igrabcom/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()”, “#7 /home4/igrabcom/public_html/wp-admin/admin-ajax.php(192): do_action()”, “#8 {main}”, “thrown” ] }2025-07-30T01:51:02+00:00Critical Uncaught TypeError: Unsupported operand types: float * string in /home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:111 Additional context2025-07-30T01:53:00+00:00Critical Uncaught TypeError: Unsupported operand types: float * string in /home4/igrabcom/public_html/wp-content/plugins/woocommerce/includes/class-wc-order-item-fee.php:111 Additional context

    If you like WooCommerce please leave us a ★★★★★ rating. A huge thanks in advance!

    Get Version 6.8.2

Viewing 5 replies - 16 through 20 (of 20 total)
  • Thread Starter louisapple

    (@louisapple)

    The log will record immediately once i change the order then recalculated, the order just keep spinning and never end

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thank you for sharing the error log and additional details.

    From the message Unsupported operand types: float * string, it appears that when WooCommerce is recalculating the order totals, a numeric value is being multiplied by a string value instead of another number. I have tried to replicate that issue on my site but I’m unable to replicate that issue. which indicate this is likely caused by a plugin, theme code, or custom snippet passing an incorrect data type during the calculation process.

    Since you already have a staging site, could you please deactivate all plugins except WooCommerce and see if you still face the same issue?

    If the problem persists, please try re-installing WooCommerce on the staging site to check if that resolves the issue.

    I hope this helps.

    Plugin Support Chris Moreira – a11n

    (@chrism245)

    Since we haven’t received any updates from you, I’ll mark this as resolved for now. If you need further assistance, you’re welcome to start a new thread.

    Your feedback helps others – please consider leaving a review: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/

    Would this method help to find out the issue?

    How to Confirm the Source 1) Temporarily enable WP debugging

    Add to wp-config.php:

    define('WP_DEBUG', true); define('WP_DEBUG_LOG', true);

    Then trigger the error → check:

    /wp-content/debug.log

    Look for any plugin hooking:
    woocommerce_cart_calculate_fees
    woocommerce_order_item_fee
    woocommerce_before_calculate_totals

    Hi @grapelover,

    Thanks for jumping in! Since you’re adding a new question and it may involve a different setup, could you please open a separate thread? That helps keep each issue focused on the original poster’s site and ensures you get proper troubleshooting support for your own environment.

    Once you open a new thread, feel free to share your debug findings there, and we’ll be happy to help you look into it.

Viewing 5 replies - 16 through 20 (of 20 total)

The topic ‘fatal-errors regarding Uncaught TypeError’ is closed to new replies.