dcramer / wp-lifestream

Lifestreaming plugin for Wordpress
http://forums.lifestrm.com/index.php
122 stars 31 forks source link

Github - fsockopen error #79

Open JoakimHellstrom opened 13 years ago

JoakimHellstrom commented 13 years ago

When I try to add the github stream to Lifestream i get (fsockopen error: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP?)

Any idea what I should do to fix this?

kilbot commented 12 years ago

I've run into this problem before with other plugins. The problem is actually due to the included WordPress functions that the plugin uses, in this case SimplePie.

The problem is described here: http://unitstep.net/blog/2009/05/05/using-curl-in-php-to-access-https-ssltls-protected-sites/

So, to make this work I believe we would need to get into the SimplePie Class (/wp-includs/class-simplepie.php). I don't think WP provides hooks for this .. but I might be wrong. Perhaps it's possible include our own version of SimplePie with WP-Lifestream and use that instead? I'm not sure.

But in the meantime if you are willing to hack /wp-includs/class-simplepie.php you can add: curl_setopt($fp, CURLOPT_SSL_VERIFYPEER, false); just above line 7688.

Also note that to get WP Lifestream to work properly I had to add a Generic Feed with url https://github.com/{USERNAME}.atom

Hope that helps.

gossi commented 12 years ago

Thanks, that works.

gossi commented 11 years ago

Since Wordpress 3.5 it is /wp-includes/SimplePie/File.php line 102.

canadaka commented 11 years ago

I cannot get github extension to work. The feed url i'm using is https://github.com/canadaka.atom When I try to refresh the feed all i get is the "There was an error refreshing the selected feed:" no error is logged in lifestream or the php error log.

I have updated PHP cacert.pem on my server and I also tried adding the curl command mentioned above.