“Missing site_id or site_code” during setup
-
Hi there,
I’ve tried to install Site Kit, but I got hit with the ‘ol fatal error “Missing site_id or site_code” during the auth stage of the setup. Before reaching the “verify site ownership” stage, it returns: PHP Fatal error:
Uncaught Exception: Missing site_id or site_code parameter for setup URL. in /usr/share/nginx/web/app/plugins/google-site-kit/includes/Core/Authentication/Google_Proxy.php:139If I debug the exception, site_code is populated, but site_id is missing.
I have the latest version of WordPress and Sitekit.
In site health, I have error regarding auto updates, and that I have changed the default timezone.
This error only occurs in prod. I’m able to complete the auth in my development environment. Everything is dockerised, so all settings and versions (including deps) are the same, same site health errors. The only thing that I can think of that differs from prod is that I’m using a different domain.
I have reset the plugin and even reinstalled the plugin to no avail – still the same error.
I have used the troubleshoot plugin, and deactivated all plugins – still the same error.
I have a http(s) logger that checks all outbound server requests, and it seems that the call to https://sitekit.withgoogle.com/o/oauth2/site/ returns both site_id and site_secret:
"body": "{"site_id":"REACTED.apps.sitekit.withgoogle.com","site_secret":"REDACTED"}".I just tried to change the WP_HOME on my dev environment to my prod domain, and now I get the same error as in prod.
I don’t know how to proceed…
Regards.
The topic ‘“Missing site_id or site_code” during setup’ is closed to new replies.