Title: Add to Cart Javascript Error
Last modified: February 14, 2020

---

# Add to Cart Javascript Error

 *  Resolved [tutkod](https://wordpress.org/support/users/tutkod/)
 * (@tutkod)
 * [6 years, 4 months ago](https://wordpress.org/support/topic/add-to-cart-javascript-error/)
 * Hi,
 * I looked through the Knowledge base, and I do not see any clear resolution to
   this Javascript error. I have added the error in the WooCommerce ‘Status’ page
   below, and I am hoping someone will be able to identify the next steps from it.
 * Fatal error: Uncaught Error: Call to undefined function prepare_request() in /
   app/public/wp-content/themes/CherryFramework/admin/data_management/update.php:
   85 Stack trace: #0 /app/public/wp-includes/class-wp-hook.php(288): my_theme_api_call(
   false, ‘theme_informati…’, Object(stdClass)) #1 /app/public/wp-includes/plugin.
   php(206): WP_Hook->apply_filters(false, Array) #2 /app/public/wp-admin/includes/
   theme.php(485): apply_filters(‘themes_api’, false, ‘theme_informati…’, Object(
   stdClass)) #3 /app/public/wp-content/plugins/woocommerce/includes/admin/class-
   wc-admin-status.php(239): themes_api(‘theme_informati…’, Object(stdClass)) #4/
   app/public/wp-content/plugins/woocommerce/packages/woocommerce-rest-api/src/Controllers/
   Version2/class-wc-rest-system-status-v2-controller.php(1025): WC_Admin_Status::
   get_latest_theme_version(Object(WP_Theme)) #5 /app/public/wp-content/plugins/
   woocommerce/packages/woocommerce-rest-api/src/Controllers/Version2/class-wc-rest-
   system-status-v2-controller.php(594): WC_REST_System_Status_V2_Controll in /app/
   public/wp-content/themes/CherryFramework/admin/data_management/update.php on 
   line 85
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fadd-to-cart-javascript-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Missy a11n](https://wordpress.org/support/users/m155y5/)
 * (@m155y5)
 * Automattic Happiness Engineer
 * [6 years, 4 months ago](https://wordpress.org/support/topic/add-to-cart-javascript-error/#post-12452465)
 * Hi [@tutkod](https://wordpress.org/support/users/tutkod/) – it looks like your
   site may be having issues with the Cherry Framework (your theme).
 * To begin, please make sure that your theme is up to date. Next, try switching
   your theme to the Storefront theme ([https://woocommerce.com/storefront/](https://woocommerce.com/storefront/))
   and see if it works correctly. If it does, you’ll want to contact your theme’s
   developers and see if they have a fix/update.
 *  [Missy a11n](https://wordpress.org/support/users/m155y5/)
 * (@m155y5)
 * Automattic Happiness Engineer
 * [6 years, 4 months ago](https://wordpress.org/support/topic/add-to-cart-javascript-error/#post-12479941)
 * We haven’t heard back from you in a while, so I’m going to go ahead and mark 
   this thread as resolved. If you have any other questions please feel free to 
   start a new thread.

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

The topic ‘Add to Cart Javascript Error’ 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/)

## Tags

 * [add to cart error](https://wordpress.org/support/topic-tag/add-to-cart-error/)
 * [javascript error](https://wordpress.org/support/topic-tag/javascript-error/)

 * 2 replies
 * 2 participants
 * Last reply from: [Missy a11n](https://wordpress.org/support/users/m155y5/)
 * Last activity: [6 years, 4 months ago](https://wordpress.org/support/topic/add-to-cart-javascript-error/#post-12479941)
 * Status: resolved