Title: Google authentication failed
Last modified: April 21, 2023

---

# Google authentication failed

 *  Resolved [marivsh](https://wordpress.org/support/users/marivsh/)
 * (@marivsh)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/google-authentication-failed-3/)
 * Hello,
 * I have a problem with the google account login/register, while on the plugin 
   settings page everythink seems to be is ok (got an Works Fine – Enabled info 
   on Google provider settings page), after user try to login or register with google
   account, the popup with login credentials to google account shows up, and works
   ok, but after credentials entering process ends and the popup is gone, the page
   is not redirected / reloaded, and user is not logged in.
 * Note: I have disabled register option in wordpress General settings, but membership
   setting in plugin Settings page is set to “enable”, so it should works normally.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fgoogle-authentication-failed-3%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 7 replies - 1 through 7 (of 7 total)

 *  Plugin Support [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/google-authentication-failed-3/#post-16675708)
 * Hi [@marivsh](https://wordpress.org/support/users/marivsh/)
 * Thanks for contacting us!
 * Please enable the “Debug mode” on our General tab:
    - [https://nextendweb.com/nextend-social-login-docs/global-settings/](https://nextendweb.com/nextend-social-login-docs/global-settings/)
 * then try the login with Google again and that will probably write out an error
   message that prevents the login. That could help us in figuring out what is the
   problem exactly.
 * Best regards,
   Laszlo.
 *  Thread Starter [marivsh](https://wordpress.org/support/users/marivsh/)
 * (@marivsh)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/google-authentication-failed-3/#post-16675723)
 * Hi [@laszloszalvak](https://wordpress.org/support/users/laszloszalvak/) , thanks
   for quick replay.
 * So the error stands: Unable to validate CSRF state
 * I see in doc info about that, so will try to fix it, but if you have additional
   info for me, just let me know, what else I can do 🙂
 *  Plugin Support [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/google-authentication-failed-3/#post-16675745)
 * Hi [@marivsh](https://wordpress.org/support/users/marivsh/)
 * This error usually occurs if:
    - we are not able to set the cookie that we use for the authentication. By default
      it is called “SESSnsl”
    - or if we are not able to get the necessary information from the site transients,
      that is necessary to avoid CSRF attacks
 * I checked the login with Google on your site and I can see that we are able to
   set the cookie. So most likely you have a third party plugin that messes up the
   site transients. A typical example is when you have an Object Cache installed
   on your site, but it wasn’t configured properly, so plugins which are trying 
   to get data from the site transients will fail, as no data will be returned.
 * If you have an Object Cache, you should try disabling it and see if it resolves
   the problem. If it does, then before you enable it, you need to make sure you
   have all the prerequisites to use Object cache.
 * E.g. from our experiences usually those people experience this problem who has
   the Object cache enabled, but:
    - they didn’t have the PHP extension installed
    - or the object cache server wasn’t started
 * Some plugins with Object cache feature usually have a status page, where they
   display these issues and those need to be fixed if you want to use object cache.
    -  This reply was modified 3 years, 1 month ago by [Laszlo](https://wordpress.org/support/users/laszloszalvak/).
 *  Thread Starter [marivsh](https://wordpress.org/support/users/marivsh/)
 * (@marivsh)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/google-authentication-failed-3/#post-16675768)
 * [@laszloszalvak](https://wordpress.org/support/users/laszloszalvak/)
 * I disable the Object cache in W3TC plugin settings, but error still occure. Any
   idea what can I do more?
 *  Plugin Support [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/google-authentication-failed-3/#post-16675803)
 * [@marivsh](https://wordpress.org/support/users/marivsh/)
 * The object cache can load over “Must use” and “Drop-Ins” plugins, too. So you
   should go to your plugins list, and check if you see those tabs. In this article
   you can find some screenshots that might help you in finding these tabs:
    - [https://www.narga.net/beginners-guide-wordpress-must-use-drop-ins-plugins/](https://www.narga.net/beginners-guide-wordpress-must-use-drop-ins-plugins/)
 * If you see any cache being loaded this way, you should try disabling them. ( 
   Note: Must use and Drop Ins plugins can only be disabled if you move the corresponding
   file out of the /wp-content folder.) Then check if that makes any difference.
 * In that case if you don’t have those tabs, but the problem still occurs, then
   you should try a complete plugin / theme conflict test. So basically you should:
    - disable all plugins on your site except Nextend Social Login
    - change your theme to a WordPress default one, like Twenty Twenty-One.
    - then check the login again ( on the /wp-login.php page you will find the Google
      button )
    - if the problem no longer occurs, you should start enabling the plugins one
      by one or in small groups then check the login again each time. Once the problem
      starts occurring again, you managed to find the plugin that causes the problem.
 *  Thread Starter [marivsh](https://wordpress.org/support/users/marivsh/)
 * (@marivsh)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/google-authentication-failed-3/#post-16683957)
 * Hi [@laszloszalvak](https://wordpress.org/support/users/laszloszalvak/) 🙂
 * After deleting the cache plugin drop-ins, everything now work ok 🙂 Thanks for
   your help, great approach to the problem from your side 🙂
 * Best regards
 *  Plugin Support [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * (@laszloszalvak)
 * [3 years, 1 month ago](https://wordpress.org/support/topic/google-authentication-failed-3/#post-16684066)
 * Hi [@marivsh](https://wordpress.org/support/users/marivsh/)
 * Then most likely the problem was that you didn’t have the prerequisites to run
   the object cache on your site.
 * As I mentioned above, most object cache usually have a status page. So if you
   would like to use Object Cache in the future, you should probably check their
   status page, as it might tell you what additional changes you have to make.
 * Anyways, I am glad you managed to fix it! 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘Google authentication failed’ is closed to new replies.

 * ![](https://ps.w.org/nextend-facebook-connect/assets/icon.svg?rev=3336394)
 * [Nextend Social Login and Register](https://wordpress.org/plugins/nextend-facebook-connect/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextend-facebook-connect/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextend-facebook-connect/)
 * [Active Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextend-facebook-connect/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextend-facebook-connect/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [Laszlo](https://wordpress.org/support/users/laszloszalvak/)
 * Last activity: [3 years, 1 month ago](https://wordpress.org/support/topic/google-authentication-failed-3/#post-16684066)
 * Status: resolved