TypeError: Cannot read properties of undefined (reading ‘replace’)
-
Hi team,
I’m having an issue with the WooCommerce Home/Analysis dashboard (WooCommerce Admin). When I open WooCommerce → Home / Analysis, the page crashes and shows an error screen. In the browser console I consistently get:
TypeError: Cannot read properties of undefined (reading 'replace')and the stack trace points to WooCommerce Admin / WordPress core scripts, for example:
at ll (https://aoralife.com/wp-content/plugins/woocommerce/assets/client/admin/components/index.js?ver=aaab180e037e84550a39:2:600773) at https://aoralife.com/wp-includes/js/dist/viewport.min.js?ver=f07b4909c08cfe9de4e2:2:1394 at WithViewportMatch(ll) (https://aoralife.com/wp-includes/js/dist/compose.min.js?ver=7a9b375d8c19cf9d3d9b:9:13904) at v (https://aoralife.com/wp-content/plugins/woocommerce/assets/client/admin/chunks/dashboard-charts.js?ver=f5522d7a910eb9fa154d:1:775) at https://aoralife.com/wp-includes/js/dist/data.min.js?ver=f940198280891b0b6318:9:3361 ... at D (https://aoralife.com/wp-content/plugins/woocommerce/assets/client/admin/chunks/customizable-dashboard.js?ver=f76e89c4d8f4e59ce880:1:6906) ... at G (https://aoralife.com/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=0cd23dbb9aaf179ae6e6:2:523670)What I’ve tried so far (no fix):
- Switched site language to English and back.
- Disabled JS/CSS minify/combine/defer and fully disabled WP Fastest Cache.
- Purged all caches (plugin + CDN/hosting where possible).
- Ran WooCommerce Status → Tools (cleared analytics cache, transients, regenerated analytics tables, updated inbox notifications, etc.).
- Reinstalled WooCommerce.
- Removed any custom code/snippets I had added.
- Created a brand-new admin user and tested — same issue.
So the problem seems global to wc-admin (not user-specific) and likely a plugin conflict or a compatibility issue with the current WordPress/WooCommerce versions. Could you advise on next steps or confirm if this is a known issue?
Thanks!
The page I need help with: [log in to see the link]
You must be logged in to reply to this topic.