• Resolved whitemice

    (@whitemice)


    G’day!
    Sorry if I’m flooding this forum with same prob/issue. Tried to search for the previous post… but found no solution.

    Ok my problem is… my RSS feed does not validate according to FEED Validator. Just this message appear:

    XML parsing error: <unknown>:3:0: xml declaration not at start of external entity

    FYI, Im tried to follow most of advise given here, but my feed still not valid. Im not using any plugins and my feed uri:

    http://www.ninetnine.net/blog/wp-rss2.php

    Hopefully someone have an Idea for this… Thanks in advanced.

Viewing 12 replies - 1 through 12 (of 12 total)
  • I just validated my feed, Matt’s and a bunch others I could remember off the top of my head and the one thing that immeditately stuck out at from that is different from your feed is that all of our feeds start at line #1.

    Your feed output starts at line #3, meaning you have 2 lines of newlines or something. That is most likely throwing everything off.

    Can you make sure that your wp-rss2.php file has no extra lines/spaces so on. Additionally, can you grab the latest WP download tarball, extract just the wp-rss2.php file and re-upload it to your directory in ASCII mode.

    Regards

    This is another oft asked and answered question. For those in the future who search first, the problem often seems to be an extra line in a php file (I’d start checking in the plugins) outside the <?php ?>.

    Thread Starter whitemice

    (@whitemice)

    Thanks Cypher,
    Ok this is my header of that wp-rss2.php:

    <?php
    if (empty($feed)) {
    $blog = 1;
    $feed = ‘rss2’;
    $doing_rss = 1;
    require(‘wp-blog-header.php’);}
    header(‘Content-type: application/xml; charset=’ . get_settings(‘blog_charset’), true);
    $more = 1;

    ?>
    <?php echo ‘<?xml version=”1.0″ encoding=”‘.get_settings(‘blog_charset’).'”?’.’>’; ?>

    <!– generator=”wordpress/<?php bloginfo_rss(‘version’) ?>” –>
    <rss version=”2.0″
    xmlns:content=”http://purl.org/rss/1.0/modules/content/&#8221;
    xmlns:wfw=”http://wellformedweb.org/CommentAPI/&#8221;
    xmlns:dc=”http://purl.org/dc/elements/1.1/&#8221;
    >

    Which part do I need to delete it…?

    OK..the wp-rss2.php file looks OK, at least, in your cut-n-paste.

    The other thing to check out is the plugins like Beel mentioned. Somehow you are getting those 2 extra lines that are just throwing everything off..

    Regards

    Thread Starter whitemice

    (@whitemice)

    Ok… I tried to delete this portion:

    <?php
    if (empty($feed)) {
    $blog = 1;
    $feed = ‘rss2’;
    $doing_rss = 1;
    require(‘wp-blog-header.php’);}
    header(‘Content-type: application/xml; charset=’ . get_settings(‘blog_charset’), true);
    $more = 1;
    ?>

    and keep the rest, but there is another error appear when Im try to validate it, so what next since Im didnt use any plugin now.

    Ahh..you are using WP 1.5.1.3. Could you upgrade to 1.5.2 to see if that fixes the problem..I know there were some RSS related bugs and fixes in those versions.

    Regards

    Thread Starter whitemice

    (@whitemice)

    Ok, I’ll follow your advise mate… then see what happen. See yaa.

    Thread Starter whitemice

    (@whitemice)

    Update:
    Then I follow Cypher advise:
    1. Upgrade to WP 1.5.2…
    2. Follow all the instruction for that minor upgrade.
    3. Update my .htacess, get it from Options > Permalinks > then hit [update permalink structure] button.
    4. View site – then try to Validate my feed page.
    5. Voila… then proudly announce that finally this bugs solved… Only that can really make me smile mate. Thanks to all. My post regarding this:
    # How finally I get it
    # How to upgrade from 1.5.1.x to 1.5.2

    I had the same problem – looks like it was a rogue whitespace at the end of one of my plugins (in this case it was The Excertp Reloaded, although I guess it could happen to any plugin).

    If you’re getting the same thing, deactivate each plugin one by one to identify the culprit, then check for any new lines / whitespace outside of the PHP.

    Rob.

    hi

    i got an rss feed problem aswell

    i upgraded from 1.51 to 2.03 and changed my Permalink strucutre to /%postname%.htm

    now my rss feed has changed to http://www.freedvdtrials.com/blog/feed/

    but now i cant find a valid rss xml feed and other rss reader cant find a valid xml file

    my blog is at http://www.freedvdtrials.com/blog/

    can some1 help us out

    hpbucks: Already resolved.

    Yosemite: hi can u let me know how to fix my problem

Viewing 12 replies - 1 through 12 (of 12 total)

The topic ‘Another RSS feed error – Pls help’ is closed to new replies.