Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown Error after Signing IN #4

Closed
phpbits opened this issue Jun 20, 2019 · 30 comments
Closed

Unknown Error after Signing IN #4

phpbits opened this issue Jun 20, 2019 · 30 comments
Assignees
Labels
Type: Support Support request

Comments

@phpbits
Copy link

phpbits commented Jun 20, 2019

Happening on Step 2, after allowing the API and signed in, it's throwing this on the dashboard:

Screen Shot 2019-06-20 at 12 11 18 PM


Do not alter or remove anything below. The following sections will be managed by moderators only.

Changelog entry

Acceptance criteria

@ThierryA ThierryA added Type: Bug Something isn't working Type: Support Support request and removed Type: Bug Something isn't working labels Jun 20, 2019
@jamesozzie
Copy link
Collaborator

@phpbits Just to confirm, after step 2 was complete it never directed you to step 3? (to verify the URL).

If possible can you clear your cache and then reset your Sit Kit (Settings > Admin Settings > Reset Site Kit). Also ensure you don't have any API restrictions also and authenticate via the same Google account with which you created OAuth credentials with.

@phpbits
Copy link
Author

phpbits commented Jun 20, 2019

@jamesozzie it's on step 2. I'll try that. Thanks!

@phpbits
Copy link
Author

phpbits commented Jun 20, 2019

@jamesozzie No Settings nav available. I can't get pass here :

Screen Shot 2019-06-20 at 7 25 39 PM

After clicking the "Allow" buttons, I've been redirected to my original screenshot with "Unknown Error" printed.

@jamesozzie
Copy link
Collaborator

In order for me to investigate or log as a bug can you inform me of the below:

WordPress version:
PHP Version:
Operating System:
WordPress plugin being uses:

Do you have any other WordPress installs on the same server you can try with?

@gioangion
Copy link

Same here. Can't get past step #2.

WordPress version: 5.2.2–it_IT
PHP Version: 5.6.35
Operating System: Linux

@jamesozzie jamesozzie added the Type: Bug Something isn't working label Jun 20, 2019
@ThierryA ThierryA added the P1 Medium priority label Jun 20, 2019
@ThierryA ThierryA added this to the Hot Fixes Release milestone Jun 20, 2019
@bigmike7801
Copy link

bigmike7801 commented Jun 20, 2019

Getting the same issue here after step 2.

Here's some errors in my logs:

#0 /domXXXXX/wp-content/plugins/google-site-kit/vendor/google/apiclient/src/Google/Client.php(340): Google\Auth\OAuth2->buildFullAuthorizationUri(Array)

#1 /domXXXXX/wp-content/plugins/google-site-kit/includes/Core/Authentication/Clients/OAuth_Client.php(455): Google_Client->createAuthUrl()

#2 /domXXXXX/wp-content/plugins/google-site-kit/includes/Core/Authentication/Authentication.php(443): Google\Site_Kit\Core\Authentication\Clients\OAuth_Client->authorize_user()

#3 /domXXXXX/wp-content/plugins/google-site-kit/includes/Core/Authentication/Authentication.php(189): Google\Site_Kit\Core\Authentication\Authentication->handle_oauth()

#4 /wordpress-4.9.10/wp-includes/class-wp-hook.php(286): Google\Site_Kit\Core\Authentication\Authentication->Google\Site_Kit\Core\Authentication\{closure}('')

#5 /wordpress-4.9.10/wp-includes/class-wp-hook.php(310): WP in /dom16750/wp-content/plugins/google-site-kit/vendor/google/auth/src/OAuth2.php on line 651

WP Version 4.9.10
PHP 7.1.29-1+ubuntu16.04.1+deb.sury.org+1
Zend Engine v3.1.0 with Zend OPcache v7.1.29

@phpbits
Copy link
Author

phpbits commented Jun 21, 2019

WordPress version: 5.2.2
PHP Version: 7.3.4
Operating System: Linux
Plugins:
Akismet Anti-Spam | Version 4.1.2 by Automattic
Autoptimize | Version 2.5.1 by Frank Goossens (futtta)
Block Gallery | Version 1.1.6 by Rich Tabor
CoBlocks | Version 1.10.0 by GoDaddy
Easy Login Styler | Version 1.0.6 by Phpbits Creative Studio
EditorsKit | Version 1.7 by Jeffrey Carandang
Gutenberg | Version 5.9.2 by Gutenberg Team
SEOPress | Version 3.5.8 by Benjamin Denis
SEOPress PRO | Version 3.5.8 by Benjamin Denis

@1wayrocker
Copy link

I received the Unknown Error myself. I noticed that my OAUTH Credentials was using a non-ssl and my website was using a ssl. Adjusted the Site Address (URL) and WordPress Address (URL) in WP Settings and re-authorized. Step 2 completed. Hope that can help

@ThierryA ThierryA removed Type: Support Support request labels Jun 26, 2019
@jamesozzie
Copy link
Collaborator

Great catch @1wayrocker I was able to replicate the same error. @phpbits Can you check your "WordPress Address (URL)” and “Site Address (URL)" from the general settings in your WordPress setup?

@bigmike7801
Copy link

I received the Unknown Error myself. I noticed that my OAUTH Credentials was using a non-ssl and my website was using a ssl. Adjusted the Site Address (URL) and WordPress Address (URL) in WP Settings and re-authorized. Step 2 completed. Hope that can help

This fixed it for me too.

@phpbits
Copy link
Author

phpbits commented Jun 27, 2019

Can you check your "WordPress Address (URL)” and “Site Address (URL)" from the general settings in your WordPress setup?

Fixes the issue! My addresses isn't https on these fields. Changed and works perfectly now ;) Thanks!

@jamesozzie
Copy link
Collaborator

Great news @phpbits, and thanks for pointing this out @bigmike7801.

@easytraxbd
Copy link

image

I fixed it by making WP site URL settings and actual live URL. One was https and another was http. Both has to be same.

@lucymtc lucymtc self-assigned this Jun 28, 2019
@ThierryA ThierryA modified the milestones: 1.0.0-beta.1.0.1, 1.0.0-beta.1.0.2 Jul 3, 2019
@felixarntz felixarntz removed P1 Medium priority Type: Bug Something isn't working labels Jul 9, 2019
@felixarntz felixarntz removed this from the 1.0.0-beta.1.0.2 milestone Jul 9, 2019
@felixarntz
Copy link
Member

@marrrmarrr @ThierryA We need to investigate a bit more what we can do about this.

@yosef-coachella
Copy link

I am still getting this same error.
In my General settings everything is HTTPS:
Image 2019-07-10 at 20 02 59
But Google keeps putting HTTP:
Image 2019-07-10 at 19 59 53
Image 2019-07-10 at 19 58 19

I'm not sure what I can do from here...

@yosef-coachella
Copy link

Well, I went into Google APIs account and manually edited the oauth credentials to add the URL with HTTPS. I downloaded the new JSON, copied the text, pasted back into the Site Kit dashboard. now it works.

@jamesozzie jamesozzie self-assigned this Jul 11, 2019
@jamesozzie jamesozzie added the Type: Support Support request label Jul 11, 2019
@jamesozzie
Copy link
Collaborator

@felixarntz I'll keep this open if you want to re-assign or work on a fix, in particular where sites uses https but don't redirect non https.

@rameshgrg
Copy link

hello there
i cant get pass the email authentication
both my wordpress and site url has HTTPS
I tried several time after clearing cache and deactivating few other plugins --- but no luck
if any of you hav fixed this issue with site kit please do let us know
thanks

@jamesozzie
Copy link
Collaborator

@rameshgrg Do you mind trying from an incognito window using Chrome? Also please test with another theme active (You can revert back to your current theme after). If that doesn't work please check your console for any errors and paste them here.

@yosef-coachella
Copy link

I don't know if this is a connected issue but Console, Analytics, and Speed are all connected but data is never loaded. Just hours and hours of the dashboard looking like it is about to load something...

Screen Recording 2019-07-11 at 14 40
Screen Recording 2019-07-11 at 14 37

Any suggestions?

@jamesozzie
Copy link
Collaborator

@yosef-coachella Do you have iThemes security installed? If so can you disable the "Limits the number of characters that can be sent in the URL" option? If you are not using this plugin can you confirm what other plugins you are using, and also please try with plugins deactivated and incognito mode.

@solamathew
Copy link

I received the Unknown Error myself. I noticed that my OAUTH Credentials was using a non-ssl and my website was using a ssl. Adjusted the Site Address (URL) and WordPress Address (URL) in WP Settings and re-authorized. Step 2 completed. Hope that can help

This worked for me too.

After setting the URL to HTTPS, I cleared cache before proceeding and it worked.

Thanks.

@solamathew
Copy link

I don't know if this is a connected issue but Console, Analytics, and Speed are all connected but data is never loaded. Just hours and hours of the dashboard looking like it is about to load something...

Screen Recording 2019-07-11 at 14 40
Screen Recording 2019-07-11 at 14 37

Any suggestions?

Same with me...

Need Help

@jamesozzie
Copy link
Collaborator

@solamathew What plugins do you have installed, specifically caching or security plugins? If using iThemes there is an option you can toggle in the settings relating to URL string limits.

@yosef-coachella
Copy link

yosef-coachella commented Jul 24, 2019

For me the problem was caused by a security plugin called Webarx. When I contacted tech support they replied: "It probably collides with our plugin since we use a chart on the dashboard as well."
As such they were unable to offer a fix but implied that in a future update they may fix their code to prevent this.

My solution for now is to disable Webarx when I want to look at Sitekit charts/tables and hope I remember to reactivate it when finished.

@jamesozzie
Copy link
Collaborator

Closing this as resolved. Inputting the "https" and matching the Site Address (URL) and WordPress Address (URL) resolved submitters issue.

@solamathew The issue you are experiencing is more related to #150

@stylestrends
Copy link

Just Change URL into WP Admin >> Setting > General > Website Url > if Http:// Then add https://

@stylestrends
Copy link

I don't know if this is a connected issue but Console, Analytics, and Speed are all connected but data is never loaded. Just hours and hours of the dashboard looking like it is about to load something...
Screen Recording 2019-07-11 at 14 40
Screen Recording 2019-07-11 at 14 37
Any suggestions?

Same with me...

Need Help

Same here bro...

@jamesozzie
Copy link
Collaborator

@stylestrends Others have reported the same issue, not specifically in this issue. In many cases there is a configuration setting in a security or caching which can solve this issue. Please inform me what caching or security plugins you are using.

@hadifarnoud
Copy link

many users like me get this issue because their server cannot connect to Google. withgoogle.com blocked Iran IPs and all sites from thoses IPs have no luck.

I do not know how to fix this tbh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Support Support request
Projects
None yet
Development

No branches or pull requests