a.cookie is not a function
-
After updating the WooCommerce plugin (3.3.1) and Woodmart theme (1.10.1) a new error started appearing the browser JavaScript error console on the Shop page:
`
functions.min.js?ver=1.10.1:1 Uncaught TypeError: a.cookie is not a function
at Object.headerBanner (functions.min.js?ver=1.10.1:1)
at Object.init (functions.min.js?ver=1.10.1:1)
at HTMLDocument.<anonymous> (functions.min.js?ver=1.10.1:3)
at i (jquery.js?ver=1.12.4:2)
at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4:2)
at Function.ready (jquery.js?ver=1.12.4:2)
at HTMLDocument.K (jquery.js?ver=1.12.4:2)
headerBanner @ functions.min.js?ver=1.10.1:1
init @ functions.min.js?ver=1.10.1:1
(anonymous) @ functions.min.js?ver=1.10.1:3
i @ jquery.js?ver=1.12.4:2
fireWith @ jquery.js?ver=1.12.4:2
ready @ jquery.js?ver=1.12.4:2
K @ jquery.js?ver=1.12.4:2
`
See attached screenshot.
PS: Editing own post is not possible?
Attachments:
You must be
logged in to view attached files.
Hello,
We just checked your website but didn’t see this error. Try to clear your browser cache and check again.
Thank you.
Clearing the cache did not help 🙂
Google Chrome 64.0.3282.140
WP: 4.9.4
WC: 3.3.1
Woodmart: 1.10.1
Most probably it was related to a conflict with the MailChimp popup signup form delivered via the MailChimp WC plugin https://github.com/mailchimp/mc-woocommerce/issues/198
After the popup was disabled the error seems to have disappeared. Will keep an eye on this and report back.
OK, contact us if you will notice this problem again.