Title: PHP Fatal error: Uncaught TypeError:
Last modified: June 28, 2023

---

# PHP Fatal error: Uncaught TypeError:

 *  Resolved [Iamhere](https://wordpress.org/support/users/iamhere/)
 * (@iamhere)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-9/)
 * Hello
 * I am getting the following fatal error
 * [28-Jun-2023 19:53:25 UTC] PHP Fatal error: Uncaught TypeError: Unsupported operand
   types: string – string in /home/site/public_html/wp-content/plugins/checkout-
   fees-for-woocommerce/includes/class-alg-wc-order-fees.php:776
 *     ```wp-block-code
       Stack trace:
   
       #0 /home/site/public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-order-fees.php(410): Alg_WC_Order_Fees->calculate_the_fee(Array, 0, 180, 'fee_1', Object(Automattic\WooCommerce\Admin\Overrides\Order))
   
       #1 /home/site/public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-order-fees.php(289): Alg_WC_Order_Fees->get_the_fee(Object(Automattic\WooCommerce\Admin\Overrides\Order), Array, 'fee_both')
   
       #2 /home/site/public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-order-fees.php(217): Alg_WC_Order_Fees->maybe_add_order_fee(Array, Object(Automattic\WooCommerce\Admin\Overrides\Order))
   
       #3 /home/site/public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-order-fees.php(110): Alg_WC_Order_Fees->add_gateways_fees(Object(Automattic\WooCommerce\Admin\Overrides\Order), 'stripe')
   
       #4 /home/site/public_html/wp-includes/class-wp-hook.php(310): Alg_WC_Order_Fees->alg_wc_cf_update_order_fees(3738, Object(WP_Post))
   
       #5 /home/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(3738, Array)
   
       #6 /home/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
   
       #7 /home/site/public_html/wp-includes/post.php(4715): do_action('save_post', 3738, Object(WP_Post), true)
   
       #8 /home/site/public_html/wp-includes/post.php(4817): wp_insert_post(Array, false, true)
   
       #9 /home/site/public_html/wp-content/plugins/woocommerce/includes/data-stores/abstract-wc-order-data-store-cpt.php(185): wp_update_post(Array)
   
       #10 /home/site/public_html/wp-content/plugins/woocommerce/includes/data-stores/class-wc-order-data-store-cpt.php(188): Abstract_WC_Order_Data_Store_CPT->update(Object(Automattic\WooCommerce\Admin\Overrides\Order))
   
       #11 /home/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(196): WC_Order_Data_Store_CPT->update(Object(Automattic\WooCommerce\Admin\Overrides\Order))
   
       #12 /home/site/public_html/wp-content/plugins/woocommerce/includes/abstracts/abstract-wc-order.php(212): WC_Data_Store->update(Object(Automattic\WooCommerce\Admin\Overrides\Order))
   
       #13 /home/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(244): WC_Abstract_Order->save()
   
       #14 /home/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-order.php(143): WC_Order->save()
   
       #15 /home/site/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/abstracts/abstract-wc-stripe-payment-gateway.php(547): WC_Order->payment_complete('ch_3NO4QZCwJawK...')
   
       #16 /home/site/public_html/wp-content/plugins/woocommerce-gateway-stripe/includes/class-wc-gateway-stripe.php(470): WC_Stripe_Payment_Gateway->process_response(Object(stdClass), Object(Automattic\WooCommerce\Admin\Overrides\Order))
   
       #17 /home/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1050): WC_Gateway_Stripe->process_payment(3738)
   
       #18 /home/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php(1279): WC_Checkout->process_order_payment(3738, 'stripe')
   
       #19 /home/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(507): WC_Checkout->process_checkout()
   
       #20 /home/site/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::checkout('')
   
       #21 /home/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters('', Array)
   
       #22 /home/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
   
       #23 /home/site/public_html/wp-content/plugins/woocommerce/includes/class-wc-ajax.php(96): do_action('wc_ajax_checkou...')
   
       #24 /home/site/public_html/wp-includes/class-wp-hook.php(308): WC_AJAX::do_wc_ajax('')
   
       #25 /home/site/public_html/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
   
       #26 /home/site/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
   
       #27 /home/site/public_html/wp-includes/template-loader.php(13): do_action('template_redire...')
   
       #28 /home/site/public_html/wp-blog-header.php(19): require_once('/home/site/...')
   
       #29 /home/site/public_html/index.php(17): require('/home/site/...')
   
       #30 {main}
   
         thrown in /home/site/public_html/wp-content/plugins/checkout-fees-for-woocommerce/includes/class-alg-wc-order-fees.php on line 776
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [tychesoftwares](https://wordpress.org/support/users/tychesoftwares/)
 * (@tychesoftwares)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-9/#post-16868995)
 * Hi [@iamhere](https://wordpress.org/support/users/iamhere/),
   Sorry for the inconvenience
   caused to you.
 * We’ve released version 2.10.2 of the Payment Gateway Based Fees and Discounts
   for WooCommerce plugin with the fix of the issue you are reporting. Please update
   to the latest version and let us know if you need any assistance.
 * Thank you for your continued support.

Viewing 1 replies (of 1 total)

The topic ‘PHP Fatal error: Uncaught TypeError:’ is closed to new replies.

 * ![](https://ps.w.org/checkout-fees-for-woocommerce/assets/icon-256x256.jpg?rev
   =2818154)
 * [Payment Gateway Based Fees and Discounts for WooCommerce](https://wordpress.org/plugins/checkout-fees-for-woocommerce/)
 * [Support Threads](https://wordpress.org/support/plugin/checkout-fees-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/checkout-fees-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/checkout-fees-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/checkout-fees-for-woocommerce/reviews/)

## Tags

 * [fatal error](https://wordpress.org/support/topic-tag/fatal-error/)

 * 1 reply
 * 2 participants
 * Last reply from: [tychesoftwares](https://wordpress.org/support/users/tychesoftwares/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/php-fatal-error-uncaught-typeerror-9/#post-16868995)
 * Status: resolved