Title: Class &#8216;CoCart_Session_Handler&#8217; not found
Last modified: March 4, 2022

---

# Class ‘CoCart_Session_Handler’ not found

 *  Resolved [sacfc](https://wordpress.org/support/users/sacfc/)
 * (@sacfc)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/class-cocart_session_handler-not-found/)
 * A check of our logs has identified a fatal error following the recent upgrade
 *     ```
       2022-03-04T02:14:03+00:00 CRITICAL Uncaught Error: Class 'CoCart_Session_Handler' not found in /home/fanzone/public_html/wp-content/plugins/cart-rest-api-for-woocommerce/includes/class-cocart-session.php:94
       Stack trace:
       #0 /home/fanzone/public_html/wp-includes/class-wp-hook.php(307): CoCart_API_Session::cleanup_carts()
       #1 /home/fanzone/public_html/wp-includes/class-wp-hook.php(331): WP_Hook->apply_filters('', Array)
       #2 /home/fanzone/public_html/wp-includes/plugin.php(522): WP_Hook->do_action(Array)
       #3 /home/fanzone/public_html/wp-cron.php(138): do_action_ref_array('cocart_cleanup_...', Array)
       #4 {main}
         thrown in /home/fanzone/public_html/wp-content/plugins/cart-rest-api-for-woocommerce/includes/class-cocart-session.php on line 94
       ```
   
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fclass-cocart_session_handler-not-found%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * (@sebd86)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/class-cocart_session_handler-not-found/#post-15425628)
 * OK. Thank you for reporting the error. I will try to resolve this quickly.
 *  Plugin Author [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * (@sebd86)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/class-cocart_session_handler-not-found/#post-15446756)
 * Patch v3.1.2 will solve this issue.

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

The topic ‘Class ‘CoCart_Session_Handler’ not found’ is closed to new replies.

 * ![](https://ps.w.org/cart-rest-api-for-woocommerce/assets/icon-256x256.png?rev
   =3220815)
 * [CoCart - Headless REST API for WooCommerce](https://wordpress.org/plugins/cart-rest-api-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cart-rest-api-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cart-rest-api-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/cart-rest-api-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cart-rest-api-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cart-rest-api-for-woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Sébastien Dumont](https://wordpress.org/support/users/sebd86/)
 * Last activity: [4 years, 3 months ago](https://wordpress.org/support/topic/class-cocart_session_handler-not-found/#post-15446756)
 * Status: resolved