• i am trying to implement login using google on my WooCommerce login page. i have setup everything properly on the OAuth screen and have given the same google client id and secret id in the plugin. still when i try to login using the google icon , i get an error

    error image link – https://ibb.co/XjQmGvt

    i am using the Super Socializer plugin to implement the social login

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Heateor Support

    (@heateor)

    It’s because you have customized the code of the plugin. In the main file of the plugin there should be space of one character between the two scopes https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile being used for the Google login.

    Thread Starter manoranjan11

    (@manoranjan11)

    i have not done any changes in the code of the plugin.
    can you please guide me where can i find this file.

    Plugin Author Heateor Support

    (@heateor)

    You can see this plugin working fine at the demo site https://super-socializer-wordpress.heateor.com/
    You can search the scopes I mentioned in the previous post, in the super_socializer.php file.

    Thread Starter manoranjan11

    (@manoranjan11)

    i checked and i see the space is already there. do i need to change anything else

    proof of file – https://ibb.co/QXCY6dS

    Plugin Author Heateor Support

    (@heateor)

    Then you would like to try keeping only this plugin active for a while just to check if this makes any difference and if some other plugin is causing conflict. If it makes any difference, you can activate other plugins one-by-one and detect the one which is causing this. Once you do we can work on the resolution.

    Open super_socializer.php
    Find the line

    wp_redirect("https://accounts.google.com/o/oauth2/auth?client_id=" . $theChampLoginOptions['google_key'] . "&scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile&state=". $googleLoginState ."&response_type=code&redirect_uri=" . home_url());
    	        die;

    and put an : + between links , so the final code look like this :

    wp_redirect("https://accounts.google.com/o/oauth2/auth?client_id=" . $theChampLoginOptions['google_key'] . "&scope=https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile&state=". $googleLoginState ."&response_type=code&redirect_uri=" . home_url());
    	        die;
    • This reply was modified 3 years, 6 months ago by Bustean Dan.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘error showing when using login with google’ is closed to new replies.