pakey
Forum Replies Created
-
Forum: Plugins
In reply to: [Log in with Google] Redirect_to in shortcode not workingI enabled the Google Chrome AI to check it, here it is;
It appears the “one tap login error” is primarily due to the Google Identity Services client library (gsi.js) not being loaded or initialized correctly. The <code class=” “>g_id_onload element is present in the DOM with a client ID, but the necessary JavaScript functions from the Google library are not available.
Here are the potential causes and solutions:
- <strong class=” “>gsi.js script not loaded: The most common reason for this error is that the Google Identity Services JavaScript library (<code class=” “>https://accounts.google.com/gsi/client) is not being loaded on the page.
- <strong class=” “>Solution: Ensure that the <code class=” “><script async defer src=”https://accounts.google.com/gsi/client”></script> tag is present in the <code class=” “><head> or at the beginning of the <code class=” “><body> of your HTML document. It should load before the <code class=” “>g_id_onload div and any related JavaScript calls.
- <strong class=” “>Script loading order: Even if the script tag is present, if other scripts are blocking its execution or if the <code class=” “>g_id_onload element or any related JavaScript tries to access <code class=” “>google.accounts.id before <code class=” “>gsi.js has fully loaded, it can lead to this error.
- <strong class=” “>Solution: Place the <code class=” “>gsi.js script tag as early as possible in your <code class=” “><body> or <code class=” “><head>, ideally with <code class=” “>async and <code class=” “>defer attributes. Ensure any custom JavaScript that initializes Google One Tap is executed only after the <code class=” “>gsi.js library has loaded (e.g., within a <code class=” “>window.onload event listener or by placing the script at the end of the <code class=” “><body>).
- <strong class=” “>Network issues or ad blockers: Occasionally, network connectivity problems or browser extensions like ad blockers can prevent <code class=” “>gsi.js from loading.
- <strong class=” “>Solution: Check the browser’s Network tab in DevTools to confirm <code class=” “>gsi/client is loading successfully (HTTP 200 status). Temporarily disable browser extensions to rule out ad blockers.
- <strong class=” “>Client ID mismatch or misconfiguration: While the client ID was present, double-check that it is the correct one for your Google Cloud project and that the “Authorized JavaScript origins” in your Google Cloud Console are correctly configured to include your website’s URL.
- <strong class=” “>Solution: Verify the <code class=” “>data-client_id value against your Google Cloud project credentials. Ensure <code class=” “>https://mywebsite.org (or the appropriate origin for your login page) is listed in “Authorized JavaScript origins.”
To investigate further and potentially fix this, let’s check if the <code class=” “>gsi.js script is present in the DOM.
So I add URI under the ‘Authorized JavaScript origins’ (ex; https://mywebsite.org) and it works well so far. I’ll do more testing.
Just for info, I’m unable to locate instructions in the rtCamp GitHub repository regarding where to enter the ‘Authorized JavaScript origins’. I wasn’t aware this was a required step, and I genuinely didn’t see it mentioned in the existing documentation. My apologies if I simply overlooked it! 🙂
Forum: Plugins
In reply to: [Log in with Google] Redirect_to in shortcode not workingI’m using chrome with a default shortcode;
[google_login button_text=”Google Login” force_display=”yes” /]
It show this error in the One Tap Login;Can’t continue with google.com
Something went wrong
Forum: Plugins
In reply to: [Log in with Google] Redirect_to in shortcode not workingIt works now, maybe cache, but OneTap Login is still not working, button works well
Forum: Plugins
In reply to: [Log in with Google] Redirect_to in shortcode not workingI’m using all default and it is a fresh install, redirect shortcode is not working no matter what, any idea how to fix this?
Login with Google Version 1.4.1
WP Version 6.8.3Thanks
Forum: Fixing WordPress
In reply to: Giving WordPress Its Own Directory give error 404Hi George,
Thanks for your reply 🙂
I’m actually just reporting the issue. I’m not going to use this feature when there is an issue with it. Posted it here in hope that those who want to use this feature aware on this issue.
Thanks 🙂
Forum: Plugins
In reply to: [WP Hide & Security Enhancer] Still show some theme class nameThanks for your reply…
I’ve read it and considering your PRO version.Thanks
Forum: Plugins
In reply to: [WP Hide & Security Enhancer] Still show some theme class nameAnyone?
Forum: Plugins
In reply to: [Perfecty Push Notifications] Integrating with PWAThis is a great plugin! I however still failed to make it work on Firefox. Does it work with Firefox? 😀
By the way, any update on that PWA?
Thanks
- <strong class=” “>gsi.js script not loaded: The most common reason for this error is that the Google Identity Services JavaScript library (<code class=” “>https://accounts.google.com/gsi/client) is not being loaded on the page.