wp-rss2.php broken after localization
-
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: https://blogs.law.harvard.edu/tech/rss
example: https://bildblog.de/wp-rss2.phpseams to be a 1.5 bug – worked fine in previous version.
probably affects all localized installations.
-
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/0testblogSome 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.phpWorking atom feed for the same blog:
https://www.eirikso.com/0testblog/wp-atom.phpAnother 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…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).
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: NotFoundAdd 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 FoundAdding 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.phpI 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!
the title should not contain html entities.
a “??” works fine for me
ø
wont workhere ist a list of unicodes, they should work instead:
https://unicode.e-workers.de/unicode.phpa <![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.
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.phpIt now reads fine in the browser (thanks to lucero), but it is still refused in NewsGator, SharpReader and RSS Bandit… etc.
Any suggestions?
try this:
https://solstue.eirikso.com/mat/index.php?feed=rss2
should work according to feedvilidator.org
https://feedvalidator.org/check.cgi?url=https://solstue.eirikso.com/mat/index.php?feed=rss2Well, 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.phpAny 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.
try : https://www.eirikso.com/index.php?feed=rss2&withcomments=1
and https://www.eirikso.com/index.php?feed=rss2&withcomments=1&p=45 ??look: https://mosquito.www.ads-software.com/view.php?id=915
will hopefully change in 1.5.1 release
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
- The topic ‘wp-rss2.php broken after localization’ is closed to new replies.