Hi @scapolupogmailcom
Thanks for reaching out. So we can determine more on this and ensure you’re able to view the Site Kit dashboards as expected please share the following:
- Your Site Health information. You can use this form to share privately if preferred.
- When checking the Site Kit dashboard from a Chrome browser incognito window do you see any browser console errors on the same screen where this notice appears? IF so please share any such errors, or a screengrab, using a service such as JumpShare.
Once we have the above we can check your site setup, or check this specific error with the team.
Let me know if you have any questions.
Thread Starter
Salvatore
(@scapolupogmailcom)
Hi! I sent data via form just now.
For the rest, I see these 5 errors in consol:
`Uncaught (in promise) TypeError: t.reduce is not a function
reducerCallback /wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-datastore-site-96a1b072f093a963ed76.js:1
Invariant Violation: report must be an array to partition.
exports https://leultime.info/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-47b3a88711aef289d0f3.js:1
Caught an error: Invariant Violation: report must be an array to partition.
exports https://leultime.info/wp-content/plugins/google-site-kit/dist/assets/js/googlesitekit-vendor-47b3a88711aef289d0f3.js:1 [repeated 3 times]
Hope this is clear and useful for us.
Many thanks for sharing, very useful indeed. As you have a couple of optimisation/caching plugins active let’s first of all rule out any third party plugin configurations that may be contributing to some of these errors. In order to do so please follow the steps below:
- Login to your site from a Chrome browser incognito window
- 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”
- Attempt to view your Site Kit dashboards once more
You can exit troubleshooting mode afterwards. We have more detailed steps for the above on the plugin website.
If the same errors don’t exist while in troubleshooting mode then we’ll do some further testing with your plugins. If you do encounter the same errors please share a screen recording of what you see, while in troubleshooting mode. You can do so using a service such as Loom or RecordIt.
Let me know if you have any questions with the above. Note also that you can share any screen recording using the same form previously used, if you prefer to share privately.
Thread Starter
Salvatore
(@scapolupogmailcom)
Will try soon, thank you.
For what I saw today, there is no clear association between plugins and bug, but I suspect it may depend from “Simple Custom CSS and JS”, but just an idea not proof of concept. When I try to add specifical scripts for customization, something breaks your plugin. But just removing them or unload from website is not enough.
Cache plugin seems to be not related, in my opinion for now.
Happy if I can help 🙂
-
This reply was modified 3 years, 11 months ago by
Salvatore.
Many thanks for sharing your troubleshooting findings so far. And yes, please so share if you encounter the same when using troubleshooting mode. It would be great to find out more on this specific error.
Let me know if you have any questions in the meantime!
Hi @scapolupogmailcom,
Just following up with you to check whether you’ve had an opportunity to check for the same error while in troubleshooting mode?
I got the same error message while in troubleshooting mode.
@h7143084090 Very interesting, thanks for letting me know. So we can compare your own set up to the original reporter, and troubleshoot this further, please open an individual support topic and we can communicate from there.
After opening a support topic please share your Site Health information.
Looking forward to hearing from you!
As we didn’t receive a response I’ll mark this as resolved. Feel free to open a new support topic if you continue to encounter issues, or reopen this topic and we’d be happy to assist.
Just to let you know that we’ve identified the cause of this, a conflict with the JWT Auth plugin, which you have active. For more details please see the respective GitHub issue.
To ensure you no longer encounter this you can add the below to a custom plugin or a child themes functions.php file.
/**
* Whitelist Google Site Kit API calls in JWT Auth by Useful Team.
*/
add_filter( 'jwt_auth_whitelist', function ( $endpoints ) {
$your_endpoints = array(
'/wp-json/google-site-kit/*',
);
return array_unique( array_merge( $endpoints, $your_endpoints ) );
} );
Alternatively you can use this mini plugin by pressing the “Download Zip” button, then installing and activating this as a standard WordPress plugin upload. After doing so you should no longer encounter this error.
Let me know if you have any further queries on the above. Note also that as Site Kit API responses are cached please allow for an hour if you’re currently seeing the error, after applying the fix above.