Error on PEAR PHP (RSS Aggregator Plugin)

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

Error on PEAR PHP (RSS Aggregator Plugin)

Post 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
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Error on PEAR PHP (RSS Aggregator Plugin)

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

Post 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
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
vavai
Regular
Posts: 37
Joined: Thu Mar 01, 2007 12:43 am
Location: Bekasi-West Java-Indonesia
Contact:

SOLVED (Error on PEAR PHP - RSS Aggregator Plugin)

Post 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
/* Muhammad Rivai Andargini */
/* Migrasi Windows-Linux : http://www.vavai.com/index.php */
/* Blog Vavai : http://www.vavai.com/blog/index.php */
/* Bridge Blogging : http://www.vavai.net */
Post Reply