Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Laszlo

    (@laszloszalvak)

    Hi @saruncloudspring

    As you see in the documentation of WP Engine:

    520-530 error codes are usually indicate Cloudflare specific errors.

    I checked some topics, and as I see some hosts may limit the number of requests over the /wp-login.php page:

    and since we are trying to handle over the OAuth flow over the default login page, that could block our requests as well.
    I am not really sure if WP Engine also has such limitations, but what you could try is making Nextend Social Login to handle the OAuth flow and the Register flow over other pages.
    For that you should use our “Page for register flow” and the “OAuth redirect uri proxy page” settings, that both can be found in our Global Settings > General tab:

    For the Page for register flow setting: You should create a new page and place the shortcode into it: [nextend_social_login_register_flow] then select that page for this setting. Extra information before the registration with social login – like Terms and Conditions – would be asked on this page.

    For the OAuth redirect uri proxy page setting: You should create another new and completely empty page ( that you won’t use for anything else ) and select it as OAuth redirect uri proxy page. Once it is done, the redirect URL of each configured provider will change, as the OAuth flow will be handled over this new page instead of the /wp-login.php page. So you will need to add the new redirect URLs into each of your Apps. ( Nextend Social Login will also warn you about this with a message, where you can see all the steps, but actually, you can find the redirect URLs in the Getting Started section of the providers, too. – The redirect URLs are the URLs that usually contain this query string: “?loginSocial=” )

    Once it is done, make sure the created pages are publicly accessible and don’t forget to exclude the created pages from all kind of caching -including in Cloudflare – since these pages will need to run PHP codes when a user connects with social login.

    Best regards,
    Laszlo.

    Thread Starter Sarun developer

    (@saruncloudspring)

    I have created a site on another server there is no issue only an issue with the wp-engine server. Only live site is connected with cloudfare.

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @saruncloudspring

    I checked the site that I see on your screenshot as host, and I can see the same problem occur with both Facebook and Google.
    In your case, the Cloudflare error seems to be connected to the registration.
    Since the login works if I try to connect with a social media account that is associated with an email address that already exists on your site.

    So could you check please if you go to Nextend Social Login > Global Settings > General tab:

    and you set our “Membership” setting to “Enabled”, does that makes any difference?

    If the problem still occurs, could you configure the “Page for register flow” and the “OAuth redirect uri proxy page” settings as I suggested above? Since on your site I can see that your site still works with the default “None” values.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Google Registration Return 520 error’ is closed to new replies.