[Resolved] RSS Feed Validation Problem in 2.2
I’m having a problem in my Feed, suddenly it isn’t Valid. Please advise me how to fix it, where to look for the source of this error?
Sorry – This feed does not validate.
line 1, column 1: XML parsing error: <unknown>:1:1: xml declaration not at start of external entity [help] <?xml version="1.0" encoding="UTF-8"?> ^
In addition, this feed has an issue that may cause problems for some users. Feeds should not be served with the “text/html” media type
I looked in wp-includes/feed-rss2.php and found the code that WP uses to make my feed starts with this, which appears relevant:
<?php header('Content-type: text/xml; charset=' . get_option('blog_charset'), true); $more = 1; ?> <?php echo '<?xml version="1.0" encoding="'.get_option('blog_charset').'"?'.'>'; ?>
Is it correct?
After upgrading to WP 2.2 I noticed the problem. I also recently moved to another server (at my same host), to get the newer PHP and MySQL and cPanel so that I could run WP 2.1+. I also run the PodPress plugin that handles enclosures in my feed, but I don’t think that is related to this problem since the error is on Line 1 of a section totally generated by WordPress, and the feed was working perfectly with Podpress and WP 2.0.x, the problem arrived with WP 2.2 and/or the newer MySQL.
What is causing my feed problem?
- The topic ‘[Resolved] RSS Feed Validation Problem in 2.2’ is closed to new replies.