PHP Fatal error at initial setup: `Missing site_id or site_code parameter […]`
-
When setting up Google Site kit plugin (latest version (
1.104.0
)) on WordPress (latest version (6.2.2
)), the setup fails after being redirected back from the initial OAuth screen. The following PHP Fatal error is logged:PHP message: PHP Fatal error: Uncaught Exception: Missing site_id or site_code parameter for setup URL. in [...]/web/app/plugins/google-site-kit/includes/Core/Authentication/Google_Proxy.php:139 Stack trace: #0 [...]/web/app/plugins/google-site-kit/includes/Core/Authentication/Setup.php(384): Google\Site_Kit\Core\Authentication\Google_Proxy->setup_url(Array) #1 [...]/web/app/plugins/google-site-kit/includes/Core/Authentication/Setup.php(295): Google\Site_Kit\Core\Authentication\Setup->redirect_to_proxy('sitekit-[redacted]...', Array) #2 [...]/web/wp/wp-includes/class-wp-hook.php(308): Google\Site_Kit\Core\Authentication\Setup->handle_action_exchange_site_code('') #3 [...]/web/wp/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(''" while reading response header from upstream, client: [redacted], server: www.example.com, request: "GET /wp/wp-admin/index.php?action=googlesitekit_proxy_exchange_site_code&googlesitekit_code=sitekit-[redacted]&googlesitekit_site_code=[redacted]&nonce=[redacted]&step=verification HTTP/2.0", upstream: "[...]", host: "www.example.com", referrer: "https://accounts.google.com/"
This is the first time I encountered this issue, on all other sites the setup just worked fine.
The only thing that I did was replacing some old development URLs to the correct production URLs – and they all look correct, the site works fine, no issues.How can I further diagnose this issue? Why is the required parameter (
site_id
/site_code
) missing?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘PHP Fatal error at initial setup: `Missing site_id or site_code parameter […]`’ is closed to new replies.