Letractively / lightblog

Automatically exported from code.google.com/p/lightblog
Other
0 stars 0 forks source link

Friendly error when external connections are disabled #17

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version: 0.9.3 beta 1

Not a bug, a very minor suggestion. For security reasons, some (free) hosts may 
not support 
external connections (fsockopen, curl, etc.) which is needed for Dashboard 
LightBlog News. It might 
help to check whether the server has enabled them and if not, display a 
friendly error (r substitute 
the news with static links to news.

Original issue reported on code.google.com by higash...@gmail.com on 31 May 2010 at 6:32

GoogleCodeExporter commented 9 years ago

Original comment by soren121@outlook.com on 31 May 2010 at 8:04

GoogleCodeExporter commented 9 years ago

Original comment by soren121@outlook.com on 31 May 2010 at 8:06

GoogleCodeExporter commented 9 years ago

Original comment by soren121@outlook.com on 3 Jun 2010 at 2:25

GoogleCodeExporter commented 9 years ago
Fixed in SVN r484.

Original comment by soren121@outlook.com on 3 Jun 2010 at 2:48

GoogleCodeExporter commented 9 years ago
Just a note, the error shows up in r489, r484 okay.

Original comment by higash...@gmail.com on 6 Jun 2010 at 6:12

GoogleCodeExporter commented 9 years ago
It's actually fixed properly in r489, so if you see it, your server doesn't 
support 
cURL or fsockopen.

Original comment by soren121@outlook.com on 6 Jun 2010 at 6:14

GoogleCodeExporter commented 9 years ago
I meant the friendly error message works in r484, but in r489/r490 it goes back 
to showing raw php error.  

Original comment by higash...@gmail.com on 7 Jun 2010 at 6:16

GoogleCodeExporter commented 9 years ago
Now that's odd. Can you paste the error here?

Original comment by soren121@outlook.com on 7 Jun 2010 at 6:21

GoogleCodeExporter commented 9 years ago

Original comment by soren121@outlook.com on 7 Jun 2010 at 6:23

GoogleCodeExporter commented 9 years ago
Warning: fsockopen(): fsockopen() functionality if not on by default; please 
purchase this option by contacting zymic.com in 
/www/zxq.net/h/i/g/higashiki/htdocs/blog/Sources/FeedReader.php on line 203 
Warning: fwrite(): supplied argument is not a valid stream resource in 
/www/zxq.net/h/i/g/higashiki/htdocs/blog/Sources/FeedReader.php on line 206 
Warning: fwrite(): supplied argument is not a valid stream resource in 
/www/zxq.net/h/i/g/higashiki/htdocs/blog/Sources/FeedReader.php on line 207 
Warning: fwrite(): supplied argument is not a valid stream resource in 
/www/zxq.net/h/i/g/higashiki/htdocs/blog/Sources/FeedReader.php on line 208 
Warning: fwrite(): supplied argument is not a valid stream resource in 
/www/zxq.net/h/i/g/higashiki/htdocs/blog/Sources/FeedReader.php on line 209 
Warning: fgets(): supplied argument is not a valid stream resource in 
/www/zxq.net/h/i/g/higashiki/htdocs/blog/Sources/FeedReader.php on line 212

Original comment by higash...@gmail.com on 8 Jun 2010 at 12:07

GoogleCodeExporter commented 9 years ago
That's really odd, because it should be working. I don't see anything wrong 
with the code; I'll ask someone else to look at it.

Original comment by soren121@outlook.com on 8 Jun 2010 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by soren121@outlook.com on 9 Jun 2010 at 5:45

GoogleCodeExporter commented 9 years ago
Should be properly fixed in SVN r492. Thanks for letting me debug it on your 
server, higashiki. :)

Original comment by soren121@outlook.com on 10 Jun 2010 at 6:13