• Resolved Bruno Martinez

    (@brmartinez)


    Hello, I’ve noticed this error while navigating on my page. Can you take a look?

    Screenshot: https://nimb.ws/y987Jg

    Error logged on the sitekit plugin:

    An error occurred while running 'mapSelect': Cannot read properties of null (reading 'isGatheringData')
    The error may be correlated with this previous error:
    TypeError: Cannot read properties of null (reading 'isGatheringData')
        at Object.current (https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-adminbar-12f95dccd4d9330e7ac4.js:56:7935)
        at e (https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-66ad8e36af49312c16d8.js:7:62005)
        at https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-66ad8e36af49312c16d8.js:7:62114
        at Ui (https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-66ad8e36af49312c16d8.js:7:698027)
        at va (https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-66ad8e36af49312c16d8.js:7:720950)
        at t.unstable_runWithPriority (https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-66ad8e36af49312c16d8.js:7:740573)
        at Mr (https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-66ad8e36af49312c16d8.js:7:665679)
        at Yj (https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-66ad8e36af49312c16d8.js:7:717379)
        at Lj (https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-66ad8e36af49312c16d8.js:7:707739)
        at https://www.showmetech.com.br/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-66ad8e36af49312c16d8.js:7:665970
    
    Original stack trace:
    
        in AdminBarSessions
        in WithWidgetComponentProps(AdminBarSessions)
        in div
        in Cell
        in div
        in Row
        in AdminBarWidgets
        in div
        in Cell
        in div
        in Row
        in div
        in ForwardRef
        in AdminBarApp
        in RestoreSnapshots
        in ErrorHandler
        in Root

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Hi @brmartinez,

    Thanks for reaching out, and certainly I’d be happy to take a look. From the details you kindly shared and from inspecting your site it looks like you have a minification feature enabled, most likely via your WP Rocket plugin, which it looks like you have active.

    Some minification features can result in unpredictable behaviour with JavaScript features on the front end of your website, in your case with the Site Kit admin toolbar.

    While this occurs only for administrators, who have access to the admin toolbar, there are a options to ensure you no longer encounter this error.

    Firstly you can exclude Site Kit resources from minification, as all Site Kit scripts are already minified. Using WP Rocket you can apply the exclusion below, within the WP Rocket configurations:
    /wp-content/plugins/google-site-kit/dist/assets/js/(.*).js

    Alternatively we have a mini plugin that can also address this conflict. If using the mini plugin click on the “Download Zip” link on the top right and update this as any other WordPress plugin. After doing so activate it and I expect you won’t encounter the same conflict with the Site Kit admin toolbar anymore.

    Let me know how you get on with the above. We also have more information on the specific error you’re encountering added to the plugin website:
    https://sitekit.withgoogle.com/documentation/troubleshooting/analytics/#mapselect`

    Thread Starter Bruno Martinez

    (@brmartinez)

    Ok, great! I’ve applied this: https://nimb.ws/kag6Nm

    Did it work?

    Plugin Support James Osborne

    (@jamesosborne)

    That should do it! The first line alone should be enough. Can you visit your site and try use the Site Kit admin toolbar once more? Let me know if all works as expected.

    Thread Starter Bruno Martinez

    (@brmartinez)

    awesome, it worked ??

    Plugin Support James Osborne

    (@jamesosborne)

    Glad to heat it! Thanks for the update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Error Alert’ is closed to new replies.