KB Plugins

The best Wordpress plugins are free

Print this post

An error has occured; the feed is probably down.

For some time I’ve had people asking me why they get that “an error has occurred” message so frequently with KB Advanced RSS. I have figured out that it is definitely not an issue with my widget, since people get the same error when I tell them to try the default RSS widget. But while browsing the WordPress support forums recently, I came across a thread that may explain why so many people get this error: Their hosts are restricting the site from requesting the feed.


I’ve updated the FAQ to reflect this new information. Here’s an excerpt:

“An error has occured; the feed is probably down.”

This widget relies on Wordpress’s feed parsing abilities (look in wordpress/includes/rss.php). Wordpress grabs the requested feed then passes it to this widget for formatting. If you are seeing this error, it means one of three things:

  1. The feed really is down. Wait a while and try again.
  2. Your host is blocking Wordpress from fetching the feed (very likely). Read more here .
  3. Wordpress’s feed parser isn’t working. Try updating to the most recent version of Wordpress. If that doesn’t work, file a Wordpress bug report in Trac.

In any case, you may want to first try using Wordpress’s built-in RSS widget. If neither it nor my widget can display the feed, then you know for certain that it’s one of those three reasons causing the failure. (You’ll probably get the same error there, since the KB Advanced RSS widget uses the exact same error-checking method.)

Update: See also the suggestions in the comments below. (The first comment below is particularly useful.)

27 comments »

1
Kyle exclaims
at 12:39 pm on August 22, 2007 #

I found a way to fix this error for me.. it seems the magpierss file they are using(rss.php) is rather dated(.51). If you download the magpierss version .71 and rename rss_fetch.inc to rss.php and upload it into your wp-includes directory (with all the other files in the package and the extlib directory) it seems to work for all rss feeds. I have not tested extensively and I am not responsible if this blows something up for you.. but it worked for me.

Edited by Adam: When implementing Kyle’s suggestion, see also comment #23 (below, by Lindsay).

2
Thus saith Adam
at 4:57 pm on August 22, 2007 #

Thanks for figuring that out. I had wondered if something like this might be the case, since I’ve used magpie in other applications without any difficulties.

3
Carolyn remarks
at 8:56 am on August 28, 2007 #

I’m not getting that particular error, but my feeds are not updating. I double checked the feed (which is a Feedburner feed) and that it is active and updating elsewhere. Is there a setting that I should change to make it work? Do I need to update the plugin?

I have the 1.6.1 version of the plugin installed on WordPress version 2.2.2

Thanks for the help!
Carolyn

4
Thus saith Adam
at 9:00 am on August 28, 2007 #

Hi Carolyn,

The feeds are cached for one hour. If they still don’t update after more than an hour, check the FAQ.

5
Carolyn says
at 10:14 am on August 28, 2007 #

I went to edit the file and I didn’t see the define('KBRSS_FORCECACHE', false); in there at all.

Would I add it to the below section of code at the top of the file?

// SETTINGS
define('KBRSS_HOWMANY', 20);
define('KBRSS_MAXITEMS', 10);

…and change the “false” to “true” to fix the caching problem?

Thanks in advance.

6
Thus saith Adam
at 10:27 am on August 28, 2007 #

Sorry, I didn’t notice what version you said you were using. You’ll need to upgrade to the latest version of the plugin first. Adding that line without upgrading wouldn’t do anything.

7
Carolyn proclaims
at 11:08 am on August 28, 2007 #

Ok…great! Thanks again.

8
Ove proclaims
at 4:58 am on September 8, 2007 #

Thanx Kyle, it works :)

9
cfur says
at 7:49 pm on September 17, 2007 #

Comments in your main widget thread didn’t seem to be working.

I am trying to include images in feed of your super cool KB Advanced RSS widget. From your yahoo feed example, I’m using this
edited b/c it came out funky

should this be working?

10
cfur adds
at 8:01 pm on September 17, 2007 #

sigh - i’m using the img src=’^media:content=>url$’ in the format feed section… is there a different syntax that will work?

11
Thus saith Adam
at 1:57 pm on September 18, 2007 #

cfur:

It’s hard to say. In a few recent versions of WordPress, they’ve made some changes to how WP processes feeds, which would affect what you need to tell the widget. Some versions of WP will separate out any images in each feed item and put it in media:content=>url. Others will not.

The way to figure out what you need to enter is to use the ?kbrss= thing to look at how WP is processing the feed as explained in the FAQ.

12
Mike proclaims
at 10:25 am on October 19, 2007 #

Hey Adam - I’m having a little trouble with the plugin today. Everything was working great while I was pointing the plugin to the main rss feed of my wordpress site. But today I switched the feed to point at a particular category, eg., [link]

Now I am getting the “error has occured” message :-(

What could the problem be? I have tried different formats (eg., /category/mycategory/feed or /rss or /rss2 or whatever, but nothing works!!

Any thoughts?

THanks for your help.

Mike

13
Thus saith Adam
at 10:54 am on November 9, 2007 #

It would appear I forgot to reply to this post…

On the offchance you come by looking for a reply, here it is: No, I really don’t know. Like I said, this widget does not grab or parse the feed–it just controls how WP displays the feed that it has parsed on its own. If the suggestions in the post (and comments) above don’t help, then I don’t know what to say.

14
ovidiu proclaims
at 4:15 am on November 14, 2007 #

had the same problem on my wpmu install but downloading and replacing with the newest version helped me too :-)

15
Thus saith Adam
at 11:27 am on November 15, 2007 #

I think you’re referring to Kyle’s suggestion of getting the newest version of magpie, right? Thanks for the feedback. I wish the WP folks would keep WP’s version of magpie current…

16
at 5:22 pm on November 16, 2007 #

my host says they are not blocking topix.net. I am using WP231 at halfwaytoconcord.com and trying to suck down feed for feed://www.topix.net/rss/county/contra-costa-ca

I am using [moderated for length]. Is there some newer version or do I have to do that magpie thingy

[moderated for length].

17
Thus saith Adam
at 5:28 pm on November 16, 2007 #

My plugin does not grab the feed; WP’s built-in feed parser does that. Mine just displays the feed after WP parses it. So if your host is allowing the connection, then you may want to try the Magpie thing, yes.

But first, try replacing the “feed://” with “http://”. “feed://” is non-standard, and that might be the only problem. My version of WP can only process the feed you give if I make that change.

18
at 10:49 am on November 17, 2007 #

feed to http did it… d’oh thanks

19
cjessing proclaims
at 1:09 pm on January 4, 2008 #

Wohoo… sort of…

The Magpie thing fixed my problem loading this feed:

[link]

BUT… special danish characters (æøå ÆØÅ) are not showing correctly :-( See [link]

Using the .51 version of Magpie works just fine - with every other feed than the one described above. Can anyone help me out here?

Claus

20
cjessing contributes
at 1:29 pm on January 4, 2008 #

@myself: stupid me - set the UTF-8 in the Widget settings and everything is dandy - delete these comments at will ;-)

Claus

21
Thus saith Adam
at 1:45 pm on January 4, 2008 #

I’ll leave them for future visitors to find. Glad you got it working.

22
Scrmn opines
at 9:00 am on March 5, 2008 #

Your magie fix worked. Thanks Kyle!!!

23
Lindsay exclaims
at 8:17 am on March 28, 2008 #

Great suggestion by Kyle. I tried that, and it fixed the feed! But then it broke my dashboard. Turns out the latest version of magpierss (0.72) points to exlib/Snoopy.class.inc - and that conflicts with WP 2.5 (RC2), which has the same thing, but it’s in a different location and called class-snoopy.php instead.

So to make Kyle’s fix compatible with the latest version of WP, i had to edit the (upgraded) rss.php to point to the correct name/location of Snoopy.

24
ceti opines
at 3:00 am on April 12, 2008 #

This is actually a huge problem with a number of RSS Feeds. Maybe folks can put together a more detailed walk through for Kyle’s solution and Lindsay’s amendment?

25
ceti opines
at 3:35 am on April 12, 2008 #

Ok, got it. It’s pretty easy. Just to reiterate, for Wordpress 2.5:

0. Download the latest magpieRSS package from here: [link]

There’s a lot of files in this tarred and gzipped archive. You only need the four .inc files in the root directory.

1. Dump rss_utils.inc, rss_parse.inc, and rss_cache.inc into the wp-includes directory.

2. Near the beginning of rss_fetch.inc, change the call to Snoopy.class.inc to this:

require_once( MAGPIE_DIR . 'class-snoopy.php');

This will work as class-snoopy.php is in the wp-includes directory.

3. Rename rss_fetch.inc to rss.php and overwrite existing rss.php file in wp-includes.

That’s it. My misbehaving feed came up at long last.

26
Thus saith Adam
at 1:12 pm on April 12, 2008 #

Thanks, ceti.

27
gofree proclaims
at 6:45 am on May 17, 2008 #

The problem is I can see the feeds being fetched, but can’t edit the kbrss widget like I used to. After I edited and formated with some bullets and character limitation, there is no long an edit link at the widget anymore.
Here is the screenshot: [link]

Any suggestion of the fix is needed to my email.

Thanks in advance.

Leave a comment

Comment Guidelines
  • Yes, your comments will be visible to everybody. (Unless you use the private contact form.)
  • Allowed HTML: <a> <b> <blockquote> <cite> <code> <em> <i> <strong>
  • Code: Put code in `backticks` (above your "Tab" key) or it won't display well
  • Gravatars: To override the default image by your comment, use a gravatar
  • Links: If you include more than one link, your comment will go into the spam queue

Please read before commenting: Because my real job has me swamped at the moment, I am not supporting my plugins at this time. Sorry. This may last several weeks.

If you have a bug report, feature request, or other general feedback about a plugin, please leave a comment—but do not expect an immediate response. If you are requesting help, though, please check the plugin's documentation thoroughly rather than ask your question as a comment.

Thank you for your understanding.