Viewing 15 replies - 1 through 15 (of 18 total)
  • I also have some serious trouble with my 1.5 installation and RSS-feeds. Tere are two major problems:

    1.
    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.

    2.
    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: https://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:
    https://www.eirikso.com/
    https://www.eirikso.com/0testblog

    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:
    https://www.eirikso.com/0testblog/wp-rss2.php

    Working atom feed for the same blog:
    https://www.eirikso.com/0testblog/wp-atom.php

    Another example:
    The RSS-feed for the MovableType-version of one of my blogs:
    https://www.solstue.com/mat/index.xml
    …works in all readers I have tried.

    The RSS-feed for the WordPress copy of the same blog:
    https://solstue.eirikso.com/mat/wp-rss2.php
    …is completely broken…

    Thread Starter lucero

    (@lucero)

    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?

    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).

    https://www.eirikso.com
    https://www.eirikso.com/0testblog

    I have done some more tests.

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

    Results:
    Read the feed in Firebird:
    OK!

    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:
    https://www.eirikso.com/0testblog/wp-rss2.php

    I have not done any localization of WordPress, and these are the feeds of my other blogs:
    https://www.eirikso.com/wp-rss2.php
    https://solstue.eirikso.com/mat/wp-rss2.php

    …does not work very well…

    Suggestions are welcome!

    Thread Starter lucero

    (@lucero)

    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:
    https://unicode.e-workers.de/unicode.php

    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.

    Thread Starter lucero

    (@lucero)

    addition

    echo utf8_encode(html_entity_decode($title));

    instead of echo $title;

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

    will fix this problem.

    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:
    https://solstue.eirikso.com/mat/wp-rss2.php

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

    Any suggestions?

    Thread Starter lucero

    (@lucero)

    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?)

    Well, I have to try again:

    The links to my comment-rss feeds are just as bad when it comes to validation:
    https://www.eirikso.com/wp-commentsrss2.php?p=45
    or
    https://www.eirikso.com/wp-commentsrss2.php

    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:

    bloginfo(‘rss2_url’)
    bloginfo(‘comments_rss2_url’)

    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.

    Thread Starter lucero

    (@lucero)

    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.

    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:
    https://www.eirikso.com/?p=47

Viewing 15 replies - 1 through 15 (of 18 total)
  • The topic ‘wp-rss2.php broken after localization’ is closed to new replies.