500 error after Google Login
-
Hello there,
All of a sudden, today, the social login of users is not possible, due to a 500 error. So, what happens is that after a user logs in they get to a page where this message is displayed:
This page isn’t working
(website name) is currently unable to handle this request.
HTTP ERROR 500As a troubleshooting step, I have tried re-creating the oAuth thing and have entered the api credentials on the plugin. This has solved the issue for around 5 minutes. Then the same happens.
I have also updated both Ultimate member and the social login extension to the latest versions. I do not provide the page url and have replace it with xxxxx as it is IP restricted. Here are the logs:
2018/08/21 10:19:16 [error] 67894#0: *4 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught Google_Auth_Exception: Error fetching OAuth2 access token, message: 'redirect_uri_mismatch: Bad Request' in /home/www/sites4/xxxxx.com/esc/wp-content/plugins/um-social-login/providers/google/src/Google/Auth/OAuth2.php:126 Stack trace: #0 /home/www/sites4/xxxxx.com/esc/wp-content/plugins/um-social-login/providers/google/src/Google/Client.php(128): Google_Auth_OAuth2->authenticate('4/QgDI-someletters-PMl4...', false) #1 /home/www/sites4/xxxxx.com/esc/wp-content/plugins/um-social-login/providers/google/um-social-login-google.php(65): Google_Client->authenticate('4/QgDI-someletters-l4...') #2 /home/www/sites4/xxxxx.com/esc/wp-includes/class-wp-hook.php(286): UM_Social_Login_Google->get_auth('') #3 /home/www/sites4/xxxxx.com/esc/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(NULL, Array) #4 /home/www/sites4/xxxxx.com/esc/wp-includes/plugin.php(453): WP_Hook->do_action(Array) #5 /home/www/sites4/xxxxx.com/esc/wp-settings.php(450): do_action('init') #6 /home/www/sites" while reading response header from upstream, client: 1xx.9x.1xx.xx0, server: esc.xxxxx.com, request: "GET /login/?provider=google&code=4%2FQgDIDc-someotherlettersandnumbers-zz-someletters-jV_am32d_SsNLZZ-z03DtJ_nnl1A&scope=https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile HTTP/2.0", upstream: "fastcgi://unix:/var/run/fastcgi/sites4/sites4.socket:", host: "esc.xxxxx.com", referrer: "https://accounts.google.gr/accounts/SetSID"
Can you please kindly guide me through resolving this?
Best regards
- The topic ‘500 error after Google Login’ is closed to new replies.