You are currently viewing [SOLVED] Google Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site
Could You Please Share This Post? I Appreciate It And Thank YOU! :) Have A Nice Day!
4.9
(14)

In this post I will try help you to solve the error: Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.

I encountered this error when I was trying to install the Google Site Kit Plugin in WordPress. I might be very frustrated when you would like to move forward and install this plugin to setup the Google Analytics, Google Adsense, Google Search Console and Google Page Insights. In this post I will give you the tips where you can find the real root cause of this issue.

What Is Google Site Kit?

Google’s official WordPress plugin, Site Kit, provides insights into how visitors locate and interact with your website. The all-in-one solution for deploying, managing, and obtaining insights from vital Google technologies is called Site Kit, and it helps websites succeed online. It offers reliable, current information from several Google products right on the WordPress dashboard for simple access, all for nothing.

Google Site Kit Services

As I mentioned above you can setup connection to multiple Google Services using Google Sit Kit. The follwing screenshots presents the 4 services setup. Currently there are available additional two:

[SOLVED] Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site
[SOLVED] Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site
  • Google Optimize – Create free A/B tests that help you drive metric-based design solutions to your site
  • Google Tag Manager – Tag Manager creates an easy to manage way to create tags on your site without updating code
[SOLVED] Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site
[SOLVED] Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site

Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site

Let’s try to solve this issue. For me, the problem was quite strange, because everything was working, I did something in the meantime and after a while discovered that the Google Sit Kit plugin was not working. And this is what prompted me to reflect and ask myself:

What happened in the meantime that could have influenced it?

Deactivate plugins one by one

I realized that from such major changes I was installing new plugins. And it was there that I started looking for the cause. I didn’t know which Plugin causes errors with WordPress REST API, so I deactivated them one by one and looked to see if deactivating a given plugin changed something. And it turned out to be a bull’s eye!

In my case, it turned out that the Query Monitor plugin was causing the problems. When I turned it off, everything started working and it returned to normal.

Query Monitor Plugin

The WordPress developer tools panel is called Query Monitor. Database queries, PHP errors, hooks and actions, block editor blocks, enqueued scripts and stylesheets, HTTP API requests, and more may all be debugged with this tool.

It has several sophisticated features including user capability checks, REST API calls, and Ajax call debugging. You may rapidly identify underperforming plugins, themes, or functionalities by limiting a large portion of its output by plugin or theme.

Query Monitor puts a lot of effort into making its information easy to understand. One way it does this is by grouping aggregate database queries by the plugins, themes, or functions that are in charge of them. It adds an admin toolbar menu with an overview of the current page, and when you pick a menu item, detailed debugging information is displayed in panels

Summary

If you have encountered this problem: Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site or similar, and you have no idea, first try to think if you have not done something in the meantime that could break it 🙂

And then, if you have no idea, the best method is trial and error. See other tips.

Could You Please Share This Post? 
I appreciate It And Thank YOU! :)
Have A Nice Day!

BigData-ETL: image 7YOU MIGHT ALSO LIKE

How useful was this post?

Click on a star to rate it!

Average rating 4.9 / 5. Vote count: 14

No votes so far! Be the first to rate this post.

As you found this post useful...

Follow us on social media!

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?