miled / wordpress-social-login

WordPress Social Login
http://miled.github.io/wordpress-social-login/
MIT License
399 stars 235 forks source link

php errors and redirects not working anymore #335

Closed lucianahanan closed 3 years ago

lucianahanan commented 4 years ago

I enabled apps on facebook and twitter, put the right stuff there on apps, the apps authenticates on facebook, and bugs for twitter.

For facebook login, I click fb icon on site, it opens the facebook popup, and stops on a blank page with error 'can't reach the page', at this url:

mydomain..../wp-login.php?action=wordpress_social_authenticate&mode=login&provider=Facebook&redirect_toprovider=true#=_

The error also varies. Sometimes it authenticates, but when come back to site, it goes to /wp-login.php on a blank page too.

I was investigating on php logs, and there are some errors coming from the plugin:

PHP Warning: Illegal string offset 'x_xss_protection' in ..../plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263

PHP Warning: Illegal string offset 'x_xss_protection' in /home/ipstudio/public_html/online/wp-content/plugins/wordpress-social-login/hybridauth/Hybrid/thirdparty/OAuth/OAuth1Client.php on line 263

lucianahanan commented 4 years ago

Testing on another browser and other facebook login, I get different behavior, it authenticates, but goes to a blank page on site/wp-login.php - with no php errors in the logs.

Weird is that sometimes, it authenticate on site, before getting stuck on the blank page. if I open another tab to the site home, it will display the facebook user is logged in.

And sometimes, it does not leave facebook popup, it goes to a blank page, stuck on

mysite…../wp-login.php?action=wordpress_social_authenticated&provider=Facebook&mode=login

with browser error: ERR_CONNECTION_CLOSED