The faulty code is only executed when there is a problem during the communication with the API. So it's possible that it does not work right away after having added the new version.
I just logged in with Google, then I was redirected to the registration page where I could fill out my details. When I tried to save the settings a white page was displayed. White pages are usually due to PHP errors. Could you please have a look at your PHP error logs?
Besides that, it's pretty ridiculous to have "choose account to continue to oneall.com" in Google consent screen. This is a recent change of Google. Google seems to extrapolate the name from the API subdomain. We however have tens of thousands of websites using the login with Google and based on our numbers I can affirm that this mention has no noticeable influence on the logins.
[Fri Jul 14 09:43:55.776047 2017] [:error] [pid 2680] [client 10.2.5.6:31580] PHP Fatal error: Call to undefined function getstatuscode() in /opt/websites/conservativetheories/modules/social_login/social_login.module on line 611, referer: https://www.conservativetheories.com/user/register
[Fri Jul 14 09:46:41.104185 2017] [:error] [pid 1758] [client 10.2.5.6:31599] PHP Fatal error: Call to undefined function getstatuscode() in /opt/websites/conservativetheories/modules/social_login/social_login.module on line 611, referer: https://www.conservativetheories.com/user/register
[Fri Jul 14 10:01:16.660319 2017] [:error] [pid 2739] [client 10.1.124.11:35447] PHP Fatal error: Call to undefined function getstatuscode() in /opt/websites/conservativetheories/modules/social_login/social_login.module on line 611, referer: https://www.conservativetheories.com/user/register
[Fri Jul 14 10:02:27.392914 2017] [:error] [pid 1762] [client 10.1.124.11:18081] PHP Fatal error: Call to undefined function getstatuscode() in /opt/websites/conservativetheories/modules/social_login/social_login.module on line 611, referer: https://www.conservativetheories.com/user/register
Thanks for fast resolution! It looks that it works now. I've simply updated your module, cleared cache, and successfully registered.
But there's obviously another issue - although the registration was successful, I've "redirected" to the same registration page (/user/register), offered to fill registration form again. I've had to manually go to /user/login, and then successfully login there with my new account. Feel free to try yourself if you want.
I'm not sure - maybe such things should be configured in Drupal itself, but it would be the best if the user gets logged in automatically as soon as he/she is registered. (Having in mind that email verification isn't needed when user registers by using existing social account.)
I have several SMTP/mail related errors like:
Error sending email (from admin@conservativetheories.com to ######@oneall.com1 with reply-to admin@conservativetheories.com).
(I've masked your address.)
But it's probably due to my SMTP configuration - not due to your module, right? Sorry for that! Is this related to not redirecting users appropriately?
Answers
I just logged in with Google, then I was redirected to the registration page where I could fill out my details.
When I tried to save the settings a white page was displayed.
White pages are usually due to PHP errors. Could you please have a look at your PHP error logs?
Besides that, it's pretty ridiculous to have "choose account to continue to oneall.com" in Google consent screen.
This is a recent change of Google. Google seems to extrapolate the name from the API subdomain. We however have tens of thousands of websites using the login with Google and based on our numbers I can affirm that this mention has no noticeable influence on the logins.
[Fri Jul 14 09:43:55.776047 2017] [:error] [pid 2680] [client 10.2.5.6:31580] PHP Fatal error: Call to undefined function getstatuscode() in /opt/websites/conservativetheories/modules/social_login/social_login.module on line 611, referer: https://www.conservativetheories.com/user/register [Fri Jul 14 09:46:41.104185 2017] [:error] [pid 1758] [client 10.2.5.6:31599] PHP Fatal error: Call to undefined function getstatuscode() in /opt/websites/conservativetheories/modules/social_login/social_login.module on line 611, referer: https://www.conservativetheories.com/user/register [Fri Jul 14 10:01:16.660319 2017] [:error] [pid 2739] [client 10.1.124.11:35447] PHP Fatal error: Call to undefined function getstatuscode() in /opt/websites/conservativetheories/modules/social_login/social_login.module on line 611, referer: https://www.conservativetheories.com/user/register [Fri Jul 14 10:02:27.392914 2017] [:error] [pid 1762] [client 10.1.124.11:18081] PHP Fatal error: Call to undefined function getstatuscode() in /opt/websites/conservativetheories/modules/social_login/social_login.module on line 611, referer: https://www.conservativetheories.com/user/register
But there's obviously another issue - although the registration was successful, I've "redirected" to the same registration page (/user/register), offered to fill registration form again. I've had to manually go to /user/login, and then successfully login there with my new account. Feel free to try yourself if you want.
could you please check if you have errors in your Drupal log now?
Regards
Error sending email (from admin@conservativetheories.com to ######@oneall.com1 with reply-to admin@conservativetheories.com).
(I've masked your address.)
But it's probably due to my SMTP configuration - not due to your module, right? Sorry for that! Is this related to not redirecting users appropriately?