Dashboard throws error
-
Hi Team,
in my admin dashboard I am able to see the full SiteKit dashboard with some changed metrics without any issues.
A different user, also granted access to the dashboard, changed some metrices (cannot tell anymore which one) and since then the dashboard is not showing up anymore properly.
It shows and error in the following style:An error occurred while running 'mapSelect': too much recursion
The error may be correlated with this previous error:... then a lot of code which I could send to you if necessary ...
Original stack trace:
in DashboardNavigation
in Header
in DashboardMainApp
in DashboardEntryPoint
in RestoreSnapshots
in ErrorHandler
in ThemeProvider
in StrictMode
in RootI already tried a complete reinstallation of the plugin but it seems not to work. Perhaps the settings are still saved, also after a deinstallation?
Could you help us bringing the dashboard back for the other user?
Thanks and kind regards
-
Thanks for reaching out @greendroid. So we can ensure the dashboard does work as expected for you and the other user, please share the following:
- Your Site Health information. You can use this form to share privately if preferred.??
- Just to confirm, the dashboard issues only occur for this other user, or for you also? If they other user is accessing the view-only dashboard, after you configured dashboard sharing for them, have you tried to reset dashboard sharing permissions?
- Is this error appearing across the full dashboard for them, or confined to within one or more key metrics? Feel free to share a link to any screenshot of what they’re encountering. Please ask them to check whether the same occurs if selecting different metrics to view, should this error appear within specific metrics.
I already tried a complete reinstallation of the plugin but it seems not to work. Perhaps the settings are still saved, also after a deinstallation?
Sorry to hear that. One option that should work, is a plugin reset, as opposed to uninstalling and reinstalling. I don’t recommend performing this task yet, until we perform the checks above, as there are implications to resetting, including all modules becoming disconnected and all users having to go through the set up process once more. Once we have the information suggested above, we can advise on this further. Let me know if you have any questions.
Hi @jamesosborne,
Thanks for your quick response.
I created a support ticket via the mentioned form. But here already some more background information:- The dashboard shows up for my admin account without any issues. Also for another normal-user it shows up properly.
The “problematic-user”, which has the same rights as the normal-user mentioned before, it shows up properly. The “problematic-user” has changed some metrics, then the issues occurred. Unfornatunately it is not document to which metrics this was changed. Before changing of the metrics it worked flawlessly. - This happened already some months ago, but only working on that now. So also plugin updates, etc… did not solve the issue.
- Resetting the viewing sharing permissions did also change nothing unfortunately.
- The “problematic-user” just clicks on the SiteKit->Dashboard link on the left side in the WordPress menue. Then the previously mentioned error code block shows up. It is not possible to change the metrics back to some other.
Thanks for your help. If you need anything else just let me know.
Kind regardsThanks for sharing the additional information @greendroid. From reviewing your Site Health information I can see one connected user signed into Site Kit, meaning others are likely all view-only users. I can also see the following, which indicates that some of the key metrics would not be available for that user, as there are some metrics that require custom dimensions to be added:
analytics_4_available_custom_dimensions: none
I suspect that one or more custom dimensions were selected, and the associated custom dimensions may not longer exist, the Google Analytics property was modified, or something else. I’ll perform some checks on this, to confirm that view-only users cannot select key metrics that require non-existing dimensions, while also some further checks to try and recreate the same error.
As a workaround, while I’m performing some checks, as this may take some time, you can try to disconnect the Google Analytics module and connect once more. After doing so, please toggle off and on all the available key metrics. Doing so will ensure Site Kit creates the custom dimensions, which are then available for other users. Let me know if you need any assistance in doing this. After this is complete, you can ask the view only user to check the dashboard once more.
I’ll keep you updated here also after some testing. Thank you.
Hi @jamesosborne,
I have done so: Disconnected GoogleAnalystics completely from the side, reconnected again, activated all metrices so that they were visible at least once in my admin dashboard. Unfortunately the “problematic user” has still the error.
Interestingly the plugin was somehow saving my settings, so when I reconnected with my google account everything looked like before. The same metrices as before, the same view-only roles assigned, etc…
Is it somehow possible to remove the saved parameters of the plugin?
Thanks and kind regardsThanks for the update @greendroid. We’ve been performing some checks on this and we’re unable to recreate the same error so far. While I’ll check this further with the team this week, in order to ensure no users of your site can view the Site Kit dashboard as expected, let’s see if this is isolated to this specific user. To do so, can you create another user account, with the same role as this impacted user. After doing so, please login with this user account and check whether the same occurs.
Is it somehow possible to remove the saved parameters of the plugin?
Great question. We do have a GitHub issue in relation to this. In the meantime, please do let me know how you get on with the latest user account. We may end up having to perform a reset if you’re happy to configure Site Kit once more, connecting to the same Google Analytics account and re-configuring Dashboard Sharing.
Let me know if you have any questions with the above.
Hi @jamesosborne,
thanks for your effort. I already have another user with the same view rights (and everything the same to the “problematic user”). This other user can see the SiteKit dashboard without any issues with the default metrices clicked.
Then I changed the metrices a few times to some other statistics and now its also broken for that user…
I am not 100% sure which metrices I chose the last time, but I have in mind, that I chose “Most popular authors by pageviewes” and “Most popular products by pageviews”.As I was not totally sure, I created a complete new user with the same rights and checked again.
The user was starting with “Most popular products by pageviews”, “Top traffic source”, “Most engaged traffic source”, “Top performing keywords”. At “Most popular products by pageviews” only a “Setup successful: Analytics is gathering data for this metric” was shown.
Then I exchanged the “Top traffic source” by “Most popular authors by pageviews” and with that I broke the dashboard.So I can somehow confirm, that it is because of the “Most popular authors by pageviews”? Now all users currently have a broken dashboard ??
When I select the “Most popular authors by pageviews” on my admin dashboard it works fine and also shows the most popular author. So only the other users have issues with that metric.I hope this helps. In general I also do not have any problem in a complete reset of SiteKit. I cannot remember, that it was too much effort to reconfigure it. No worries, if you tell me how to do the full reset I would do.
Thanks and kind regards
PS: I use the plugin “Members” for changings some user rights. Is perhaps SiteKit somehow depending on one important role/access right which the other users do not have?
- This reply was modified 2 weeks, 2 days ago by Greendroid. Reason: Added the PS
Many thanks for the detailed overview of the checks you performed. Regarding some of the metrics that you select, these require custom dimensions to be present, although Site Kit does typically add these for users. As I didn’t see these present from reviewing your Site Health information, I suspect this may be contributing. To check this further, can you visit that property from analytics.google.com by clicking on the “Source”: Analytics” link on your Site Kit dashboard? After doing so, you’ll be visiting that property from Analytics directly. From there, click on the admin cog, and then “Custom Definitions”. Please share what you see there. Here you’ll find a screenshot of how it should look, with some Site Kit defined dimensions.
PS: I use the plugin “Members” for changings some user rights. Is perhaps SiteKit somehow depending on one important role/access right which the other users do not have?
This is indeed a possibility, but before we perform some checks on this, via the Health Check & Troubleshooting plugin, can you confirm that you do have the required custom dimensions present.
I’m just following up with you to check whether the error remains? If so please share the information requested above and we can investigate further.
hi @jamesosborne,
yes the error still exists but I found unfortunately not the time to perform your mentioned steps so far. Will hopefully come to it today/within the next days and update you then. Sorry for the delay…
Kind regards
Completely understand @greendroid. Take your time, and ask any questions here in the meantime if you wish.
Hi @jamesosborne,
I just checked the custom dimensions as you have shown in the picture. Here is an appropriate screenshot:
https://imgur.com/a/OxMlVB3Thanks for your support and kind regards
Many thanks @greendroid. That confirms you do have all the required custom dimensions added. Next we’ll try to determine if the issue is related to a Members plugin configuration, or another plugin conflict. To do so, please follow the steps below:
- Login to your live site from a Chrome browser incognito window. Please do so from a WordPress administrator account that is impacted by this error, one of the accounts you created above.
- Install and activate the Health Check & Troubleshooting plugin.
- Navigate to “Plugins > Health Check & Troubleshooting > Troubleshoot”.
- From the same screen click on the “Available Plugins” tab at the top right and then click on the “Enable” option next to “Site Kit by Google“.
- Check for the same error once more. If the error no longer occurs, please enabe your Members and other plugins, one by one, in troubleshooting mode (don’t exit troubleshooting mode). After you enable each plugin in troubleshooting mode, check the Site Kit dashboard each time for the error. At the stage where the error re-appears, you’ll know the last plugin activated. Please share this with me.
Let me know if you have any questions with the above. Thank you. No issues if you wish to take your time with the above, I can keep this topic open for a week.
Hi @jamesosborne,
thanks for the additional guide for troubelshooting.
I tried the following:- Logged in with a normal user account in which the Site Kit error shows up
- Verified, that the error still exists
- Logged in with the administrator account (in which SiteKit is setup and shows up without issues) and added the visibility settings of SiteKit with ‘Administrator’. So that not only the normal user group as before, but also other Administrator can see the dashboard.
Then I changed the user role of the issuing user to ‘Administrator’ to be able to perform your mentioned steps. - Took a Firefox Incongito Window (I don’t have Chrome) and logged again in with the issuing user (now in role ‘Administrator”) and verified, that the issue with SiteKit is still there.
- Installed the Health-Check plugin and activated it. Then activated the Troubleshoot-Modus.
- Activated the SiteKit plugin
- Unfortunately here the error still exists. I can not open the SiteKit dashboard, the error still shows up.
As I have changed the user role of the issuing user to ‘Administrator’ I doubt that there is something with the user roles, as the administrator has all rights.
Hope this helps!
Kind regardsThanks for sharing the additional info @greendroid. Based on your observations, I went ahead and created a GitHub issue. So we can capture more details and try to figure out what’s happening in your case, please share the following, which I’ll add to that issue:
- A screenshot of the full dashboard as you see it, with the full errors.
- Any browser console errors that appear when checking from a Chrome browser incognito window.
- Do you share an administrator login with other users? I ask as I’m wondering if it’s possible another user logged in and made some changes, such as with the Google account used to connect Site Kit.
Let me know if you have any questions with the above.
- You must be logged in to reply to this topic.