• Resolved Scott

    (@ssarama)


    This is in my dashboard.

    null is not an object (evaluating 'e.keys[0]')
    
        in SearchConsoleStats
        in div
        in div
        in Widget
        in WithWidgetSlug(Widget)
        in SearchFunnelWidget
        in WidgetRenderer
        in div
        in Cell
        in WidgetCellWrapper
        in div
        in Row
        in div
        in div
        in Grid
        in WidgetAreaRenderer
        in div
        in WidgetContextRenderer
        in DashboardMainApp
        in DashboardEntryPoint
        in RestoreSnapshots
        in ErrorHandler
        in ThemeProvider
        in StrictMode
        in Root

    I have reset Site Kit multiple times. Twice it asked me to create GA4 properties and made both of them in my account. I went to the Analytics page and deleted them. I created new GA4 accounts for my two wordpress properties.

    When I go back to reinstall, It doesn’t see that I have a new GA4 property that I made in Analytics. Following installation, I get the error above.

    On a separate property on the same machine and similar config, I installed Site Kit with no issue when I installed it after creating a new GA4 property for it. Site Kit saw the GA4 property and everything is fine.

    I have tried turning off all the major plug-ins and using twenty-twenty theme. Chrome console errors show:

    googlesitekit-dashboard-48dadfcd87c40570a538.js:15 Caught an error: TypeError: Cannot read properties of null (reading '0')
        at googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:15:1011
        at e.exports (googlesitekit-vendor-1fc88689387e751c7c47.js:7:566025)
        at e.exports (googlesitekit-vendor-1fc88689387e751c7c47.js:7:913947)
        at j (googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:15:971)
        at _ (googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:15:1341)
        at Overview (googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:40:17605)
        at Ih (googlesitekit-vendor-1fc88689387e751c7c47.js:7:728985)
        at wi (googlesitekit-vendor-1fc88689387e751c7c47.js:7:774076)
        at ga (googlesitekit-vendor-1fc88689387e751c7c47.js:7:759680)
        at Zj (googlesitekit-vendor-1fc88689387e751c7c47.js:7:759605) Object
    value @ googlesitekit-dashboard-48dadfcd87c40570a538.js:15
    googlesitekit-vendor-1fc88689387e751c7c47.js:7 TypeError: Cannot read properties of null (reading '0')
        at googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:11:24941
        at Array.forEach (<anonymous>)
        at v (googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:11:24895)
        at SearchConsoleStats (googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:40:22668)
        at Ih (googlesitekit-vendor-1fc88689387e751c7c47.js:7:728985)
        at wi (googlesitekit-vendor-1fc88689387e751c7c47.js:7:774076)
        at ga (googlesitekit-vendor-1fc88689387e751c7c47.js:7:759680)
        at Zj (googlesitekit-vendor-1fc88689387e751c7c47.js:7:759605)
        at Lj (googlesitekit-vendor-1fc88689387e751c7c47.js:7:756951)
        at googlesitekit-vendor-1fc88689387e751c7c47.js:7:715381
    Pi @ googlesitekit-vendor-1fc88689387e751c7c47.js:7
    googlesitekit-dashboard-48dadfcd87c40570a538.js:15 Caught an error: TypeError: Cannot read properties of null (reading '0')
        at googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:11:24941
        at Array.forEach (<anonymous>)
        at v (googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:11:24895)
        at SearchConsoleStats (googlesitekit-modules-search-console-b481361f52a83a18e8cf.js:40:22668)
        at Ih (googlesitekit-vendor-1fc88689387e751c7c47.js:7:728985)
        at wi (googlesitekit-vendor-1fc88689387e751c7c47.js:7:774076)
        at ga (googlesitekit-vendor-1fc88689387e751c7c47.js:7:759680)
        at Zj (googlesitekit-vendor-1fc88689387e751c7c47.js:7:759605)
        at Lj (googlesitekit-vendor-1fc88689387e751c7c47.js:7:756951)
        at googlesitekit-vendor-1fc88689387e751c7c47.js:7:715381 Object
    value @ googlesitekit-dashboard-48dadfcd87c40570a538.js:15
    /wp-json/google-site-kit/v1/modules/analytics/data/report?metrics%5B0%5D%5Bexpression%5D=ga%3Apageviews&metrics%5B0%5D%5Balias%5D=Pageviews&metrics%5B1%5D%5Bexpression%5D=ga%3AuniquePageviews&metrics%5B1%5D%5Balias%5D=Unique%20Pageviews&metrics%5B2%5D%5Bexpression%5D=ga%3AbounceRate&metrics%5B2%5D%5Balias%5D=Bounce%20rate&metrics%5B3%5D%5Bexpression%5D=ga%3AavgSessionDuration&metrics%5B3%5D%5Balias%5D=Session%20Duration&dimensions%5B0%5D%5Bname%5D=ga%3ApagePath&startDate=2022-09-14&endDate=2022-10-11&orderby%5B0%5D%5BfieldName%5D=ga%3Apageviews&orderby%5B0%5D%5BsortOrder%5D=DESCENDING&limit=10&_locale=user:1          Failed to load resource: the server responded with a status of 400 ()
    googlesitekit-api-6e559aa8410ea6a8488c.js:1 Google Site Kit

    Lastly, it didn’t like linking to my Adsense account either. It was fine on property 2. Both on same adsense and Analytics accounts.

Viewing 16 replies (of 16 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    This is excellent! Thank you @ssarama for sharing your insights and the Nginx configurations you applied. I’ll add this to the related GitHub issue for the team to review. Great that you no longer see this error.

Viewing 16 replies (of 16 total)

The topic ‘Error on installation’ is closed to new replies.