Make WordPress Core

Opened 17 years ago

Closed 16 years ago

#8495 closed defect (bug) (fixed)

Dashboard RSS errors not handled well

Reported by: dd32's profile DD32 Owned by: dd32's profile DD32
Milestone: 2.8 Priority: normal
Severity: normal Version: 2.7
Component: Feeds Keywords: has-patch
Focuses: Cc:

Description

The Dashboard RSS items do not handle errors very well.

For example, Upon an error occuring in fetching the Feed, The Feed URL will be set to 'Error: could not find an RSS or ATOM feed at that URL.' with no feedback to the UI that an error has occured (other than that its blank).

It appears that the main cause for the error in my case, was the magpie fetch time limit of 2 seconds being too slow for my connection, increasing it to 10 allows it to fetch the entire RSS feed, but that is hopefully only a issue on home-hosted installs.

dump of the widget_options:

  'dashboard_secondary' => 
    array
      'title' => string 'Other WordPress News' (length=20)
      'url' => string 'Error: could not find an RSS or ATOM feed at that URL.' (length=54)
      'link' => string '' (length=0)
      'items' => int 15
      'error' => string 'Error in RSS 0' (length=14)
      'show_summary' => int 1
      'show_author' => int 1
      'show_date' => int 1

Attachments (4)

8495.diff (855 bytes) - added by DD32 16 years ago.
8495.2.diff (922 bytes) - added by DD32 16 years ago.
8495.3.diff (944 bytes) - added by DD32 16 years ago.
Image1.png (37.4 KB) - added by DD32 16 years ago.

Download all attachments as: .zip

Change History (14)

#1 @strider72
16 years ago

This really should be fixed. The big problem is that if there is an error *once*, the URL for the feed is overwritten with the error message. The error should *display*, but certainly not overwrite the actual feed URL setting. The way it is, a one-time error becomes permanent.

#2 @strider72
16 years ago

There are two distinct problems here:

1) The RSS feeds aren't updating properly. Possibly a timeout issue.

2) When there *is* a problem, the actual URL setting is overwritten with an error message, after which the feed will *never* work unless the URL is manually reset.

#3 @Denis-de-Bernardy
16 years ago

the same annoyance applies to feed widgets. Personally, I ended up adding a define to lengthen the timeout, but it's nonetheless annoying. At the very least, the url shouldn't get overwritten.

#4 @janeforshort
16 years ago

  • Component changed from UI to Feeds

The main issue here is feed functionality, not UI, so I'm changing the component to feeds and will start a separate ticket about error messaging under UI.

#5 @ryan
16 years ago

[10697] might help here.

#6 @DD32
16 years ago

  • Owner set to DD32
  • Status changed from new to assigned

The move to SimplePie + [10697] will probably have made a difference, I'll have to test this out again later and see if anything needs doing to fix this ticket

#7 @DD32
16 years ago

I've got a patch ready to go after commital of 9273.2.diff on #9273

@DD32
16 years ago

@DD32
16 years ago

@DD32
16 years ago

@DD32
16 years ago

#8 @DD32
16 years ago

  • Keywords hsa-patch added

Ok, There we go.

I couldnt work out how to get the RSS widget to auto-open when JS was in use.. So a message is displayed at the top of the page and in the widget itself, or just in the widget (as it should be open already) when JS is not in use.

#9 @DD32
16 years ago

  • Keywords has-patch added; hsa-patch removed

#10 @azaozz
16 years ago

  • Resolution set to fixed
  • Status changed from assigned to closed

(In [10742]) Better error handling and display in the RSS widget, props DD32, fixes #8495

Note: See TracTickets for help on using tickets.