Question

Strange "login with social media" connection issue.

Posted May 7, 2014 1.8k views
I've got a Word Press plugin that allows my users to login to the site with social media accounts like Facebook for example. To do this you have to create a facebook app for it to connect. I've done all this but my site sit's in a continual loading state without ever making the connection. You can see what I'm talking about here: http://mytographer.com/login/ To narrow this down to a server issue, I tried installing the exact same plugin/version on a site for both this site as well as another with a completely different host. The other one with the other hosting company is working as expected. For the site here on DO, you try to log in but it just gives a set of continual loading bars but it does not connect. Any ideas? Could it be something like memecache or varnish doing this?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

3 answers
Are you seeing any error messages in your logs? I noticed this in Chome's web console:


http://mytographer.com/wp-admin/admin-ajax.php 500 (Internal Server Error)


Try turning on Wordpress debugging to see if you can get some more error output:

https://codex.wordpress.org/WP_DEBUG
This is what I saw in my nginx error log,

http://pastebin.com/wUi3kxpr#
Here's the culprit:


2014/05/20 21:30:37 [error] 1037#0: *11685 FastCGI sent in stderr: "PHP message: PHP Fatal error: Uncaught exception 'Exception' with message 'Facebook needs the CURL PHP extension.' in /var/www/wp-content/plugins/edd-social-login/includes/social/libraries/facebook/base_facebook.php:19


You should be able to solve that by installing php5-curl:


sudo apt-get install php5-curl
Submit an Answer