Title: JQuery / javascript errors / 3.0.1
Last modified: April 9, 2017

---

# JQuery / javascript errors / 3.0.1

 *  [David](https://wordpress.org/support/users/bennettskaya/)
 * (@bennettskaya)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/jquery-javascript-errors-3-0-1/)
 * Before I upgraded to WooCommerce 3, Stripe Checkout was working OK.
    I upgraded
   to WooCommerce 3.0.1 on the dev site and I am now getting these error with Stripe
   Checkout. I have no idea how to home in on the solution. I am using the Canvas
   theme from WooCommerce.
 * 1.
    On the page I am getting this: “Warning Please enter your card details to
   make a payment. Developers: Please make sure that you are including jQuery and
   there are no JavaScript errors on the page.”
 * 2.
    I am getting the same message in the debug log: 04-09-2017 @ 18:35:15 – Error:
   Please enter your card details to make a payment. Developers: Please make sure
   that you are including jQuery and there are no JavaScript errors on the page.
 * 3.
    In Chrome browser View / developer / Javascript console, I am getting this:
 * cart-fragments.min.js:1 Uncaught TypeError: a.cookie is not a function
    at HTMLDocument.
   <anonymous> (cart-fragments.min.js:1) at i (jquery.js:2) at Object.fireWith [
   as resolveWith] (jquery.js:2) at Function.ready (jquery.js:2) at HTMLDocument.
   K (jquery.js:2) (anonymous) @ cart-fragments.min.js:1 i @ jquery.js:2 fireWith
   @ jquery.js:2 ready @ jquery.js:2 K @ jquery.js:2

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

 *  [Rynald0s](https://wordpress.org/support/users/rynald0s/)
 * (@rynald0s)
 * Automattic Happiness Engineer
 * [9 years, 1 month ago](https://wordpress.org/support/topic/jquery-javascript-errors-3-0-1/#post-9012640)
 * Hi David!
 * It’s possibly your theme (not being compatible with `3.0+`)
 * You can temporarily switch to a default WordPress theme, such as [Storefront](https://wordpress.org/themes/storefront/),
   to see if the problem still exists. If the problem goes away, you’ll have to 
   contact your theme authors for an update.
 * See: [https://docs.woocommerce.com/document/stripe/#section-28](https://docs.woocommerce.com/document/stripe/#section-28)
 * Cheers!
 *  Thread Starter [David](https://wordpress.org/support/users/bennettskaya/)
 * (@bennettskaya)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/jquery-javascript-errors-3-0-1/#post-9012645)
 * Thanks – I had already read the page you referred to. The thing is though that
   I am using Canvas – a theme made by WooCommerce. So if the theme is the problem,
   then it’s a bigger problem that my issue.
 *  Thread Starter [David](https://wordpress.org/support/users/bennettskaya/)
 * (@bennettskaya)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/jquery-javascript-errors-3-0-1/#post-9012775)
 * More Info:
    I set DEBUG to true and got the following.
 * Notice: get_product is deprecated since version 3.0! Use wc_get_product instead.
   in …/wp-includes/functions.php on line 3829
 * Notice: product_type was called incorrectly. Product properties should not be
   accessed directly. Please see Debugging in WordPress for more information. (This
   message was added in version 3.0.) in …/wp-includes/functions.php on line 4137
 *  Plugin Contributor [Mike Jolley](https://wordpress.org/support/users/mikejolley/)
 * (@mikejolley)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/jquery-javascript-errors-3-0-1/#post-9014305)
 * Hi David, those deprecation warnings can be ignored if hidden in production. 
   Extension developers just need to update their code.
 * The cart-fragments.min.js issue is the one you need to fix. It has a js-cookie
   dependency which may be missing. Look on your page for assets/js/js-cookie/js.
   cookie.min.js
 * If you have minify or caching plugins, ensure they are flushed.
 *  Thread Starter [David](https://wordpress.org/support/users/bennettskaya/)
 * (@bennettskaya)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/jquery-javascript-errors-3-0-1/#post-9018667)
 * Hi Mike,
    Flushing the Autoptimise plugin did it.
 * Thank you.
 * Happy again.

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

The topic ‘JQuery / javascript errors / 3.0.1’ 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

 * [javascript errors](https://wordpress.org/support/topic-tag/javascript-errors/)

 * 5 replies
 * 3 participants
 * Last reply from: [David](https://wordpress.org/support/users/bennettskaya/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/jquery-javascript-errors-3-0-1/#post-9018667)
 * Status: not resolved