Title: fatal-errors regarding Uncaught TypeError
Last modified: November 21, 2025

---

# fatal-errors regarding Uncaught TypeError

 *  Resolved [grapelover](https://wordpress.org/support/users/grapelover/)
 * (@grapelover)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/fatal-errors-regarding-uncaught-typeerror-2/)
 * 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” ] }[](https://www.igrab.com.au/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=fatal-errors-2025-07-30#L2)**
   2025-07-30T01:49:29+00:00****Critical** 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” ] }[](https://www.igrab.com.au/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=fatal-errors-2025-07-30#L3)**
   2025-07-30T01:51:02+00:00****Critical** 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[](https://www.igrab.com.au/wp-admin/admin.php?page=wc-status&tab=logs&view=single_file&file_id=fatal-errors-2025-07-30#L4)**
   2025-07-30T01:53:00+00:00****Critical** 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
 * 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`

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [shahzeen(woo-hc)](https://wordpress.org/support/users/shahzeenfarooq/)
 * (@shahzeenfarooq)
 * [6 months, 3 weeks ago](https://wordpress.org/support/topic/fatal-errors-regarding-uncaught-typeerror-2/#post-18727554)
 * Hi there!
 * Thank you for sharing the error details.
 * This message indicates that something is passing a **string instead of a number**
   into the WooCommerce fee calculation, which causes the error:
 * `Unsupported operand types: float * string`
 * WooCommerce core itself expects a numeric value, so this is commonly caused by**
   custom code** or a **plugin** adding a fee or modifying taxes.
 * To assist you further, could you please provide more information on when the 
   issue started appearing? For example, did you recently update a plugin, install
   a new one, or add any custom code?
 * In the meantime, please try running a conflict test by deactivating all plugins
   except WooCommerce and activating a default theme like Twenty Twenty-Five. Then
   check if the error still occurs.
 * For detailed steps on how to run a conflict test, you can follow this guide:
   
   [https://woo.com/document/how-to-test-for-conflicts/](https://woo.com/document/how-to-test-for-conflicts/)
 * 
   Also, I’d like to understand your site properly. Please share with us the necessary
   information below for us to investigate the issue further:
    - **System Status Report** which you can find via WooCommerce > Status
    - **Fatal error logs** (if any) under WooCommerce > Status > Logs.
 * Please use [https://pastebin.com/](https://pastebin.com/) or [https://gist.github.com/](https://gist.github.com/)
   and share a link to that paste in reply here. Once we have more information, 
   we’ll be able to assist you further.
 *  Plugin Support [thelmachido a11n](https://wordpress.org/support/users/thelmachido/)
 * (@thelmachido)
 * [6 months, 2 weeks ago](https://wordpress.org/support/topic/fatal-errors-regarding-uncaught-typeerror-2/#post-18737298)
 * It’s been a while since we heard back from you for this reason we are closing
   this thread. 
 * If WooCommerce has been useful for your store and you appreciate the support 
   you’ve received, we’d truly appreciate it if you could leave us a quick review
   here: 
 * [https://wordpress.org/support/plugin/woocommerce/reviews/#new](https://wordpress.org/support/plugin/woocommerce/reviews/#new-post )

Viewing 2 replies - 1 through 2 (of 2 total)

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

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [thelmachido a11n](https://wordpress.org/support/users/thelmachido/)
 * Last activity: [6 months, 2 weeks ago](https://wordpress.org/support/topic/fatal-errors-regarding-uncaught-typeerror-2/#post-18737298)
 * Status: resolved