Site Kit cannot access the WordPress REST API. Please ensure it is enabled
-
Hi,
I have had sitekit on my websites (5) for a long time without any issues. A few days ago three of them stopped working with the error message……
“Data error in Search Console
<p>There has been a critical error on this website.</p><p>Learn more about troubleshooting WordPress.</p>
Adsense placemements is not affected as ads are still showing and I am earning revenue. Analytics also working if I navigate to seacrh console etc…
(The other two sites are working fine)….My sites run on the same server and with the same plugins and theme all updated to current versions.
On one site this morning I decided to reset the sitekit and now have this error message when trying to set up…
Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.
My site health is green with zero errors and healthcheck reports no plugin conflicts…the WordPress REST API is ENABLED….
I have spoken to my hosts (Hostek, formerly Pickaweb) and they say there have been no changes to the server.
I see by searching that many people are reporting this same issue.
Any help would be appreciated as now I am unable to setup sitekit on this site and I am losing adsense revenue and analytics data.
Thankyou
-
Thanks for reaching out, hopefully we can determine the cause and get Site Kit back up and running on your site. While we investigate this issue it would be great if you could share the following:
- Your Site Health information. You can share here or privately via this form.
- Any console errors on the same screen whereby you see this message, on the latest site which you’ve since reset the plugin
- Do you recall any changes on your site from 3 days ago when you started noticing these issues?
If you wish to troubleshooting for any potential third party plugin conflicts which may have arisen from automatic updates you can perform 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 setup Site Kit once more on the site whereby you reset the plugin
You can exit troubleshooting mode afterwards.
Any help would be appreciated as now I am unable to setup sitekit on this site and I am losing adsense revenue and analytics data.
Note that you can manually insert your ad code in the meantime to ensure you don’t loose any vital AdSense revenue. This is just temporarily for this particular site. While not ideal we’re still investigating this issue.
Hi, thanks for answering,
As I mentioned site health is a big tick and “Everything is running smoothly here”. No changes to anything apart from normal updates to plugins etc
Its odd that its working fine on a couple of sites and not on the other three.. they are the same installations, theme, plugins etc on the same server.
I have added the code snippet for adsense to the header temporarily until we can get sitekit working again…
Below site health check
### wp-core ### version: 5.7.2 site_language: en_US user_language: en_US permalink: /%postname%/ https_status: true user_registration: 0 default_comment_status: open multisite: false user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/samanteli/public_html wordpress_size: 115.17 MB (120767077 bytes) uploads_path: /home/samanteli/public_html/wp-content/uploads uploads_size: 415.02 MB (435181170 bytes) themes_path: /home/samanteli/public_html/wp-content/themes themes_size: 4.81 MB (5044699 bytes) plugins_path: /home/samanteli/public_html/wp-content/plugins plugins_size: 40.43 MB (42392159 bytes) database_size: 22.60 MB (23701889 bytes) total_size: 598.04 MB (627086994 bytes) ### wp-active-theme ### name: Twenty Fourteen (twentyfourteen) version: 3.1 author: the WordPress team author_website: https://www.ads-software.com/ parent_theme: none theme_features: core-block-patterns, editor-style, editor-styles, wp-block-styles, responsive-embeds, editor-color-palette, automatic-feed-links, post-thumbnails, menus, html5, post-formats, custom-background, featured-content, customize-selective-refresh-widgets, custom-header, widgets theme_path: /home/samanteli/public_html/wp-content/themes/twentyfourteen ### wp-themes-inactive (1) ### Twenty Twenty-One: version: 1.3, author: the WordPress team ### wp-mu-plugins (1) ### Health Check Troubleshooting Mode: author: (undefined), version: 1.7.2 ### wp-plugins-active (14) ### Antispam Bee: version: 2.9.4, author: pluginkollektiv Booking.com Official Search Box: version: 2.2.1, author: Strategic Partnerships Department at Booking.com Booking.com Product Helper: version: 1.0.1, author: Booking.com Easy Social Feed: version: 6.2.5, author: Easy Social Feed Embed Plus for YouTube - Gallery, Channel, Playlist, Live Stream: version: 13.4.3, author: Embed Plus for YouTube Team Fourteen Colors: version: 1.6, author: Nick Halsey Gallery Lightbox Lite: version: 1.0.0.37, author: GhozyLab, Inc. GDPR Cookie Consent Banner: version: 2.3.15, author: termly Header Footer Code Manager: version: 1.1.10, author: 99robots Health Check & Troubleshooting: version: 1.4.5, author: The www.ads-software.com community Site Kit by Google: version: 1.35.0, author: Google SSL Insecure Content Fixer: version: 2.7.2, author: WebAware Super RSS Reader: version: 4.3, author: Aakash Chakravarthy Yoast SEO: version: 16.6, author: Team Yoast ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1802 imagemagick_version: ImageMagick 7.0.10-10 Q16 x86_64 2020-07-09 https://imagemagick.org imagick_limits: imagick::RESOURCETYPE_AREA: 189 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 12288 imagick::RESOURCETYPE_MAP: 189 GB imagick::RESOURCETYPE_MEMORY: 94 GB imagick::RESOURCETYPE_THREAD: 1 gd_version: 2.2.5 ghostscript_version: 9.25 ### wp-server ### server_architecture: Linux 3.10.0-962.3.2.lve1.5.27.el7.x86_64 x86_64 httpd_software: Apache php_version: 7.4.20 64bit php_sapi: litespeed max_input_variables: 1000 time_limit: 30 memory_limit: 1024M max_input_time: 60 upload_max_size: 8M php_post_max_size: 8M curl_version: 7.71.0 OpenSSL/1.1.1d suhosin: false imagick_availability: true server-headers: date: Wed, 30 Jun 2021 11:50:30 GMT server: Apache x-powered-by: PHP/7.4.20 expires: Wed, 11 Jan 1984 05:00:00 GMT cache-control: no-cache, must-revalidate, max-age=0 link: <https://wildsideholidays.co.uk/wp-json/>; rel="https://api.w.org/" upgrade: h2,h2c content-type: text/html; charset=UTF-8 htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 10.2.38-MariaDB-cll-lve client_version: 10.2.38-MariaDB ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/samanteli/public_html/wp-content WP_PLUGIN_DIR: /home/samanteli/public_html/wp-content/plugins WP_MAX_MEMORY_LIMIT: 1024M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable mu-plugins: writable ### google-site-kit ### version: 1.35.0 php_version: 7.4.20 wp_version: 5.7.2 reference_url: https://wildsideholidays.co.uk amp_mode: no site_status: not-connected user_status: not authenticated connected_user_count: none active_modules: site-verification, search-console required_scopes: openid: ? https://www.googleapis.com/auth/userinfo.profile: ? https://www.googleapis.com/auth/userinfo.email: ? https://www.googleapis.com/auth/siteverification: ? https://www.googleapis.com/auth/webmasters: ? capabilities: googlesitekit_authenticate: ? googlesitekit_setup: ? googlesitekit_view_posts_insights: ? googlesitekit_view_dashboard: ? googlesitekit_view_module_details: ? googlesitekit_manage_options: ? enabled_features: ga4setup: ? helpVisibility: ? ideaHubModule: ? serviceSetupV2: ? storeErrorNotifications: ? userFeedback: ? userInput: ? widgets.dashboard: ? widgets.pageDashboard: ? widgets.moduleScreens: ? search_console_property: none
In order for comparison this is the health check results for a site that sitekit continues to work without issues….
### wp-core ### version: 5.7.2 site_language: en_US user_language: en_US permalink: /%postname%/ https_status: true user_registration: 0 default_comment_status: open multisite: false user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/camino/public_html wordpress_size: 43.74 MB (45863197 bytes) uploads_path: /home/camino/public_html/wp-content/uploads uploads_size: 83.98 MB (88063997 bytes) themes_path: /home/camino/public_html/wp-content/themes themes_size: 4.81 MB (5044699 bytes) plugins_path: /home/camino/public_html/wp-content/plugins plugins_size: 40.69 MB (42670044 bytes) database_size: 8.98 MB (9415399 bytes) total_size: 182.21 MB (191057336 bytes) ### wp-active-theme ### name: Twenty Fourteen (twentyfourteen) version: 3.1 author: the WordPress team author_website: https://www.ads-software.com/ parent_theme: none theme_features: core-block-patterns, editor-style, editor-styles, wp-block-styles, responsive-embeds, editor-color-palette, automatic-feed-links, post-thumbnails, menus, html5, post-formats, custom-background, featured-content, customize-selective-refresh-widgets, custom-header, widgets theme_path: /home/camino/public_html/wp-content/themes/twentyfourteen ### wp-themes-inactive (1) ### Twenty Twenty-One: version: 1.3, author: the WordPress team ### wp-plugins-active (15) ### Antispam Bee: version: 2.9.4, author: pluginkollektiv Booking.com Official Search Box: version: 2.2.1, author: Strategic Partnerships Department at Booking.com Booking.com Product Helper: version: 1.0.1, author: Booking.com Easy Social Feed: version: 6.2.5, author: Easy Social Feed Embed Plus for YouTube - Gallery, Channel, Playlist, Live Stream: version: 13.4.3, author: Embed Plus for YouTube Team Fourteen Colors: version: 1.6, author: Nick Halsey Health Check & Troubleshooting: version: 1.4.5, author: The www.ads-software.com community Implied Cookie Consent: version: 1.3, author: Stefan Senk Simple Lightbox: version: 2.8.1, author: Archetyped Site Kit by Google: version: 1.35.0, author: Google SSL Insecure Content Fixer: version: 2.7.2, author: WebAware Super RSS Reader: version: 4.3, author: Aakash Chakravarthy Tawk.to Live Chat: version: 0.5.4, author: Tawkto WP Mail From II: version: 2.0, author: Ben Huson Yoast SEO: version: 16.6, author: Team Yoast ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1802 imagemagick_version: ImageMagick 7.0.10-10 Q16 x86_64 2020-07-09 https://imagemagick.org imagick_limits: imagick::RESOURCETYPE_AREA: 189 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 12288 imagick::RESOURCETYPE_MAP: 189 GB imagick::RESOURCETYPE_MEMORY: 94 GB imagick::RESOURCETYPE_THREAD: 1 gd_version: 2.2.5 ghostscript_version: 9.25 ### wp-server ### server_architecture: Linux 3.10.0-962.3.2.lve1.5.27.el7.x86_64 x86_64 httpd_software: Apache php_version: 7.4.20 64bit php_sapi: litespeed max_input_variables: 1000 time_limit: 30 memory_limit: 256M max_input_time: -1 upload_max_size: 2M php_post_max_size: 8M curl_version: 7.71.0 OpenSSL/1.1.1d suhosin: false imagick_availability: true server-headers: date: Wed, 30 Jun 2021 12:05:56 GMT server: Apache x-powered-by: PHP/7.4.20 expires: Wed, 11 Jan 1984 05:00:00 GMT cache-control: no-cache, must-revalidate, max-age=0 link: <https://www.caminodelrey.es/wp-json/>; rel="https://api.w.org/" upgrade: h2,h2c content-type: text/html; charset=UTF-8 htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 10.2.38-MariaDB-cll-lve client_version: 10.2.38-MariaDB ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/camino/public_html/wp-content WP_PLUGIN_DIR: /home/camino/public_html/wp-content/plugins WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ### google-site-kit ### version: 1.35.0 php_version: 7.4.20 wp_version: 5.7.2 reference_url: https://www.caminodelrey.es amp_mode: no site_status: connected-site user_status: authenticated connected_user_count: 1 active_modules: site-verification, search-console, adsense, analytics required_scopes: openid: ? https://www.googleapis.com/auth/userinfo.profile: ? https://www.googleapis.com/auth/userinfo.email: ? https://www.googleapis.com/auth/siteverification: ? https://www.googleapis.com/auth/webmasters: ? https://www.googleapis.com/auth/adsense.readonly: ? https://www.googleapis.com/auth/analytics.readonly: ? capabilities: googlesitekit_authenticate: ? googlesitekit_setup: ? googlesitekit_view_posts_insights: ? googlesitekit_view_dashboard: ? googlesitekit_view_module_details: ? googlesitekit_manage_options: ? enabled_features: ga4setup: ? helpVisibility: ? ideaHubModule: ? serviceSetupV2: ? storeErrorNotifications: ? userFeedback: ? userInput: ? widgets.dashboard: ? widgets.pageDashboard: ? widgets.moduleScreens: ? search_console_property: https://www.caminodelrey.es/ adsense_account_id: pub-876????????????? adsense_client_id: ca-pub-876????????????? adsense_account_status: approved adsense_use_snippet: yes adsense_web_stories_adunit_id: none analytics_account_id: 4718???? analytics_property_id: UA-4718?????? analytics_profile_id: 9191???? analytics_use_snippet: yes
Thanks for sharing. Strange indeed that other sites are not impacted. As nothing stands out from inspecting your Site Health information and your public REST endpoints are accessible did you get an opportunity to try the suggested troubleshooting 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 setup Site Kit once more
You can exit troubleshooting mode afterwards.
Yes I did try set up in troubleshooting mode with the same result….
Your site may not be ready for Site Kit
Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.
Thanks for confirming. As it looks like you have additional .htaccess rules you can try flush your permalinks via “Settings > Permalinks”. You don’t need to make any changes, just press the “Save” button.
After doing so let me know if the same occurs after attempting Site Kit setup once more.
Hi @jamesosborne … i am having same issues hitting a few of my sites.
What do i do?
@yeeloon If you can open a new support topic we’d be happy to assist with your case individually. Thank you!
Hello @cleebay ,
Which plan you are using for Hostek? It’d be useful to know as our team is trying to recreate this issue on different host services.
Best Regards,
Hi, I have a reseller plan that I use just for my own websites on a shared server.
I resaved the permalinks as you suggested. No change to the message
Your site may not be ready for Site Kit
Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.
The three site health checks in order of posting here are… (all sites on same server, same template amd pretty much the same settings and plugins)
1. Site with sitekit working normally up to a few days ago… Disconnected and now giving an error message on reset attempts… Your site may not be ready for Site Kit….Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.
2. Site with sitekit connected and working as normal no error messages
3. Site with site kit working normally up to a few days ago… No attempt at reset with the following error message. (See health check below)
Data error in Search Console
<p>There has been a critical error on this website.</p><p>Learn more about troubleshooting WordPress.</p>
This is the 3rd site healthcheck so we have three seperate examples now of the issue…
### wp-core ### version: 5.7.2 site_language: en_US user_language: en_US permalink: /%postname%/ https_status: true user_registration: 0 default_comment_status: open multisite: false user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/gardener/public_html wordpress_size: loading... uploads_path: /home/gardener/public_html/wp-content/uploads uploads_size: loading... themes_path: /home/gardener/public_html/wp-content/themes themes_size: loading... plugins_path: /home/gardener/public_html/wp-content/plugins plugins_size: loading... database_size: loading... total_size: loading... ### wp-active-theme ### name: Twenty Fourteen (twentyfourteen) version: 3.1 author: the WordPress team author_website: https://www.ads-software.com/ parent_theme: none theme_features: core-block-patterns, editor-style, editor-styles, wp-block-styles, responsive-embeds, editor-color-palette, automatic-feed-links, post-thumbnails, menus, html5, post-formats, custom-background, featured-content, customize-selective-refresh-widgets, custom-header, widgets theme_path: /home/gardener/public_html/wp-content/themes/twentyfourteen ### wp-themes-inactive (1) ### Twenty Twenty-One: version: 1.3, author: the WordPress team ### wp-plugins-active (17) ### Antispam Bee: version: 2.9.4, author: pluginkollektiv Booking.com Official Search Box: version: 2.2.1, author: Strategic Partnerships Department at Booking.com Booking.com Product Helper: version: 1.0.1, author: Booking.com Easy Social Feed: version: 6.2.5, author: Easy Social Feed Embed Plus for YouTube - Gallery, Channel, Playlist, Live Stream: version: 13.4.3, author: Embed Plus for YouTube Team Fourteen Colors: version: 1.6, author: Nick Halsey Health Check & Troubleshooting: version: 1.4.5, author: The www.ads-software.com community Implied Cookie Consent: version: 1.3, author: Stefan Senk PayPal Donations: version: 1.9.7, author: Tips and Tricks HQ, Johan Steen Post Type Switcher: version: 3.2.1, author: Triple J Software, Inc. Really Simple SSL: version: 4.0.15, author: Really Simple Plugins Really Simple SSL pro: version: 4.1.11, author: Really Simple Plugins Simple Lightbox: version: 2.8.1, author: Archetyped Site Kit by Google: version: 1.35.0, author: Google WordPress iSell - Sell Digital Downloads: version: 2.2.7, author: wpecommerce, wp.insider WP Mail From II: version: 2.0, author: Ben Huson Yoast SEO: version: 16.6, author: Team Yoast ### wp-media ### image_editor: WP_Image_Editor_Imagick imagick_module_version: 1802 imagemagick_version: ImageMagick 7.0.10-10 Q16 x86_64 2020-07-09 https://imagemagick.org imagick_limits: imagick::RESOURCETYPE_AREA: 189 GB imagick::RESOURCETYPE_DISK: 9.2233720368548E+18 imagick::RESOURCETYPE_FILE: 12288 imagick::RESOURCETYPE_MAP: 189 GB imagick::RESOURCETYPE_MEMORY: 94 GB imagick::RESOURCETYPE_THREAD: 1 gd_version: 2.2.5 ghostscript_version: 9.25 ### wp-server ### server_architecture: Linux 3.10.0-962.3.2.lve1.5.27.el7.x86_64 x86_64 httpd_software: Apache php_version: 7.4.20 64bit php_sapi: litespeed max_input_variables: 1000 time_limit: 30 memory_limit: 256M max_input_time: -1 upload_max_size: 2M php_post_max_size: 8M curl_version: 7.71.0 OpenSSL/1.1.1d suhosin: false imagick_availability: true server-headers: date: Thu, 01 Jul 2021 10:41:08 GMT server: Apache x-powered-by: PHP/7.4.20 expires: Wed, 11 Jan 1984 05:00:00 GMT cache-control: no-cache, must-revalidate, max-age=0 link: <https://www.rondatoday.com/wp-json/>; rel="https://api.w.org/" strict-transport-security: max-age=31536000 x-xss-protection: 1; mode=block x-content-type-options: nosniff referrer-policy: no-referrer-when-downgrade upgrade: h2,h2c vary: Accept-Encoding,User-Agent content-encoding: gzip content-length: 34000 content-type: text/html; charset=UTF-8 htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 10.2.38-MariaDB-cll-lve client_version: 10.2.38-MariaDB ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/gardener/public_html/wp-content WP_PLUGIN_DIR: /home/gardener/public_html/wp-content/plugins WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: false CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ### google-site-kit ### version: 1.35.0 php_version: 7.4.20 wp_version: 5.7.2 reference_url: https://www.rondatoday.com amp_mode: no site_status: connected-site user_status: authenticated connected_user_count: 1 active_modules: site-verification, search-console, adsense, analytics, pagespeed-insights required_scopes: openid: ? https://www.googleapis.com/auth/userinfo.profile: ? https://www.googleapis.com/auth/userinfo.email: ? https://www.googleapis.com/auth/siteverification: ? https://www.googleapis.com/auth/webmasters: ? https://www.googleapis.com/auth/adsense.readonly: ? https://www.googleapis.com/auth/analytics.readonly: ? capabilities: googlesitekit_authenticate: ? googlesitekit_setup: ? googlesitekit_view_posts_insights: ? googlesitekit_view_dashboard: ? googlesitekit_view_module_details: ? googlesitekit_manage_options: ? enabled_features: ga4setup: ? helpVisibility: ? ideaHubModule: ? serviceSetupV2: ? storeErrorNotifications: ? userFeedback: ? userInput: ? widgets.dashboard: ? widgets.pageDashboard: ? widgets.moduleScreens: ? search_console_property: https://www.rondatoday.com/ adsense_account_id: pub-876????????????? adsense_client_id: ca-pub-876????????????? adsense_account_status: approved adsense_use_snippet: yes adsense_web_stories_adunit_id: none analytics_account_id: 4718???? analytics_property_id: UA-4718?????? analytics_profile_id: 8493???? analytics_use_snippet: yes
Many thanks for sharing the additional insights and Site Health information. We’ve so far been unable to recreate the same experience. With that can you share any Firewall rules or security features you have active on your hosting account?
I’m also curious to determine who on any of the sites whereby you reset Site Kit the services remain connected. Looking at the “Active Modules” from whereby you’ve just shared a Site Health information report it doesn’t seem fully reset. If you could follow the steps below on this last site (rondatoday.com) let me know if you’re able to proceed:
- Uninstall and reinstall Site Kit
- Reset the plugin (via Tools > available tools)
- Attempt to setup Site Kit once more
If the same notice appears please be sure to share any additional security features at host level.
yeah.. it finally work by reuploading the plugin. thanks!
Not a problem, great to hear that worked for you. While I can’t be sure of the cause it may have been lightspeed caching related which could have resulted in plugin updates not fully applying, I’m unsure.
In the event there was an Site Kit plugin file integrity issues you can also use a security plugin to check going forward! Regardless thanks for updating us, be sure to reach out should you have any further queries. In addition as it sounds like you’ve been using Site Kit for a while not it would be great if you could share your thoughts on the plugin so far.
- The topic ‘Site Kit cannot access the WordPress REST API. Please ensure it is enabled’ is closed to new replies.