Site Kit cannot access the WordPress REST API
-
Hi Support, I am receiving an error on my Google Site Kit plugin page
“Site Kit cannot access the WordPress REST API. Please ensure it is enabled on your site.”
How do I fix this?
Andrew
The page I need help with: [log in to see the link]
-
Hi there Andrew,
As the WordPress REST API is a requirement for Site Kit and many other plugins we’ll need some additional information from you in order to determine the problem and ensure you can use Site Kit as expected. Please share the following information:
- Your Site Health information. You can use this form to share privately if preferred. If using the form please include your current hosting provider.
- Can you share a screenshot or any details of your Site Health status (Tools > Site Health > Status), which differs from your Site Health information above. If there are any REST related messages please expand these to show any additional insights.
- Have Site Kit worked as expected for you previously?
Note also that your public REST endpoints seem blocked, so once we know of the above we’ll be able to advise further.
Many thanks for sharing your Site Health information. From checking the details there doesn’t seem to be any plugins active that disable the REST API.
With that can you share the additional insights below?
- A screenshot or any details of your Site Health status (Tools > Site Health > Status)
- Has Site Kit worked for you previously, and if so do you recall any changes made to your site since?
- Are you using a headless setup or any other feature that may be resulting in your public REST endpoints not being available.
Let me know if you have any questions with the above.
### wp-core ### version: 5.8.2 site_language: pt_BR user_language: pt_BR timezone: +00:00 permalink: /%year%/%monthnum%/%day%/%postname%/ https_status: true multisite: false user_registration: 0 blog_public: 1 default_comment_status: open environment_type: production user_count: 2 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: /home/superlojaclub/porumavidasemdor.com.br wordpress_size: loading... uploads_path: /home/superlojaclub/porumavidasemdor.com.br/wp-content/uploads uploads_size: loading... themes_path: /home/superlojaclub/porumavidasemdor.com.br/wp-content/themes themes_size: loading... plugins_path: /home/superlojaclub/porumavidasemdor.com.br/wp-content/plugins plugins_size: loading... database_size: loading... total_size: loading... ### wp-active-theme ### name: Twenty Twenty-One (twentytwentyone) version: 1.4 author: a equipe do WordPress author_website: https://br.ww.wp.xz.cn/ parent_theme: none theme_features: core-block-patterns, widgets-block-editor, automatic-feed-links, title-tag, post-formats, post-thumbnails, menus, html5, custom-logo, customize-selective-refresh-widgets, wp-block-styles, align-wide, editor-styles, editor-style, editor-font-sizes, custom-background, editor-color-palette, editor-gradient-presets, responsive-embeds, custom-line-height, experimental-link-color, custom-spacing, custom-units, widgets theme_path: /home/superlojaclub/porumavidasemdor.com.br/wp-content/themes/twentytwentyone auto_update: Desativado ### wp-themes-inactive (2) ### Twenty Nineteen: version: 2.1, author: a equipe do WordPress, Atualizações automáticas desativadas Twenty Twenty: version: 1.8, author: a equipe do WordPress, Atualizações automáticas desativadas ### wp-plugins-active (2) ### Really Simple SSL: version: 5.2.0, author: Really Simple Plugins, Atualizações automáticas desativadas Site Kit by Google: version: 1.45.0, author: Google (latest version: 1.46.0), Atualizações automáticas desativadas ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: Indisponível imagemagick_version: Indisponível imagick_version: Indisponível file_uploads: File uploads is turned off post_max_size: 100M upload_max_filesize: 100M max_effective_size: 100 MB max_file_uploads: 20 gd_version: bundled (2.1.0 compatible) gd_formats: GIF, JPEG, PNG, WebP, BMP, XPM ghostscript_version: unknown ### wp-server ### server_architecture: Linux 3.10.0-1160.31.1.el7.x86_64 x86_64 httpd_software: LiteSpeed php_version: 7.3.32 64bit php_sapi: litespeed max_input_variables: 5000 time_limit: 300 memory_limit: 256M max_input_time: 300 upload_max_filesize: 100M php_post_max_size: 100M curl_version: 7.79.1 OpenSSL/1.1.1l suhosin: false imagick_availability: false pretty_permalinks: true htaccess_extra_rules: true ### wp-database ### extension: mysqli server_version: 10.3.32-MariaDB client_version: mysqlnd 5.0.12-dev - 20150407 - $Id: 7cc7cc96e675f6d72e5cf0f267f48e167c2abb23 $ ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: /home/superlojaclub/porumavidasemdor.com.br/wp-content WP_PLUGIN_DIR: /home/superlojaclub/porumavidasemdor.com.br/wp-content/plugins WP_MEMORY_LIMIT: 40M 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 DB_CHARSET: utf8 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ### google-site-kit ### version: 1.45.0 php_version: 7.3.32 wp_version: 5.8.2 reference_url: https://porumavidasemdor.com.br amp_mode: no site_status: not-connected user_status: not authenticated verification_status: not-verified 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: ideaHubModule: ⭕ serviceSetupV2: ⭕ swgModule: ⭕ userInput: ⭕ unifiedDashboard: ⭕ search_console_property: noneThe site installation is new and I have not been able to install the kitsite at any time.
@comendadormaranhao Thanks for the additional insights. What you shared above is useful however this in your Site Health information, which differs from your Site Health status (Tools > Site Health > Status). Your Site Health status can help pinpoint any REST related errors, which Site Kit and other plugins depend on.
In addition to sharing your Site Health status can you share if you’ve performed any other optimizations of your site? This could include CDN optimizations, a headless or static site setup or any manual optimizations to your site. I ask as I don’t notice any of the standard WordPress class names or indicators when inspecting your site.
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.
The topic ‘Site Kit cannot access the WordPress REST API’ is closed to new replies.