RSS-Bridge / rss-bridge

The RSS feed for websites missing it
https://rss-bridge.org/bridge01/
The Unlicense
7.31k stars 1.03k forks source link

TwitterBridge* will not work with PHP 5.6 #266

Closed tifredfr closed 8 years ago

tifredfr commented 8 years ago

Hi,

TwitterBridge***.php will not work with PHP 5.6 - Tested on OVH

error : username not found

Thx

Frenzie commented 8 years ago

I can't confirm. My main use is with PHP 5.6 on Debian Jessie and it also works fine with PHP 7 on Debian Stretch. The problem must be something with this OVH (a host?). To get better error messages, create a file called DEBUG in the root. NB That'll disable the cache.

tifredfr commented 8 years ago

Hi,

TwitterBridge DEBUG:
<br />
<b>Warning</b>:  file_get_contents(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in <b>/home/lietart/www/rss/lib/Bridge.php</b> on line <b>369</b><br />
<br />
<b>Warning</b>:  file_get_contents(): Failed to enable crypto in <b>/home/lietart/www/rss/lib/Bridge.php</b> on line <b>369</b><br />
<br />
<b>Warning</b>:  file_get_contents(http://twitter.com/thelinuxfr): failed to open stream: operation failed in <b>/home/lietart/www/rss/lib/Bridge.php</b> on line <b>369</b><br />
Requested username can't be found.

ovhconfig :

app.engine=php
app.engine.version=7.0
http.firewall=none
environment=production
container.image=stable
mitsukarenai commented 8 years ago

Seems like an OpenSSL incompatibility or obsolete crypto suite. If I'm correct it's not a rss-bridge problem

teromene commented 8 years ago

In your configuration, is allow_url_fopen set to enabled ?

tifredfr commented 8 years ago

does not work with the stable environment (openssl 1.0.1k (TLS1.2 compatible)) :

app.engine=php
app.engine.version=7.0
http.firewall=none
environment=production
container.image=stable

works with environmental legacy (openssl 0.9.8o) :

app.engine=php
app.engine.version=7.0
http.firewall=none
environment=production
container.image=legacy

More info : https://www.ovh.com/fr/hosting/guides/g2149.modifier_lenvironnement_dexecution_de_mon_hebergement_web

mitsukarenai commented 8 years ago

Any update on this issue ? Can be reproduced ? Issue can be closed ?

mitsukarenai commented 8 years ago

Well, gonna close ^^