Support » Plugin: WooCommerce » conflict with wp rocket cdn delivery

  • Hi,

    Since the update wp rocket is causing an error on the cart and checkout page of my site. For that reason I’ve temporarily deactivated wp rocket and reactivated W3TC which works perfectly.

    The error only appears when running wp rocket and when the cdn delivery is setup (including for ssl). Without cdn the error doesn’t appear.
    The error is:
    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)

    It says that the error is being caused by cart-fragments.min.js

    Any idea what might be causing this or how it can be resolved?

Viewing 5 replies - 1 through 5 (of 5 total)
  • WP Rocket by default excludes cart and checkout pages from being cached. What SSL is being used on the site, one installed on the hosting server or one being provided by the CDN?

    This seems to be a WooCommerce issue in fragments.

    the a.cookie function is broken in the latest update in cart fragments.

    You can see an example here –

    Its across all my sites using WooCommerce. Can you guys release a fix to this quickly please.

    BTW – this is woocommerce 3.0 that has this issue.

    I agree it’s a woocommerce issue. The interesting thing is that in my case the error only appears on the cart and checkout page when using wp rocket and having the cdn activated. I know wp rocket excludes cart and checkout page but there appears to still be some conflict.
    Btw, we use ev ssl on the hosting server.


    Hi all,
    I’m so glad I found this page. It confirms that I’ve not lost my mind. I also did some troubleshooting on this and agree with the above.

    As of today (5 June 2017) this issue is still ongoing. My Cart and Checkout pages are not rendering correctly and I’ve whittled it down to a conflict between WP Rocket with CDN activated and WooCommerce. If I turn off the CDN (I use Stackpath), it goes away. Turn it back on, problem comes back.

    Until this is resolved, a poor man’s workaround is using the plugin called “Plugin Organizer.” I was able to deactivate the WP Rocket plugin ONLY on the affected pages and then the pages were able to render correctly. Again, not a pretty “solution” since it’s not a solution, but at least something to get your site going to make sales without looking like a back alley operator.

    If anyone found a proper fix to this, I’m all ears.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘conflict with wp rocket cdn delivery’ is closed to new replies.