Plugin Support
Laszlo
(@laszloszalvak)
Hi @digitalcitysolutions
Your problem seems to be connected to that you added the [theme_my_login] shortcode to our page, and that might cause a conflict.
The pages that you selected for our “Page for register flow” and “OAuth redirect uri proxy page” settings, should not be used for anything else as we will try to handle our own codes over the selected pages, and if you are running third party codes on them, those third party codes my break our flow.
So you should setup the “Page for register flow” and “OAuth redirect uri proxy page” settings the following way:
Page for register flow:
You should create a new page that you don’t use for anything else, and you should add the shortcode to it that Nextend Social Login suggests for this setting:
[nextend_social_login_register_flow]
Once it is done, you should save the page and select this page as “Page for register flow”.
OAuth redirect uri proxy page:
You should create another new page. Leave this page completely empty.
Save the page and select it as “OAuth redirect uri proxy page”.
Once it is done, the redirect url of your providers will change, so you will need to add the new redirect url for each of your configured Apps. Nextend Social Login will also display a message about this, where you will see the steps that help you in adding the new URLs.
If you still see a problem even after you configured our settings the way I suggested, then let me know and I will take another look.
Best regards,
Laszlo.
I did everything as you instructed me to but nothing changed. There’s still a redirect back to the home page.
Plugin Support
Laszlo
(@laszloszalvak)
Hi @digitalcitysolutions
I have just installed the latest version of Theme My Login on my local test site and configured the “Page for register flow” and “OAuth redirect uri proxy page” settings and I couldn’t reproduce this problem there.
In your case it seems something triggers a redirect when we try to use that page. So I think something runs codes on the page that you selected for our “OAuth redirect uri proxy page” setting.
You could find this out, by doing a plugin/theme conflict test, so basically you should check the login when Nextend Social Login and Theme My Login the only enabled plugins on your site.
If the problem doesn’t occur that way, then you should start enabling the plugins one by one or in small groups, and check the login each time. Once the problem starts occurring again, you managed to find the plugin that triggers this redirect.
If you managed to find it, then please let me know its name and I will check it on my local test site.
Seems like this was a misconfiguration in my webserver.
The problem persisted even after I disabled all plugins except theme-my-login and nextend-social-logins.
Then I tracked the redirect to nextend-social-login.php:687
wp_redirect(home_url());
After that it was a simple matter to determine why it went in this code branch and I saw that between the q parameter and the socialLogin Parameter was no & to separate them.
Checking in the nginx configuration I saw that the try_files parameter was
try_files $uri $uri/ /index.php?q=$uri$args;
instead of
try_files $uri $uri/ /index.php?q=$uri&$args;
after adding the & it started working.
Thanks for the help.