PEAK XOOPS - Xoops 2.2.1 and xhld 2.99/3.0 feeds fail in englishin japanese

Xoops 2.2.1 and xhld 2.99/3.0 feeds fail

  • You cannot open a new topic into this forum
  • Guests cannot post into this forum
Previous post - Next post | Parent - Children.1 .2 | Posted on 2005/8/11 14:40
markpr  企霹始   Posts: 4
Hi,

I tried xhld 3.0 first and then downgraded to 2.99 but both versions have the same problem on Xoops 2.2.1

The error is:

Failed saving data to database for headline yahoo tech
Could not open file: http://rss.news.yahoo.com/rss/tech
Snoopy status=connection failed (2)

I can't generate any more information from PHP or Server logs that can help track this down. I see that someone posted a similar problem they were having with 2.98.

Is this a module compatability problem with Xoops 2.2.1? I can retrieve the XML document directly from the command line without a problem...

thanks

Mark
Votes:8 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/11 15:04
markpr  企霹始   Posts: 4
I found some older posts that dealt with this problem. It looks like I need to recompile PHP with support for sockets.

--enable-sockets Enable sockets support

I'll post here again with my results tomorrow...

Mark

Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 .2 .3 | Posted on 2005/8/12 13:56
markpr  企霹始   Posts: 4
So, I still have the same problem. All further testingwas with xhld 2.99 and tried the following:

recompiled php with --enable-sockets
turned off safe-mode in php.ini
checked settings with phpinfo.php
tested clean installation on Xoops 2.0.13

Is there anything more I should be doing? I would really like to get this module to work...(tried feeds from yahoo, reuters etc).

Mark
Votes:7 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/15 16:54
GIJOE  黎扦烦菱   Posts: 4110
hmmm.

I'm sorry that I can't see the true meaning of the message "connection failed (2)".
Do you check the server running XOOPS is inside firewall or not?

Votes:6 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/17 11:44
utahuser  企霹始   Posts: 5
By the way, I have the exact same problem. 2.2.1, and 3.0. Same error message. I cannot access feed whether my xoops is inside or outside the firewall. Any help>?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/20 17:08
GIJOE  黎扦烦菱   Posts: 4110
I can answer just the same for previous questions.

- login into the machine running XOOPS (if it is unix, try ssh or telnet)
- get the RSS/ATOM (if it is unix, wget or w3m is useful)

At least, I've already checked that xhld 3.0 works perfectly even with XOOPS 2.2.x

Votes:15 Average:4.67
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/23 3:33
markpr  企霹始   Posts: 4
Hi,

thanks for getting back to me.

I can login to the system runing xoops and retreive the rss feed from the command line without a problem. The error that is being reported "snoop... connection(2)" is actually coming back from either Xoops or Xhld when I try and configure any RSS feed.

Any ideas jhow I can debug this problem? I see that another user is reporting the same type of problem and my next step is to try Xoops 2.2.2 (but I don't think this will make much difference...)

thanks

Mark
Votes:8 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2005/8/24 5:57
GIJOE  黎扦烦菱   Posts: 4110
It sounds an issue of your network.
I can't help it, sorry.
Votes:7 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2005/8/31 5:12
utahuser  企霹始   Posts: 5
I am having the same problem - no RSS feeds at all. Failed saving data to database for headline google
Could not open file: http://news.google.com/?output=rss
Snoopy status=connection failed (13)

This is with 2.2.2, and the latest XHLD. I am at a loss!

Here is the php debug output:

Warning [PHP]: fsockopen() [function.fsockopen]: unable to connect to news.google.com:80 (Permission denied) in file class/snoopy/Snoopy.class.php line 1126
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/8/31 5:12
utahuser  企霹始   Posts: 5
I am having the same problem - no RSS feeds at all. Failed saving data to database for headline google
Could not open file: http://news.google.com/?output=rss
Snoopy status=connection failed (13)

This is with 2.2.2, and the latest XHLD. I am at a loss!

Here is the php debug output:

Warning [PHP]: fsockopen() [function.fsockopen]: unable to connect to news.google.com:80 (Permission denied) in file class/snoopy/Snoopy.class.php line 1126
Votes:0 Average:0.00
Previous post - Next post | Parent - No child | Posted on 2005/8/31 6:05
utahuser  企霹始   Posts: 5
I should also mention that I ran phpinfo to get some server info.
First, I am running php 5.04
I did a search for fsockopen() and it is not found anywhere in the phpinfo.
However, I did find a section call sockets, and sockets are enabled.

I also found: allow_url_fopen ON
Apache 2.054
Fedora core 4
Mysql client version 4.1.12

Any ideas?
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 .2 | Posted on 2005/8/31 12:30
utahuser  企霹始   Posts: 5
Been doing more researching. I notice in PHP 5, fsockopen may have been replaced:


From the changelog PHP 5:
Improved the streams support: (Wez, Sara, Ilia)
Improved performance of readfile(), fpassthru() and some internal streams operations under Win32.
stream_socket_client() - similar to fsockopen(), but more powerful.

I believe this may be the problem. GIJOE, any chance we could get you to support PHP5 and stream_socket_client? For the life of me I can't figure out how to uninstall PHP5.04 in Fedora 4. It has so many reliant packages that I am afraid I will truly break things by removing it and installing 4.x.

Anyway, I hope this helps shed some light on why this module has been failing on systems using PHP5.

Steve
Votes:9 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2005/9/1 2:12
melcahoon  企霹始   Posts: 2
OK, I successfully uninstalled PHP5 and downgraded to PHP4 - and XHLD works perfectly now.

Steve
Votes:9 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2005/9/1 12:39
GIJOE  黎扦烦菱   Posts: 4110
Thank you for good information.

When I use PHP5 and X2.2, xhld work perfectly.

It might be a problem of some environments or configurations.

I will research stream_socket_client() later.
Votes:6 Average:0.00
Previous post - Next post | Parent - Children.1 .2 | Posted on 2005/11/30 0:29
josemoya  企霹始   Posts: 1
Hello!
Downgrading to PHP4 or recompiling PHP is a solution affordable only by auto-hosted people.

I'm in a hosted environment, and, when I've found this problem, I've looked into the original xoopsheadline module to see how it does work. So I've used the xoopsheadline fetching routine instead of these of xhld.

I can send you a diff file if you want to know what I'm talking about.

BTW, I suggest you to put an option, like this one:
fetching method:
a) snoopy (recommended)
b) fopen (use in case of error)

So you can choose fetching method in xhld, the same way you can choose mailing method (phpmail, smtp, etc) in "mail config"

You can add a "(snoopy only)" text in snoopy-only options (proxy, etc), of course.
Votes:6 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2005/12/30 7:37
ScottB  企霹始   Posts: 3
I have run into a similiar problem. I am running Xoops 2.3.3 and xhld 3.01 and run into the problem with my managed hosted environment. Can you summarize your xoopsheadline fetching hack that makes xhld work when snoopy fails.
Votes:7 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/5/2 13:01
GIJOE  黎扦烦菱   Posts: 4110
xhld-3.03 has fopen() mode.
(update the module after overwriting them)

I've also tried stream_socket_client() with PHP5, it does not work well by some unknown reasons.

If I can, I'll try stream_socket_client() again.
Votes:7 Average:10.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/5/25 14:23
pixel  惧霹始   Posts: 31
I've been getting the Snoopy status=connection failed (13) error for the past two years. I keep hoping upgrading will fix the problem but it persists. I'm running xoops 2.2.3 and just upgarde xhld to v 3.03. I'm running in a shared hosting enviornment. The Reuters feeds are the only that work and give me a glimmer of hope that other feeds will work some day.
http://www.microsite.reuters.com/rss/businessNews
Everything else gives me the following error when I try to configure the feed.
------------
Failed saving data to database for headline yahoo-top stories
Could not open file: http://rss.news.yahoo.com/rss/topstories
Snoopy status=connection failed (13)
------------
On another note: GIJOE Thank you very much for creating rock solid modules. I use most of them and am very please. I appreciate all the time and hard work.
Best,
Gary
Votes:8 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/5/26 4:55
GIJOE  黎扦烦菱   Posts: 4110
Why not try the mode of url fopen() ?
Go to preferences of xhld.
Votes:0 Average:0.00
Previous post - Next post | Parent - Children.1 | Posted on 2006/5/26 11:38
pixel  惧霹始   Posts: 31
Changed to fopen() and got the following error


Failed saving data to database for headline test
Could not open file: http://rss.news.yahoo.com/rss/topstories
Votes:7 Average:10.00
Previous post - Next post | Parent - No child | Posted on 2006/5/27 6:12
GIJOE  黎扦烦菱   Posts: 4110
Check allow_url_fopen.

If it is off and fsockopen() is prohibited, you cannot get any feeds into your server.
Votes:0 Average:0.00

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!