Google authentication in Drupal 8 doesn't work

Guys, I simply can't get your service working in my website. Please check here: https://www.conservativetheories.com/user/login

I'm constantly getting server error response (500) when I try to register. Drupal doesn't show any error log messages.

Besides that, it's pretty ridiculous to have "choose account to continue to oneall.com" in Google consent screen. It'll likely make a visitor who wants to register suspicious, and even cause him to give up on registration completely. According to this forum (https://support.oneall.com/forums/discussion/5399/connect-with-google-choose-an-account-to-continue-to-oneall-com#latest) we can resolve this only in "Silver plan". If so "Freemium" doesn't make too much sense...

Best Answer

Answers

  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    edited July 2017
    Hi Aleksandar,

    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.
  • Here's the thing:

    [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.)
  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Hi Aleksandar,

    could you please check if you have errors in your Drupal log now?

    Regards
  • 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?
  • Just to inform you: as soon as I've resolved email sending error - your plugin started working as charm.
  • Claude_SchlesserClaude_SchlesserAdministratorOneAll Team
    Thank you for the debugging and for the update! I'm glad to hear that it works now.

Welcome!

Please sign in to your OneAll account to ask a new question or to contribute to the discussions.

Please click on the link below to connect to the forum with your OneAll account.