• Resolved mehran2020

    (@mehran2020)


    in my site the google site kit widget is getting error and doesn’t show the widget correctly.

    it shows me this instead. please solve this issue. thanks

    An error occurred while running 'mapSelect': Cannot read properties of null (reading 'getErrorForSelector')
    The error may be correlated with this previous error:
    TypeError: Cannot read properties of null (reading 'getErrorForSelector')
        at Object.current (https://xxxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-wp-dashboard-01ab9d8acda01a2ca615.js:54:10559)
        at e (https://xxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-3768ea49b07e3fd1421f.js:1:190209)
        at https://xxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-3768ea49b07e3fd1421f.js:1:190318
        at Ui (https://xxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-3768ea49b07e3fd1421f.js:1:823228)
        at va (https://xxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-3768ea49b07e3fd1421f.js:1:846151)
        at t.unstable_runWithPriority (https://xxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-3768ea49b07e3fd1421f.js:1:865774)
        at Mr (https://xxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-3768ea49b07e3fd1421f.js:1:790880)
        at Yj (https://xxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-3768ea49b07e3fd1421f.js:1:842580)
        at Lj (https://xxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-3768ea49b07e3fd1421f.js:1:832940)
        at https://xxx/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-3768ea49b07e3fd1421f.js:1:791171
    
    Original stack trace:
    
        in WPDashboardPopularPages
        in WithWidgetComponentProps(WPDashboardPopularPages)
        in div
        in WPDashboardWidgets
        in div
        in WPDashboardApp
        in RestoreSnapshots
        in ErrorHandler
        in Root
Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support James Osborne

    (@jamesosborne)

    Hi @mehran2020,

    Thanks for reaching out and sharing the error message you’re encountering. Looking at the stack trace which you kindly provided this looks like it’s occurring with the Site Kit admin toolbar, and may be related to an optimization or caching plugin configuration, possibly a JavaScript minification setting.

    In order to determine more on this you share your Site Health information or inform me of any caching or optimization plugin you may have active?

    Once we know the plugin we may be to apply an exclusion for Site Kit scripts so all worked as expected without any conflict. Note also that this error only impacts you and other admins who have access to the WordPress admin toolbar.

    Let me know if you have any questions with the above.

    Thread Starter mehran2020

    (@mehran2020)

    Hello dear Mr. Osborne. Thank you for your reply.

    I only encounter this problem in Opera browser. I previously used firefox and chrome but I didn’t see such an error. Now I migrated to Opera and this issue shows in this browser’s environment.

    Also I’m using LScache plugin for cache.

    thanks a lot

    Thread Starter mehran2020

    (@mehran2020)

    I finally found the problem. It just related to opera’s built-in ad-blocker. when it is on, I get these errors.

    thank you very much

    Plugin Support James Osborne

    (@jamesosborne)

    @mehran2020 Many thanks for the update, and glad to here you were able to determine the cause. While Ad Blockers can interfere with Site Kit setup we’ll try and recreate this same dashboard error from the same browser and see what we can determine.

    Note also that from reviewing your initial comments the error seems to occur from your main Site Kit dashboard, and not the admin toolbar as I previously suggest. We’ve encountered similar errors related to third party conflicts using the Site Kit admin toolbar.

    While you’re now able to use the Site Kit dashboards with the in built ad blocker deactivated if you’ve like me to create an environment similar to your own in order to determine more on this feel free to share your Site Health information.

    Plugin Support James Osborne

    (@jamesosborne)

    Just to let you know that I’ve been unable to recreate the same issue as your own when using an Opera browser (v 82.0.4227.43).

    In addition to the Site Kit dashboards populating in my case I didn’t encounter any setup issues. In your case it could be a particular multi party conflict.

    If you happen to encounter further issues I’d be happy to perform some additional checks. In the meantime I’ll close this support topic.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Site kit widget error in Opera browser’ is closed to new replies.