Title: CRITICAL Uncaught TypeError
Last modified: December 31, 2023

---

# CRITICAL Uncaught TypeError

 *  Resolved [Rune Rasmussen](https://wordpress.org/support/users/syntaxerrorno/)
 * (@syntaxerrorno)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/critical-uncaught-typeerror-4/)
 * Hi,
 * Just noticed the log folder is being filled up with fatal-errors log files, with
   several errors per day:
 *     ```wp-block-code
       CRITICAL Uncaught TypeError: Unsupported operand types: string - int in /wp-content/plugins/woocommerce/includes/class-wc-session-handler.php:456
       Stack trace:
       #0 /wp-content/plugins/woocommerce/includes/class-wc-session-handler.php(324): WC_Session_Handler->get_session()
       #1 /wp-content/plugins/woocommerce/includes/class-wc-session-handler.php(96): WC_Session_Handler->get_session_data()
       #2 /wp-content/plugins/woocommerce/includes/class-wc-session-handler.php(71): WC_Session_Handler->init_session_cookie()
       #3 /wp-content/plugins/svea-checkout-for-woocommerce/inc/Webhook_Handler.php(113): WC_Session_Handler->init()
       #4 /wp-content/plugins/svea-checkout-for-woocommerce/inc/Webhook_Handler.php(584): Svea_Checkout_For_Woocommerce\Webhook_Handler::get_cart_session()
       #5 /wp-includes/class-wp-hook.php(324): Svea_Checkout_For_Woocommerce\Webhook_Handler->process_push()
       #6 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
       #7 /wp-includes/plugin.php(517): WP_Hook->do_action()
       #8 /wp-content/plugins/woocommerce/includes/class-wc-api.php(161): do_action()
       #9 /wp-includes/class-wp-hook.php(324): WC_API->handle_api_requests()
       #10 /wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
       #11 /wp-includes/plugin.php(565): WP_Hook->do_action()
       #12 /wp-includes/class-wp.php(418): do_action_ref_array()
       #13 /wp-includes/class-wp.php(813): WP->parse_request()
       #14 /wp-includes/functions.php(1336): WP->main()
       #15 /wp-blog-header.php(16): wp()
       #16 /index.php(17): require('...')
       #17 {main}
         thrown i /wp-content/plugins/woocommerce/includes/class-wc-session-handler.php på linje 456
       ```
   

Viewing 1 replies (of 1 total)

 *  Plugin Author [The Generation](https://wordpress.org/support/users/thegeneration/)
 * (@thegeneration)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/critical-uncaught-typeerror-4/#post-17312102)
 * This issue has been resolved in version 2.6.0 and it only affected expired carts
   Please ensure that you are using the latest version of the plugin. If you’re 
   still seeing these errors then please get back to us!

Viewing 1 replies (of 1 total)

The topic ‘CRITICAL Uncaught TypeError’ is closed to new replies.

 * ![](https://ps.w.org/svea-checkout-for-woocommerce/assets/icon-128x128.gif?rev
   =2728301)
 * [Svea Checkout for WooCommerce](https://wordpress.org/plugins/svea-checkout-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/svea-checkout-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/svea-checkout-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/svea-checkout-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/svea-checkout-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/svea-checkout-for-woocommerce/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [The Generation](https://wordpress.org/support/users/thegeneration/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/critical-uncaught-typeerror-4/#post-17312102)
 * Status: resolved