Social Login: Google gives blank page
If you are using Google login with YITH WooCommerce Social Login it may happen that you are redirected to a blank page when trying to login with your Google account.
In order to troubleshoot this issue you should follow these steps:
- enable the plugin debug logging from plugin options.
- log in with Google again
After you get the blank page, you should check this file:
https://mywebsite.com/wp-content/plugins/yith-woocommerce-social-login-premium/logs/log.txt
and search for a debug message like the following ( instead of the xxxxxxxxxxxx you’ll see the ID of your project ):
DEBUG -- 127.0.0.1 -- 2019-06-17T09:03:08+00:00 -- OAuth2Client::request(). dump request result: -- s:965:"{
"error": {
"errors": [
{
"domain": "usageLimits",
"reason": "accessNotConfigured",
"message": "Project xxxxxxxxxxxx is not found and cannot be used for API calls. If it is recently created, enable Google+ API by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=208121886086 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.",
"extendedHelp": "https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=xxxxxxxxxxxx"
}
],
"code": 403,
"message": "Project xxxxxxxxxxxx is not found and cannot be used for API calls. If it is recently created, enable Google+ API by visiting https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=xxxxxxxxxxxx then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry."
}
}
";
So, as recommended in that message, you should visit the page https://console.developers.google.com/apis/api/plus.googleapis.com/overview?project=xxxxxxxxxxxx and enable Google+ API ( this may sound weird because Google+ platform was recently closed but its API is still needed for the login ).