Page 1 of 1

Error on PEAR PHP (RSS Aggregator Plugin)

Posted: Thu Sep 20, 2007 3:19 am
by vavai
Hi,

I use S9y v1.2 as my Planet and used RSS Aggregator plugin to do this. It seems to work very well with bulletproof themes (take a look here, but today I got an error :

Code: Select all

Notice: Too many redirects in /home/planet/public_html/bundled-libs/PEAR.php on line 848
Too many redirects
I've searching this forum to get the solution, and it seems that the problem occurred with the hosting provider (firewall blocked or another case).

Just an info, I've set the Cron jobs to update every 10 minute. Is it true that this kind of problem occurred because this con jobs setting ?

Vavai

Re: Error on PEAR PHP (RSS Aggregator Plugin)

Posted: Thu Sep 20, 2007 12:29 pm
by garvinhicking
Hi!

Where do you get this "Too many redirects" error exactly?

It can happen if the RSS feed you want to aggregate has too many HTTP header redirections, you'll need to enter a better URL for that feed.

Regards,
Garvin

Posted: Sun Sep 23, 2007 5:28 am
by vavai
Hi Garvin,
Where do you get this "Too many redirects" error exactly?
I got this error message after trying to running this plugin manually (call an url to run aggregator jobs, http://planet.kronologger.net/index.php ... aggregator)

It seems that it working properly right now.
It can happen if the RSS feed you want to aggregate has too many HTTP header redirections, you'll need to enter a better URL for that feed.
I got successful result if I used RSS 2.0 (I used Onyx [BSD] as RSS Parser). This parser cannot feed ATOM so I used a standard RSS 2.0.

If I choose MagpieRSS [GPL] as RSS Parser, All feed got successful but it didn't feed any picture.

You can tried to see the problem by calling this url : http://planet.kronologger.net/index.php ... aggregator

Best Regards,


Vavai

SOLVED (Error on PEAR PHP - RSS Aggregator Plugin)

Posted: Tue Sep 25, 2007 6:32 am
by vavai
Hi All,

Finally I got a nice solution to the problem with PEAR.php (both "Connection Time Out" and "Too many Redirects").

"Connection Time Out" problem raised while RSS Aggregator need a long time to reach the feed. The problem occurred in the hosting side, ie : slow down connection, dead connection or another thing with connection issue.

I used Feedburner (http://feeds.feedburner.com/) to act as a gateway and the problem gone away.

The "Connection time out" problem should be occured in another case if ISP provider has been protecting their hosting server with firewall and block port 80 .

To test if it's blocked by firewall or no, simply create a php file with a simple code :

Code: Select all

<?php
echo file_get_contents("http://www.google.com/");
?>
Upload the file and try to call it from our browser (Thanks to judebert for this testing script, http://board.s9y.org/viewtopic.php?t=70 ... google+com

"Too many Redirects" problem occurred with the validity of it's feeds. I used http://feedvalidator.org to find out how it comes and which feeds provided a validity issue. Finally, this problem solved by using standard feed with Feedburner, http://feeds.feedburner.com/

Thanks and Regards,


Vavai