Isolating the problem (mark completed items with an [x]):
[ X ] I have deactivated other plugins and themes and confirmed this bug occurs when only WooCommerce + Storefront theme are active.
[ X ] I can reproduce this bug consistently using the steps below.
I'm experiencing a number of console errors with a new WooCommerce site I'm working on.
The errors seem to stem from WooCommerce directly, the most common of which is an error in wc-blocks-middleware.js.
I'm seeing a slightly different message in different browsers, but they seem the same. In Safari, I'm getting:
Unhandled Promise Rejection: TypeError: undefined is not an object (evaluating 'e.Nonce')
(anonymous function) — wc-blocks-middleware.js:1:1768
ye — wc-blocks-data.js:1:20448
(anonymous function) — wc-blocks-data.js:1:21459
promiseReactionJob
In Firefox, I'm getting (numerous times on each page load):
Uncaught (in promise) TypeError: e is undefined wc-blocks-middleware.js:1:1753
setNonce http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-middleware.js?ver=397e7b9fdac5b97dab48de9dbcd81edd:1
ye http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-data.js?ver=892ed73ca32d3b4ec7c07493651ca9a1:1
be http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-data.js?ver=892ed73ca32d3b4ec7c07493651ca9a1:1
promise callback*170/be/< http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-data.js?ver=892ed73ca32d3b4ec7c07493651ca9a1:1
be http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-data.js?ver=892ed73ca32d3b4ec7c07493651ca9a1:1
API_FETCH_WITH_HEADERS http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-data.js?ver=892ed73ca32d3b4ec7c07493651ca9a1:1
Redux 13
C http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
k http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
ie http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
a http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
setTimeout handler*a http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
i http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
d http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/price-filter-wrapper-frontend.js?ver=859c7696992bdd22d9c0:1
d http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:9
l http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
g http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
d http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:9
Ke http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:9
a http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/price-filter-wrapper-frontend.js?ver=859c7696992bdd22d9c0:1
b http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/price-filter-wrapper-frontend.js?ver=859c7696992bdd22d9c0:1
a http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/attribute-filter-wrapper-frontend.js?ver=5b3155f855d33b652639:1
ct http://localhost:8888/mysite/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9
Bt http://localhost:8888/mysite/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9
os http://localhost:8888/mysite/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9
Ur http://localhost:8888/mysite/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9
Ir http://localhost:8888/mysite/wp-includes/js/dist/vendor/react-dom.min.js?ver=17.0.1:9
Sometimes I'll see this error in Firefox instead:
Uncaught (in promise) Error: There is no route for the given namespace (/wc/store/v1) in the store wc-blocks-data.js:1:16690
w http://localhost:8888/mysite/wp-content/plugins/woocommerce/packages/woocommerce-blocks/build/wc-blocks-data.js?ver=892ed73ca32d3b4ec7c07493651ca9a1:1
t http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
p http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
r http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
i http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
a http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
f http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
p http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
x http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
i Redux
C http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
k http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
a http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
a http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
i http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
a http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
d http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
d http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
P http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
Redux 9
C http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
k http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
ie http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
a http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
setTimeout handler*a http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
i http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
a http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
d http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
d http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
P http://localhost:8888/mysite/wp-includes/js/dist/data.min.js?ver=d8cf5b24f99c64ae47d6:2
Redux 3
I've disabled every plugin bar WooCommerce, which is up to date (version 7.5.1), and reverted to the Storefront theme, with no customisation at all. WordPress is up to date, as are my browsers.
I'm at a bit of a loss as to why the errors are appearing. Sometimes they don't appear, but most of the time they do.
For the most part, the store seems to work okay, but there's the occasional hiccup, and the messages don't fill me with confidence.
Removing all sidebar widgets causes the errors to stop.
Describe the bug
Isolating the problem (mark completed items with an [x]):
I'm experiencing a number of console errors with a new WooCommerce site I'm working on.
The errors seem to stem from WooCommerce directly, the most common of which is an error in
wc-blocks-middleware.js
.I'm seeing a slightly different message in different browsers, but they seem the same. In Safari, I'm getting:
In Firefox, I'm getting (numerous times on each page load):
Sometimes I'll see this error in Firefox instead:
I've disabled every plugin bar WooCommerce, which is up to date (version 7.5.1), and reverted to the Storefront theme, with no customisation at all. WordPress is up to date, as are my browsers.
I'm at a bit of a loss as to why the errors are appearing. Sometimes they don't appear, but most of the time they do.
For the most part, the store seems to work okay, but there's the occasional hiccup, and the messages don't fill me with confidence.
Removing all sidebar widgets causes the errors to stop.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No console errors.
Browser Environment
WordPress Environment
See details below.