到目前为止,我一直遇到这个错误:在我的 wordpress 网站的英文版上,可变产品的“添加到购物篮”按钮被禁用,而意大利版的一切正常。尽管调试中出现了几个错误,但我发现该错误与从 Google Chrome 获得的以下代码有关,我不知道如何修复或避免..任何帮助或提示将不胜感激..
Uncaught TypeError: Cannot read property 'length' of null
at e.isMatch (add-to-cart-variation.min.js?ver=2.6.12:1)
at e.findMatchingVariations (add-to-cart-variation.min.js?ver=2.6.12:1)
at HTMLSelectElement.<anonymous> (add-to-cart-variation.min.js?ver=2.6.12:1)
at Function.each (jquery.js?ver=1.12.4:2)
at a.fn.init.each (jquery.js?ver=1.12.4:2)
at HTMLFormElement.e.onUpdateAttributes (add-to-cart-variation.min.js?ver=2.6.12:1)
at HTMLFormElement.dispatch (jquery.js?ver=1.12.4:3)
at HTMLFormElement.r.handle (jquery.js?ver=1.12.4:3)
at Object.trigger (jquery.js?ver=1.12.4:3)
at Object.a.event.trigger (jquery-migrate.min.js?ver=1.4.1:2)
e.isMatch @ add-to-cart-variation.min.js?ver=2.6.12:1
e.findMatchingVariations @ add-to-cart-variation.min.js?ver=2.6.12:1
(anonymous) @ add-to-cart-variation.min.js?ver=2.6.12:1
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
e.onUpdateAttributes @ add-to-cart-variation.min.js?ver=2.6.12:1
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3
trigger @ jquery.js?ver=1.12.4:3
a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
(anonymous) @ jquery.js?ver=1.12.4:3
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
trigger @ jquery.js?ver=1.12.4:3
e.onFindVariation @ add-to-cart-variation.min.js?ver=2.6.12:1
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3
trigger @ jquery.js?ver=1.12.4:3
a.event.trigger @ jquery-migrate.min.js?ver=1.4.1:2
(anonymous) @ jquery.js?ver=1.12.4:3
each @ jquery.js?ver=1.12.4:2
each @ jquery.js?ver=1.12.4:2
trigger @ jquery.js?ver=1.12.4:3
e.onChange @ add-to-cart-variation.min.js?ver=2.6.12:1
dispatch @ jquery.js?ver=1.12.4:3
r.handle @ jquery.js?ver=1.12.4:3