• Resolved fog1

    (@fog1)


    Hello,

    I am having an issue on my site when accessing Woocommerce -> analytics. The error is: “TypeError: can’t access property “replace”, t is undefined”. I’ve seen other posts related to this error such as: https://ww.wp.xz.cn/support/topic/typeerror-cannot-read-properties-of-undefined-reading-replace-2/

    I have two separated environments

    Two separate environments were used during troubleshooting to isolate the issue:

    • Affected Environment : WordPress 6.9.4 | WooCommerce 9.X.X
    • Functioning Environment : WordPress 6.9.4 | WooCommerce 10.X.X (Compatibility Prep branch)

    Accessing the WooCommerce Analytics dashboard (specifically the Revenue and Orders tabs) results in a blank UI rendering failure (the aforementioned error).

    • The Products tab does not crash the page but displays an empty table.
    • The browser console registers a fatal React/JavaScript error originating from the WordPress core i18n.js library.
    Here is a trace of the console error:


    Uncaught TypeError: can't access property "replace", string is undefined

    sprintf https://XXXXXXXXXXXX/wp-includes/js/dist/i18n.js?ver=6b3ae5bd3b8d9598492d:172

    sprintf_sprintf https://XXXXXXXXXXXX/wp-includes/js/dist/i18n.js?ver=6b3ae5bd3b8d9598492d:246

    render https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/components/index.js?ver=1772485195:2

    finishClassComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:19791

    updateClassComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:19737

    beginWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:21660

    callCallback https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4151

    invokeGuardedCallbackDev https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4200

    invokeGuardedCallback https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4264

    beginWork$1 https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:27500

    performUnitOfWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26606

    workLoopConcurrent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26592

    renderRootConcurrent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26554

    performConcurrentWorkOnRoot https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25787

    workLoop https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2653

    flushWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2626

    performWorkUntilDeadline https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2920

    EventHandlerNonNull* https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2958

    <anonymous> https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:13

    <anonymous> https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:14

    2 i18n.js:172:2

    Uncaught TypeError: can't access property "replace", string is undefined

    sprintf https://XXXXXXXXXXXX/wp-includes/js/dist/i18n.js?ver=6b3ae5bd3b8d9598492d:172

    sprintf_sprintf https://XXXXXXXXXXXX/wp-includes/js/dist/i18n.js?ver=6b3ae5bd3b8d9598492d:246

    render https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/components/index.js?ver=1772485195:2

    finishClassComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:19791

    updateClassComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:19737

    beginWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:21660

    callCallback https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4151

    invokeGuardedCallbackDev https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4200

    invokeGuardedCallback https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4264

    beginWork$1 https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:27500

    performUnitOfWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26606

    workLoopSync https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26515

    renderRootSync https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26483

    performSyncWorkOnRoot https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26134

    flushSyncCallbacks https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:12052

    ensureRootIsScheduled https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25700

    ensureRootIsScheduled https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25692

    scheduleUpdateOnFiber https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25580

    forceStoreRerender https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:16168

    handleStoreChange https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:16144

    onStoreChange https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2769

    onChange https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2775

    unsubscribeFromStore https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2374

    instantiate https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1979

    dispatch https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:767

    dispatch https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:766

    createThunkMiddleware https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1138

    createMiddleware Redux

    promiseMiddleware https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1100

    createResolversCacheMiddleware https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1127

    fulfillSelector https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2146

    fulfillSelector https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2136

    selectorResolver https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2158

    pE https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=1772485195:2

    h https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/chunks/2304.js?ver=aab454e2a264e44181e7:1

    mapSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2892

    mapResult https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2814

    __unstableMarkListeningStores https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2303

    withPlugins https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2344

    updateValue https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2813

    Store https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2848

    _useMappingSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2864

    useSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2879

    withSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2893

    renderWithHooks https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:15496

    mountIndeterminateComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:20113

    beginWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:21636

    beginWork$1 https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:27475

    performUnitOfWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26606

    workLoopConcurrent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26592

    renderRootConcurrent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26554

    performConcurrentWorkOnRoot https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25787

    workLoop https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2653

    flushWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2626

    performWorkUntilDeadline https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2920

    EventHandlerNonNull* https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2958

    <anonymous> https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:13

    <anonymous> https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:14

    i18n.js:172:2

    sprintf https://XXXXXXXXXXXX/wp-includes/js/dist/i18n.js?ver=6b3ae5bd3b8d9598492d:172

    sprintf_sprintf https://XXXXXXXXXXXX/wp-includes/js/dist/i18n.js?ver=6b3ae5bd3b8d9598492d:246

    render https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/components/index.js?ver=1772485195:2

    finishClassComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:19791

    updateClassComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:19737

    beginWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:21660

    callCallback https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4151

    invokeGuardedCallbackDev https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4200

    invokeGuardedCallback https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4264

    beginWork$1 https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:27500

    performUnitOfWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26606

    workLoopSync https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26515

    renderRootSync https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26483

    performSyncWorkOnRoot https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26134

    flushSyncCallbacks https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:12052

    ensureRootIsScheduled https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25700

    (Async: VoidFunction)

    ensureRootIsScheduled https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25692

    scheduleUpdateOnFiber https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25580

    forceStoreRerender https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:16168

    handleStoreChange https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:16144

    onStoreChange https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2769

    onChange https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2775

    unsubscribeFromStore https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2374

    instantiate https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1979

    dispatch https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:767

    forEach self-hosted:2191

    dispatch https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:766

    createThunkMiddleware https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1138

    createMiddleware Redux

    promiseMiddleware https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1100

    createResolversCacheMiddleware https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1127

    fulfillSelector https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2146

    InterpretGeneratorResume self-hosted:1312

    AsyncFunctionNext self-hosted:780

    (Async: async)

    fulfillSelector https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2136

    selectorResolver https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2158

    pE https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=1772485195:2

    h https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/chunks/2304.js?ver=aab454e2a264e44181e7:1

    mapSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2892

    mapResult https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2814

    __unstableMarkListeningStores https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2303

    withPlugins https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2344

    updateValue https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2813

    Store https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2848

    _useMappingSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2864

    useSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2879

    withSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2893

    renderWithHooks https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:15496

    mountIndeterminateComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:20113

    beginWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:21636

    beginWork$1 https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:27475

    performUnitOfWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26606

    workLoopConcurrent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26592

    renderRootConcurrent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26554

    performConcurrentWorkOnRoot https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25787

    workLoop https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2653

    flushWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2626

    performWorkUntilDeadline https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2920

    (Async: EventHandlerNonNull)

    <anonymous> https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2958

    <anonymous> https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:13

    <anonymous> https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:14

    Uncaught TypeError: can't access property "replace", string is undefined

    sprintf https://XXXXXXXXXXXX/wp-includes/js/dist/i18n.js?ver=6b3ae5bd3b8d9598492d:172

    sprintf_sprintf https://XXXXXXXXXXXX/wp-includes/js/dist/i18n.js?ver=6b3ae5bd3b8d9598492d:246

    render https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/components/index.js?ver=1772485195:2

    finishClassComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:19791

    updateClassComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:19737

    beginWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:21660

    callCallback https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4151

    invokeGuardedCallbackDev https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4200

    invokeGuardedCallback https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:4264

    beginWork$1 https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:27500

    performUnitOfWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26606

    workLoopSync https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26515

    renderRootSync https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26483

    recoverFromConcurrentError https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25899

    performSyncWorkOnRoot https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26145

    flushSyncCallbacks https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:12052

    ensureRootIsScheduled https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25700

    ensureRootIsScheduled https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25692

    scheduleUpdateOnFiber https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25580

    forceStoreRerender https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:16168

    handleStoreChange https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:16144

    onStoreChange https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2769

    onChange https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2775

    unsubscribeFromStore https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2374

    instantiate https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1979

    dispatch https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:767

    dispatch https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:766

    createThunkMiddleware https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1138

    createMiddleware Redux

    promiseMiddleware https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1100

    createResolversCacheMiddleware https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:1127

    fulfillSelector https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2146

    fulfillSelector https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2136

    selectorResolver https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2158

    pE https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=1772485195:2

    h https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/chunks/2304.js?ver=aab454e2a264e44181e7:1

    mapSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2892

    mapResult https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2814

    __unstableMarkListeningStores https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2303

    withPlugins https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2344

    updateValue https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2813

    Store https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2848

    _useMappingSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2864

    useSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2879

    withSelect https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2893

    renderWithHooks https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:15496

    mountIndeterminateComponent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:20113

    beginWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:21636

    beginWork$1 https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:27475

    performUnitOfWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26606

    workLoopConcurrent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26592

    renderRootConcurrent https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:26554

    performConcurrentWorkOnRoot https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react-dom.js?ver=18.3.1.1:25787

    workLoop https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2653

    flushWork https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2626

    performWorkUntilDeadline https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2920

    EventHandlerNonNull* https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:2958

    <anonymous> https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:13

    <anonymous> https://XXXXXXXXXXXX/wp-includes/js/dist/vendor/react.js?ver=18.3.1.1:14

    i18n.js:172:2

    The above error occurred in the <gl> component:

    gl@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/components/index.js?ver=1772485195:2:606741

    withViewportMatch/</<@https://XXXXXXXXXXXX/wp-includes/js/dist/viewport.js?ver=a67acba4cc142a907c6d:161:29

    @https://XXXXXXXXXXXX/wp-includes/js/dist/compose.js?ver=7c895b31cd7a903b5229:2886:10

    g@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/chunks/2304.js?ver=aab454e2a264e44181e7:1:756

    withSelect/</<@https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2893:33

    @https://XXXXXXXXXXXX/wp-includes/js/dist/compose.js?ver=7c895b31cd7a903b5229:2886:10

    div

    withEmotionCache/<@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:14473:47

    UnforwardedView@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:15206:25

    UnconnectedCardBody@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:41327:18

    div

    withEmotionCache/<@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:14473:47

    UnforwardedView@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:15206:25

    div

    withEmotionCache/<@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:14473:47

    UnforwardedView@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:15206:25

    BaseContextSystemProvider@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:11926:35

    UnconnectedCard@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:41175:14

    div

    y@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/chunks/dashboard-charts.js?ver=f7c18218b38080c1aee8:1:12246

    div

    div

    E@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/chunks/dashboard-charts.js?ver=f7c18218b38080c1aee8:1:16091

    Suspense

    component

    div

    T@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/chunks/customizable-dashboard.js?ver=e1b264b34658249d7dc6:1:6775

    53847/z<@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/chunks/customizable-dashboard.js?ver=e1b264b34658249d7dc6:1:7825

    withSelect/</<@https://XXXXXXXXXXXX/wp-includes/js/dist/data.js?ver=c64d89d47908ae6c6928:2893:33

    @https://XXXXXXXXXXXX/wp-includes/js/dist/compose.js?ver=7c895b31cd7a903b5229:2886:10

    Suspense

    u@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/chunks/dashboard.js?ver=6c791cb30483931a36c1:1:286

    Suspense

    Pe@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=1772485195:2:162737

    div

    div

    me@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=1772485195:2:156890

    div

    SlotFillProvider@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:33755:26

    provider_SlotFillProvider@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:33828:35

    Provider@https://XXXXXXXXXXXX/wp-includes/js/dist/components.js?ver=316cf67f025fcb3e30cc:33877:18

    w@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/admin-layout/index.js?ver=1772485195:1:1978

    Pn@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=1772485195:2:224097

    O@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=1772485195:2:125367

    P@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=1772485195:2:124875

    a@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=1772485195:2:119332

    Dn<@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=1772485195:2:226750

    Jd/</<@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=1772485195:2:156426

    Zd/</<@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=1772485195:2:157505

    Yd/</<@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=1772485195:2:154316

    Yd/</<@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=1772485195:2:154316

    Wd/</<@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/data/index.js?ver=1772485195:2:155541

    zn@https://XXXXXXXXXXXX/wp-content/plugins/woocommerce/assets/client/admin/app/index.js?ver=1772485195:2:227663

    React will try to recreate this component tree from scratch using the error boundary you provided, zn. react-dom.js:18714:17



    Troubleshooting Actions & Results

    Phase 1: Standard Conflict Testing

    • Action: Deactivated all plugins and switched to a default theme.
    • Result: Error persists.
    • Action: Disabled Redis cache plugin.
    • Result: Error persists.

    Phase 2: Analytics Data & Cache Reset

    • Action: Executed “Clear analytics cache” and “Clear transients” via WooCommerce > Status > Tools. Performed hard browser refreshes and tested in Incognito mode.
    • Result: Error persists.
    • Action: Navigated to Analytics > Settings, executed “Delete Previously Imported Data”, and attempted to re-import a small date range.
    • Result: Data failed to re-import; dashboard remained broken.

    Phase 3: Database Integrity Checks

    • Action: Queried wp_wc_order_stats for malformed/null dates (date_created < '1971-01-01 00:00:00').
    • Result: 0 rows returned. No corrupted date entries found. (Note: Initial query using literal '0000-00-00 00:00:00' returned SQL Error #1525 due to STRICT_TRANS_TABLES).
    • Action: Queried for orders missing the _order_currency postmeta.
    • Result: Rows were found, but the exact same rows exist in the functioning DEV environment.
    • Action: Manually executed TRUNCATE on wp_wc_order_stats, wp_wc_order_product_lookup, wp_wc_order_tax_lookup, and wp_wc_order_coupon_lookup across both functional and affected environments.
    • Result: Affected environment still throws the t is undefined error on page load despite empty tables. Functioning environment continues to function normally without requiring a re-import.

    Phase 4: Localization & Translation Isolation

    • Action: Verified WPML configuration. Deactivated WPML and WPML String Translation entirely.
    • Result: Error persists.
    • Action: Checked wp-config.php for WPLANG definition and wp-content/ for mu-plugins.
    • Result: Neither exist.
    • Action: Changed user profile language from German to English (US) and ran “Update Translations” from the WP dashboard.
    • Result: Error persists.
    • Action: Verified WooCommerce Currency settings. Re-saved currency options to ensure wp_options values were populated. Both affected and functioning environments have the exact same configuration.
    • Result: Error persists.

    The solution provided by @fonderco in the linked post helps us access the page without it crashing, however as that user indicates this is a short term emergency fix, it’s not a long term solution.

    • This topic was modified 2 weeks, 3 days ago by fog1. Reason: Accidentally submitted before I had completed it
    • This topic was modified 2 weeks, 3 days ago by fog1. Reason: Expanded with useful information

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Frank Remmy (woo-hc)

    (@frankremmy)

    Hi @fog1,

    Thanks for one of the most thorough bug reports we’ve seen.

    The error is crashing inside WP’s sprintf (in i18n.js) because it’s receiving undefined as the format string argument instead of an actual string. This happens when the Analytics component tries to look up a translatable string and the i18n system returns undefined, meaning the string key isn’t found in the translation data at all, rather than falling back to English as expected.

    The most likely culprit is a mismatched or corrupted WooCommerce JavaScript translation JSON file in wp-content/languages/plugins/. WordPress serves JS translations from files like woocommerce-de_DE-{hash}.json. So if that file was generated for a different WooCommerce version than what’s currently installed, some string keys simply won’t exist in it, and lookups silently return undefined. Since switching your user language to English didn’t fix it, the cached JSON for the English locale may also be stale or broken.

    The fact that this crashes even with empty tables, no plugins, and a default theme; during the very first React render, confirms this is a JS/i18n layer issue, not a data or conflict issue.

    Here are the steps I’d recommend:

    • Navigate to wp-content/languages/plugins/ via FTP/SFTP and delete all files starting with woocommerce- (both .mo and .json files). Then go to Dashboard → Updates → Translation Updates and re-download them fresh. This ensures the translation files are in sync with your exact installed version.
    • You mentioned WooCommerce 9.x.x, could you confirm the exact version? Also share your System Report at WooCommerce → Status → Get system report, pasted at https://gist.github.com so we can understand your site configuration. We’d like to reproduce the issue
    • Consider upgrading the affected environment to the latest version and see if that helps.

    Let us know how it goes.

    Thread Starter fog1

    (@fog1)

    Hi @frankremmy

    I have tried deleting the files and getting the translations back by updating it from the dashboard. This doesn’t seem to have any effect and the error persists.

    Regarding the system report I pasted it in the link that was provided.

    As for the last option, we are working on updating our theme and system to be compatible with Woocommerce 10+ because currently it is not.

    Is there any fix or solution to solve this problem for our current version of woocommerce?

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thanks for the update and for trying those steps.

    Could you please confirm whether the analytics-related issue is occurring only on the WooCommerce 9.x.x environment? If that’s the case, then the solution suggested by Fonderco in the thread you shared would serve as a suitable workaround for this specific issue.

    Since the functioning environment is running WooCommerce 10.x.x, I would recommend continuing with updating your system and theme to make them fully compatible with WooCommerce 10.x.x. This version includes improvements and fixes that may already address the behavior you’re experiencing.

    Please note that we only provide support for the latest WooCommerce versions. Since the issue you are facing appears only on the older 9.x.x version, we can only recommend updating WooCommerce to the latest version once you are able to update your system and theme accordingly.

    Thread Starter fog1

    (@fog1)

    Yes, the analytics-related issue is occurring in the environment with WC version 9.X.X (Version 9.9.7 specifically).

    Thank you for your reply and the pointers, then we will work on upgrading WC to the latest version in all other environments.

    Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi there,

    Thanks for confirming the issue occurs on WooCommerce 9.9.7. You can use the workaround suggested by Fonderco for this version.

    Upgrading to the latest WooCommerce version in your other environments is the best approach. Let us know if you still face the same issue.

    Before you go, If you found WooCommerce helpful in setting up your store, we would really appreciate it if you could leave a five-star review here: https://ww.wp.xz.cn/support/plugin/woocommerce/reviews/#new-post

    Your feedback helps us improve and lets other users know how WooCommerce can support their business.

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.