Uwp_social stop working
This topic contains 10 replies, has 3 voices, and was last updated by Patrik 5 years, 6 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: social login
-
AuthorPosts
-
May 12, 2019 at 5:38 pm #4048
Hi,
Not sure what happened, it appears to happen after the upgrade of
UsersWP and Uwp_social to the latest version in a Multisite WordPress 5.2Using: https://userswp.io/docs/network-activation/
I have tested with:
– Network Activation for Main Site
– Network Activation for All SitesI have uninstalled, re-install and the results are the same.
Basically if you go to:
https://zonamotriz.com/login/
Try to login with Facebook, it goes to the authentication page, facebook login works properly, then it redirects to the main page site https://zonamotriz.com but the session is never open in WordPress. If I open a new tab Facebook is logged in so it works fine but in WordPress I can’t access for example: https://zonamotriz.com/profileI’m not sure how to debug the issue, I can login fine if I enter manually the username / password in the login page without using facebook to authenticate. Also, I haven’t change anything in the server (VPS) so I don’t believe there’s a problem with permissions.
Please let me know how can I debug the issue to find the problem or if this is a bug and reproduced?
Thank you,
Best RegardsMay 12, 2019 at 6:09 pm #4049Additional info:
Clear all sessions
[17:47][root@crsjowebs01 public]# wp user list –field=ID | xargs -n 1 wp user session destroy –all –allow-root
PHP Notice: Constant WP_CACHE_KEY_SALT already defined in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1169) : eval()’d code on line 84
PHP Notice: Constant WP_CACHE_KEY_SALT already defined in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1169) : eval()’d code on line 84
Success: Destroyed all sessions.
PHP Notice: Constant WP_CACHE_KEY_SALT already defined in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1169) : eval()’d code on line 84
Success: Destroyed all sessions.
PHP Notice: Constant WP_CACHE_KEY_SALT already defined in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1169) : eval()’d code on line 84
Success: Destroyed all sessions.[17:48][root@crsjowebs01 public]# wp user session list fernandobrenescliente
PHP Notice: Constant WP_CACHE_KEY_SALT already defined in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1169) : eval()’d code on line 84
+——-+————+—————–+—-+—-+
| token | login_time | expiration_time | ip | ua |
+——-+————+—————–+—-+—-+
+——-+————+—————–+—-+—-+Login using Facebook social login
[17:49][root@crsjowebs01 public]# wp user session list fernandobrenescliente
PHP Notice: Constant WP_CACHE_KEY_SALT already defined in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1169) : eval()’d code on line 84
+——-+————+—————–+—-+—-+
| token | login_time | expiration_time | ip | ua |
+——-+————+—————–+—-+—-+
+——-+————+—————–+—-+—-+Nothing
Try to login again this time filling up manually email and password
[17:50][root@crsjowebs01 public]# wp user session list fernandobrenescliente
PHP Notice: Constant WP_CACHE_KEY_SALT already defined in phar:///usr/bin/wp/vendor/wp-cli/wp-cli/php/WP_CLI/Runner.php(1169) : eval()’d code on line 84
+———————————————–+———————+———————+————-+—————————————————+
| token | login_time | expiration_time | ip | ua |
+———————————————–+———————+———————+————-+—————————————————+
| d19f207a55164da3d05b9513a3aef05d661e0bccd8967 | 2019-05-12 18:02:23 | 2019-05-14 18:02:23 | 186.4.12.90 | Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWe |
| eaf326436dd9f4e60c7 | | | | bKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729. |
| | | | | 131 Safari/537.36 |
+———————————————–+———————+———————+————-+—————————————————+My ngixn vhost has the following include:
include /usr/local/nginx/conf/wpincludes/zonamotriz.com/wpsecure_zonamotriz.com.conf;
And the file has many entries and I have whitelisted uwp_social
# Whitelist WPUsers Social Login
location ~* /wp-content/plugins/uwp_social {
include /usr/local/nginx/conf/php.conf;
}All of this hasn’t change and it was working so I’m not sure what the problem can be and how to debug it.
Please let me know.
Thank you,
Best RegardsMay 12, 2019 at 10:28 pm #4051This reply has been marked as private.May 13, 2019 at 3:15 pm #4072This reply has been marked as private.May 14, 2019 at 7:19 am #4079Hi,
I have tried social login with facebook and I was able to login successfully. So I am not sure which issue you are talking about? I can log in with facebook and also able to access my profile page from the https://zonamotriz.com/profile/. Can you please let us know the steps to regenerate the issue and if possible provide us the video showing the issue so that we can regenerate the issue and fix it.
Regards,
PatrikMay 14, 2019 at 4:25 pm #4087This reply has been marked as private.May 14, 2019 at 5:45 pm #4088Hi,
Just wanted to let you know that I found a way to fix the issue. For some reason the problem was in the Active Apps and Websites in Facebook for this specific user.
I logged in into Facebook –> Settings –> Apps and Websites –> Remove the Website
Then I logged again and authorized the Web and now everything is working fine.
Once again thank you for your help and this great app.
Best RegardsMay 14, 2019 at 7:31 pm #4089Hi Patrick,
I have again the same issue. I believe the issue happens if I perform the following actions:
1. Register into the Web site
2. Then remove the user from WordPress
3. Try again to login with the same user using any Social Account
4. Try to register again with the same user using any Social AccountEven if I remove from the Social Account the access to the Web Page is no longer possible to use the Social Account to register or login into the Web Site.
Thank you,
Best RegardsMay 15, 2019 at 7:14 am #4096Hi,
If you are login for the first time using Facebook login then it should ask you for permission from Facebook to allow access to data. Which is not showing in the video. So I think there is still something saved in cookies and it directly redirects to home page after login. Can you try clearing all cookies data? You can do that by inspect element->Application->Cookies and delete all and then try again.
Regards,
PatrikMay 15, 2019 at 3:58 pm #4109Hi Patrik,
Correct, permissions were not asked because the user was deleted from WordPress so Web Application was already authorized in Facebook that’s the reason it didn’t ask for permission.
But you are right somehow, there was a problem with cookies even though I was clearing cookies and using incognito mode. I was able to access again today so the issue is fixed.
Thank you once again for your help!
Best RegardsMay 16, 2019 at 4:55 am #4115You are welcome! Marking an issue as resolved! Please open a new ticket if you have any issues.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket