This Google Site Kit Unknown Error (code: GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler.) popped up on two of my WordPress installs. Another install on a subdomain worked and I began hunting the usual suspects.
One thing that stood out was the Site Kit installs that borked were updated. Manual downgrades didn’t fix it, and I was wary of uninstallation. It might invite other errors instead, so I didn’t venture further down that road.
Anyway, after several hours, and after consuming a few meals, I manage to figure it out. Google Site Kit now requires PHP8. Another thing I uncovered was, the .htaccess directives overrides cPanel’s Multi PHP settings. I can now set PHP8 as my universal PHP version, and customise which installs that need specifically PHP7 to work.
My main site persistently uses PHP7 despite the directives set in cPanel. This was also another cause of headache of mine for several months. I screwed up my settings when I switched webhosts and restored a backup, with a customised .htaccess file from years ago, specifying PHP7 as the default handler.
Google should have come out with a better, more detailed error message than this obscure ‘Google Site Kit Unknown Error’ bit. I wasted many hours trying every possible settings in the php.ini files on my webserver to no avail.
Be First to Comment