google_api_connection_fail when activating plugin
-
I am setting up my site on a different machine, as the last one died, but seem to be having problems with the google site kit right off the starting line. As i activate it the plugin gives me an error before i can even do anyhting.
Sign in with Google to set up Site Kit
The Site Kit service will guide you through 3 simple setup steps.Your site may not be ready for Site Kit
Looks like your site is having a technical issue with requesting data from Google services.
To get more help, ask a question on our support forum and include the text of the original error message:
google_api_connection_failI didn’t have this problem on the other machine. The difference is that now i am running the site under windows but i can’t imagine that being the cause of the issue. There is little difference other than that though. Same domain name, same ip, same version of wordpress and so on.
Any help would be appreciated. Love the site kit…. if it works.
thanks.The page I need help with: [log in to see the link]
-
Did some more punching at the site kit to see if i could blunt force me through. I couldn’t.
I disabled all plugins except site kit.
I opened incognito browser window.
Tried different browserNo change
I even went and ignored the error message and went through the steps to setup the kit anyway.
I got through the steps allright, but when it wanted to return to the site kit on my site admin area i got:
You don’t have permissions to authenticate with Site Kit.
I had to return to the dashboard, and deactivate the site kit.
So basically i am no further than i was.
Please help.
here’s the site health info:
### wp-core ### version: 5.5.1 site_language: en_US user_language: en_US timezone: Europe/Amsterdam permalink: /index.php/%year%/%monthnum%/%day%/%postname%/ https_status: true multisite: false user_registration: 1 blog_public: 1 default_comment_status: open environment_type: production user_count: 1 dotorg_communication: true ### wp-paths-sizes ### wordpress_path: C:\Abyss Web Server\htdocs\wordpress wordpress_size: 45.12 MB (47311313 bytes) uploads_path: C:\Abyss Web Server\htdocs\wordpress/wp-content/uploads uploads_size: 17.58 MB (18436587 bytes) themes_path: C:\Abyss Web Server\htdocs\wordpress/wp-content/themes themes_size: 6.40 MB (6715611 bytes) plugins_path: C:\Abyss Web Server\htdocs\wordpress/wp-content/plugins plugins_size: 112.72 MB (118194091 bytes) database_size: 15.25 MB (15992832 bytes) total_size: 197.08 MB (206650434 bytes) ### wp-dropins (1) ### advanced-cache.php: true ### wp-active-theme ### name: raindrops (raindrops) version: 1.540 author: Tenman author_website: https://www.tenman.info/wp3/ parent_theme: none theme_features: core-block-patterns, menus, html5, post-formats, custom-background, post-thumbnails, automatic-feed-links, custom-header, custom-logo, align-wide, editor-style, title-tag, customize-selective-refresh-widgets, widgets theme_path: C:\Abyss Web Server\htdocs\wordpress/wp-content/themes/raindrops auto_update: Disabled ### wp-themes-inactive (1) ### Twenty Twenty: version: 1.5, author: the WordPress team,Auto-updates disabled ### wp-plugins-active (18) ### Asgaros Forum: version: 1.15.7, author: Thomas Belser, Auto-updates disabled Breadcrumb NavXT: version: 6.5.0, author: John Havlik, Auto-updates enabled Comet Cache: version: 170220, author: WP Sharks, Auto-updates enabled Cryptocurrency Widgets Using CoinGecko API: version: 1.2, author: Cool Plugins, Auto-updates disabled FeedWordPress: version: 2020.0818, author: C. Johnson, Auto-updates enabled GamiPress: version: 1.9.0.2, author: GamiPress, Auto-updates disabled Hello Dolly: version: 1.7.2, author: Matt Mullenweg, Auto-updates enabled MetaSlider: version: 3.17.6, author: MetaSlider, Auto-updates enabled Organic Builder Widgets: version: 1.4.10, author: Organic Themes, Auto-updates disabled Organic Profile Block: version: 1.5, author: Organic Themes, Auto-updates disabled Organic Widget Area Block: version: 1.1.1, author: Organic Themes, Auto-updates disabled Rise Blocks - A Complete Gutenberg Page builder: version: 1.0.14, author: Rise Themes, Auto-updates enabled SEOS: version: 1.2.1, author: seosbg, Auto-updates enabled SlideDeck: version: 5.3.8, author: SlideDeck, Auto-updates enabled Stop Spammers: version: 2020.5, author: Trumani, Auto-updates disabled The Events Calendar: version: 5.1.6, author: Modern Tribe, Inc., Auto-updates enabled WP-PageNavi: version: 2.93.3, author: Lester 'GaMerZ' Chan, Auto-updates enabled WPForms Lite: version: 1.6.2.2, author: WPForms, Auto-updates enabled ### wp-plugins-inactive (4) ### Akismet Anti-Spam: version: 4.1.6, author: Automattic, Auto-updates enabled BitcoinNews: version: 1.0.1, author: TheBitcoinNews.com, Auto-updates disabled Site Kit by Google: version: 1.15.0, author: Google, Auto-updates disabled Stephino RPG: version: 0.1.2, author: Mark Jivko, Auto-updates disabled ### wp-media ### image_editor: WP_Image_Editor_GD imagick_module_version: Not available imagemagick_version: Not available file_uploads: File uploads is turned off post_max_size: 32M upload_max_filesize: 32M max_effective_size: 32 MB max_file_uploads: 20 gd_version: bundled (2.1.0 compatible) ghostscript_version: not available ### wp-server ### server_architecture: Windows NT 10.0 AMD64 httpd_software: Abyss/2.14-X1-Win32 AbyssLib/2.14 php_version: 7.4.8 64bit php_sapi: cgi-fcgi max_input_variables: 1000 time_limit: 30 memory_limit: 128M admin_memory_limit: 256M max_input_time: 60 upload_max_filesize: 32M php_post_max_size: 32M curl_version: 7.70.0 OpenSSL/1.1.1g suhosin: false imagick_availability: false pretty_permalinks: false ### wp-database ### extension: mysqli server_version: 8.0.21 client_version: mysqlnd 7.4.8 ### wp-constants ### WP_HOME: undefined WP_SITEURL: undefined WP_CONTENT_DIR: C:\Abyss Web Server\htdocs\wordpress/wp-content WP_PLUGIN_DIR: C:\Abyss Web Server\htdocs\wordpress/wp-content/plugins WP_MAX_MEMORY_LIMIT: 256M WP_DEBUG: false WP_DEBUG_DISPLAY: true WP_DEBUG_LOG: false SCRIPT_DEBUG: false WP_CACHE: true CONCATENATE_SCRIPTS: undefined COMPRESS_SCRIPTS: undefined COMPRESS_CSS: undefined WP_LOCAL_DEV: undefined DB_CHARSET: utf8mb4 DB_COLLATE: undefined ### wp-filesystem ### wordpress: writable wp-content: writable uploads: writable plugins: writable themes: writable ### wpforms ### version: 1.6.2.2 license: false lite: Sep 4, 2020 @ 9:58pm total_forms: undefined total_entries: undefined
Just to be sure there is no ssl related issue i installed the easy ssl fixer, but that didn’t help either.
Thanks for getting in touch, and providing the steps you’ve undertaken to troubleshoot. I noticed you don’t have any redirection in place (from http to https). Can you check for any redirection options available from your control panel dashboard before following the steps below:
- 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.
If the above fails please share the following:
- At what stages does setup fail
- Do you encounter a notice, error message or console errors?
- Can you share your current hosting provider?
First thing i did was fix the redirection. No longer an issue.
no change to google site kit plugin problem though.Then:
Installing the healthcheck and troubleshooting plugin left me with a fresh new problem.No troubleshooting options, plugin not listed in active, inactive or dropin plugins, plugin is active according to the new plugin installer.
also no exit troubleshooting mode options.
So…. at least i’ve got something to do other than the google site kit issue…..
The google site kit plugin setup fails right after clicking for activation.
after installing the google site kit plugin.
It then shows:`Sign in with Google to set up Site Kit
The Site Kit service will guide you through 3 simple setup steps.
Your site may not be ready for Site Kit
Looks like your site is having a technical issue with requesting data from Google services.
To get more help, ask a question on our support forum and include the text of the original error message:
google_api_connection_fail
It shows a button to start setup, but as i said it’s useless to go through the steps.
No other errors show up above the surface.
The console errors (below the surface i guess):
1.
[Violation] Forced reflow while executing JavaScript took 35ms2.
googlesitekit-vendor.a6a7daf97beee5846d93.js:1 [Violation] Added non-passive event listener to a scroll-blocking ‘touchstart’ event. Consider marking event handler as ‘passive’ to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952
registerInteractionHandler @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
(anonymous) @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
MDCRippleFoundation.registerRootHandlers_ @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
MDCRippleFoundation.init @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
MDCComponent @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
MDCRipple @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
MDCCheckbox.createRipple_ @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
MDCCheckbox @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
value @ chunk-googlesitekit-setup-wizard-proxy-5bdf3d9ac8dd1a05ada4.js:3
ba @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
e.unstable_runWithPriority @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
Nr @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
Yj @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
Lj @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
(anonymous) @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
e.unstable_runWithPriority @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
Nr @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
Br @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
z @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1
E.port1.onmessage @ googlesitekit-vendor.a6a7daf97beee5846d93.js:1Personally i don’t think there’s much info in there either.
Just to make sure i tried it from the new Google Edge browser:
This resulted in the same problem with google site kit, the console was different though:
1.
[Intervention] Images loaded lazily and replaced with placeholders. Load events are deferred. See https://go.microsoft.com/fwlink/?linkid=2048113
2admin.php?page=googlesitekit-splash:12.
Tracking Prevention blocked access to storage for https://secure.gravatar.com/avatar/dcfc5579a9846952e382c32995723cd5?s=26&d=mm&r=x.Again though i doubt there’s much to be learned from those messages.
Thank you for your effort and i hope this information helps to get to a solution.
Well,
fiddling around, removing some plugins among other things, i have been able to get that troubleshooting plugin to appear, and function.
Alas google site kit plugin setup was not effected in any way.
You also asked what my current hosting provider was. It’s me!
I’ve got an internet subscription with online.nl and i have setup a server on one of the systems on my lan. I set the modem/router to open ports 80 and 443 and forward them to the local ip of the machine hosting the server. Works like a charm.Like i said, it has worked for almost a year up until the machine i was running the webserver and site on decided to die on me, and i was forced to host the site on Windows 10 instead of Linux (Xampp before Wampp now).
There is literally nothing different as far as i can tell, as nothing changed in the settings except on the router the MAC adress to which the static dhcp adress 192.168.1.69 was assigned changed. Now the windows box’s network card get’s the ip adress. The firewall rules, portforwarding and everything else haven’t changed.
On the DNS there was a small change. I used a subdomain before (deuzige.v0id.nl) and now i use a tlc domain (deuzige.ga)
Other than that… same old same old…
hope you can help me out here!! thanks in advance!
Many thanks for the update. It seems like a server configuration may be resulting in Site Kit not being able to authenticate your site. The plugin needs to be able to connect to https://sitekit.withgoogle.com.
If you’re using wp-cli you can check using the following command:
wp eval 'print_r(wp_remote_head("https://sitekit.withgoogle.com"));'
If you’re not using wp-cli can you setup another site on the same server and check for the same issue?
Hi,
thanks again for getting back to me.
I had to fiddle a bit to get wp-cli to work but the following was the output:Parse error: syntax error, unexpected ‘:’, expecting ‘)’ in phar://C:/wp-cli/wp-cli.phar/vendor/wp-cli/eval-command/src/Eval_Command.php(37) : eval()’d code on line 1
Error: There has been a critical error on your website.Learn more about debugging in WordPress. There has been a critical error on your website.Hope this leads to a possible solution. (as this error tells me zilch to be honest)
Thanks for providing an update. I may need to escalate this issue. Before I do so can you inform me of the below:
- Do other plugin installs work fine when installed via the admin panel?
- Did you try setup Site Kit previously when using a subdomain?
- Does the same issue arise if you temporarily deactivate your Firewall at host level?
Hi,
thanks for continuing to work with me to fix this issue. It’s really appreciated.
1. Yes. Other plugin installs work perfectly. And before you ask, i did try and disable all other plugins to see if that worked. It didn’t.
2. Yes i did. I actually had it working fine on deuzige.v0id.nl, which was my previous site, only to learn that Google adsense didn’t work on subdomains if you didn’t own the tld. That’s why i got myself a tld: deuzige.ga
3. I disabled every firewall there was to disable. On the windows host, on the router and i even tried throwing the darned thing into the DMZ but to no avail.I’d really really hate to have to start completely from scratch, just to get the kit to work. Help me wordpress support forum one Kenobi… you’re my only hope….
Regards,
ChristHa, well I hope I can be of assistance. The team are looking into the domain registered on the Site Kit service now. In the meantime do you mind following the steps below to try and get connected?
- Ensure all non secure traffic is redirected (I can access your http site at present)
- Disconnect your account from Site Kit
- Temporarily switch your “WordPress Address (URL)” and “Site Address (URL)” from https://deuzige.ga/wordpress to https://deuzige.ga/wordpress in your WordPress General Settings configuration.
- Log back into your site once requested and then undo the changes you made (reverting back to the full address with https
- Attempt setup once more
Let me know of the outcome of the above, or if you have any questions.
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.
Ciao James Osborne ho anche io lo stesso problema di n00bn0bb3r
ho anche provato l’ultima prcedura di cambiare indirizzo del sito e dell’url da https a http e viceversa ma non ha funzionato,
tu pensi che devo usare un’altro plugin?
@falchetto59d sorry for just seeing your reply. Could you open a new support topic for your case specifically? We’d be happy to assist you there. Thank you!
- The topic ‘google_api_connection_fail when activating plugin’ is closed to new replies.