wp-rss2.php broken after localization (19 posts)

  1. lucero
    Posted 11 years ago #

    hi there seams a localization problem to the wp-rss2.php after setting the german.mo file, the <pubDate> as <item>-Element isnt formated correct.

    specs: http://blogs.law.harvard.edu/tech/rss
    example: http://bildblog.de/wp-rss2.php

    seams to be a 1.5 bug - worked fine in previous version.
    probably affects all localized installations.

  2. eirikso
    Posted 11 years ago #

    I also have some serious trouble with my 1.5 installation and RSS-feeds. Tere are two major problems:

    The feeds read OK in a browser, but the only feed reader that will accept my RSS-feeds is Mozilla Thunderbird. I try to add my feeds to RSS Bandit, SharpReader and NewsGator. They all say that the feed does not exist.

    If I add a post with special norwegian characters in the subject of the post the feed gets broken. It shows this error in a browser:
    XML Parsing Error: undefined entity
    Location: http://www.eirikso.com/0testblog/wp-rss2.php
    Line Number 18, Column 21: <title>Tittel med ø</title>

    This will actually crash Mozilla Thunderbird.

    In other words, RSS is completely useless in WordPress 1.5

    I am currently converting from MovableType, but if WordPress 1.5 can not give me RSS-feeds I have to go back to MovableType again...

    Any suggestions?

    Here are two of my blogs:

  3. eirikso
    Posted 11 years ago #

    Some additional info:

    1. The Atom-feed for my testblog actually works in RSS-Bandit, but is not possible to add in NewsGator

    2. The Atom-feed works even after the norwegian characters in the subject

    Check this feed:
    RSS-Feed that is broken because of a norwegian character:

    Working atom feed for the same blog:

    Another example:
    The RSS-feed for the MovableType-version of one of my blogs:
    ...works in all readers I have tried.

    The RSS-feed for the WordPress copy of the same blog:
    ...is completely broken...

  4. lucero
    Posted 11 years ago #

    due the update of more and more wordpress blogs to 1.5, many rss2 feeds are broken - i thing this bug should marked as "urgent" ;)

    all 1. 5 blogs with localization are affected!

    is there bugtracking system for wordpress?

  5. Ryan Boren
    WordPress Dev
    Posted 11 years ago #

  6. eirikso
    Posted 11 years ago #

    There are two problems here. One concerning localization. The other concerning the fact that the RSS-feed (regardless of localization) is not accepted in a large number of feed readers!

    For the blogs I have mentioned before in this thread, I have not done any localization of WordPress! But, I have content in my blogs that contain norwegian characters.

    So, basically all my installations of WordPress is practically without RSS-feeds. Any suggestions? I refuse to believe that everybody using WordPress have RSS-feeds that does not validate. Something has to be wrong with my installation (in addition to the fact that WordPress 1.5 has a major problem with localization).


  7. eirikso
    Posted 11 years ago #

    I have done some more tests.

    I cleaned my testblog completely for all special characters and did some tests:

    Read the feed in Firebird:

    Add the feed in RSS Bandit:
    Web Failure
    Refresh feed '\Testblogg' failed with error: Unexpected HTTP httpResponse: NotFound

    Add the feed in NewsGator:
    Error: subscription could not be added. Please check the URL and try again.

    Add the feed in Sharpreader:
    Error reading URL: The remote server returned an error: (404) Not Found.

    Testing the feed in Feedvalidator.org:
    Server returned HTTP Error 404: Not Found

    Adding the feed in Mozilla Tunderbird:
    Works fine!

    ....then I add one post with one Norwegian character in the subject:

    It stops working in Thunderbird and will not read in a browser.

    So, the RSS-feed is actually quite useless in any cases. And, completely useless if you have a special character in the subject of a feed.

    I have now added a norwegian character to one of the posts in this testblog, so right now it does not read at all...

    This is the feed:

    I have not done any localization of WordPress, and these are the feeds of my other blogs:

    ...does not work very well...

    Suggestions are welcome!

  8. lucero
    Posted 11 years ago #

    the title should not contain html entities.

    a "ø" works fine for me
    &oslash; wont work

    here ist a list of unicodes, they should work instead:

    a <![CDATA[<?php the_title_rss() ?>]]> in wp-rss2.php should fix it, but i think its unfunctional cause a reader will show the plain html entity instead.

  9. lucero
    Posted 11 years ago #


    echo utf8_encode(html_entity_decode($title));

    instead of echo $title;

    in wp-includes/feed-functions.php line 12

    will fix this problem.

  10. eirikso
    Posted 11 years ago #

    Thank you very much! That fixed the problem with the completely broken feed. I know that this might not be the correct use of norwegian characters, but after a transfer from MovableType, and after posting to the blog through mail, these things happen to the norwegian characters...

    Your fix did the trick!

    However, the most serius problem with my feeds is the fact that Mozilla Thunderbird is the only reader that will accept them.

    Try this one:

    It now reads fine in the browser (thanks to lucero), but it is still refused in NewsGator, SharpReader and RSS Bandit... etc.

    Any suggestions?

  11. lucero
    Posted 11 years ago #

  12. eirikso
    Posted 11 years ago #

    Well, lucero has just made one person up there in cold and dark Norway very happy!

    This works perfectly well, in NewsGator, in RSS-Bandit...!

    Thank you very much.

    (...so why is the default link in the default theme when you install WP a link to wp-rss2.php, if that cause trouble?)

  13. eirikso
    Posted 11 years ago #

    Well, I have to try again:

    The links to my comment-rss feeds are just as bad when it comes to validation:

    Any suggestions here?

    And a last one:
    Of course I want to change the links to the feeds according to luceros example. I can see that my template file gets the feed url from template tags:


    I do not want to hard code the change in the theme. But, I can not find a place where I can change the tag itself so it will change all places where this tag is read.

  14. lucero
    Posted 11 years ago #

  15. eirikso
    Posted 11 years ago #

    Well, what should I say? This works like a charm. Thank you again!

    As far as I can understand, right now I need to do some hard coding to fix the problem in my templates.

    ...looking forward to 1.5.1 and again: huge thanks to lucero for all the help.

  16. eirikso
    Posted 11 years ago #

    For anyone with the same problems, I have tried to sum it all up here with instructions on how I have changed my feed links to the ones lucero has suggested:

  17. eirikso
    Posted 11 years ago #

    Now, this is beginning to drive me nuts!

    The comments have stopped showing up in the RSS-feed. In my blog:

    I follow comments with this feed:

    For some strange kind of reason, any comments posted to post number 46 and up does not show up in the RSS-feed. They are in the blog and they are in the database, but not in the RSS-feed.

    All comments done on post number 45 and down show up fine!

    I have the same problem with my other blogs. Comments on new posts does not show up in the feed. Comments on old posts show up.

    Starting to get slightly frustrated here... Just when I thought everything worked fine!

    Any suggestions?

  18. eirikso
    Posted 11 years ago #

    And then: after a couple of hours... the comments magically appear! I have no idea why they stopped, but they are back.

    In other words: problem solved.

  19. wereldkeuken
    Posted 11 years ago #

    I made a filter rssfix.php which solves the problem and works fine for me (don't know if this is 100% correct, I'm not a WP-expert):


    Plugin Name: rssfix
    Plugin URI: http://blog.wereldkeuken.be/
    Description: This plugin fixes the broken RSS-feed
    Author URI: http://blog.wereldkeuken.be/
    Version: 0.1

    add_filter("comment_author_rss", "htmlentities");
    add_filter("comment_text_rss", "htmlentities");


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.