WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] RSS Problem in WordPress 2.2 (28 posts)

  1. Sitoxic
    Member
    Posted 7 years ago #

    I upgrade to 2.2 and since that I lose my feed, when I try to validate it give me this error:

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

    My feed in feed burner look like this:

    feed masmenosuno.com

    feed comments masmenosuno.com

    I uploaded wp-includes again without any result.

    I've try desactivate all plugins searching the error and nothing.

    I've check the code looking for a space in the plugins but everythig is ok but my feed.

    My website is http://www.masmenosuno.com, please I need some help or I will be forced to do a ritual sacrifice :)

    Thanks

  2. rubies
    Member
    Posted 7 years ago #

    I am still using WordPress 2.1 but after installing FeedBurner I got a similar error when trying to validate:

    line 2, column 0: XML parsing error: <unknown>:2:0:
    xml declaration not at start of external entity

    Hopefully both of our problems can be fixed in this post

    My website is http://myagoraphobia.com/

    Thanks
    Ruby

  3. Sitoxic
    Member
    Posted 7 years ago #

    Can someboydy help me? I've got a goat ready for the sacrifice, Her name is Chichi, Help it! Save Chichi´s live with a hint of what´s hell is happening with my feed.

    Thanks

    PS.- Chichi is caramel color and cute

  4. heartless
    Member
    Posted 7 years ago #

    I got a burned a feed through feed burner and it worked fine until a couple of days ago. I was using the feed locations plugin and it worked for a day then I just got a lot of gibberish when I clicked on any of the feed links on my site. I went to feed burner to check and it said my feed was invalid. I deleted my feed burner feeds in an attempt to go back to my original feeds and it was no good. I don't have any idea what could have happened.

  5. Sitoxic
    Member
    Posted 7 years ago #

    I've notice my problem began when a change my server from godaddy to dreamhost. Maybe the problem is in the server.

    Can this be true?

    PS.- Chichi is alvive... yet

  6. heartless
    Member
    Posted 7 years ago #

    I copied my blog over to a different directory on my server, and the rss fee works fine. I tried to leave the files in the new directory and link still have the blog located in the root of the website per these instructions. Everything worked except the Comment RSS feed. Not sure if that helps figure out what the problem is.

  7. Chris_K
    Member
    Posted 7 years ago #

    @sitoxic - your feed starts with multiple blank lines. That's bad.

    Odds are, if you disable plugins that'll be cured. So, go through each plugin.
    Anything before the top <?php must be removed.
    Anything after the last ?> must be removed.

    See if that helps -- and good lord, save that goat!

  8. Chris_K
    Member
    Posted 7 years ago #

    @ruby - you have some sort of redirection thing going on from www to no-www that seems to be hosing things up.

  9. heartless
    Member
    Posted 7 years ago #

    I am using feed burner for my feeds and I was using the Feedsmith plugin to redirect my feeds. While trying to fix my problem I ran across this walkthrough for redirecting your WordPress Themes to Feedburner by editing your .htaccess file. So I updated the .htaccess file and my comment RSS was still returning an error. I found another site (I forgot to bookmark it) That suggested using fancy permalinks. So I went into WordPress Options and chose "Date and Name Based" Permalinks. And my links went to FeedBurner, and they worked. I tried restoring my old .htaccess file using the new permalink and I got the same error, and I tried just using the .htaccess edit without the Permalink change and I also got the error. It is something about these two things together (plus feedburner) that fixed my problem. I'm not much of a programer but I know I've just found a band-aid. I hope this helps you guys find the root of the problem, it seems to be happening a lot in 2.2.

  10. Sitoxic
    Member
    Posted 7 years ago #

    I've tried all of that but I get no solution, with all the pluggins off the problem continues.

    I'm totally lost

    PS.- Chichi seems to have a dark future

  11. karthakon
    Member
    Posted 7 years ago #

    Don't feel bad my fix didn't last long. But I do have it working now. I got The Feed Locations Plugin and redirected my feeds directly to the associated .php file on my server. I also changed the WordPress URL and Blog URL in the WordPress options to http://www... instead of just http://... And now all of my RSS feeds work. I don't think the www change had anything to do with it because I changed it back and it still worked. Also I backed up my data base and completely reinstalled everything. (I've only got 30 posts or something so that's probably less of a hassle for me then it would be for you.) I'm not sure if that helped. It still didn't work after I'd done it. It was only after I used the Feed Locations Plugin.

    Good Luck Chichi!

  12. Chris_K
    Member
    Posted 7 years ago #

    I've tried all of that but I get no solution, with all the pluggins off the problem continues.

    Ok... check wp-config.php as well. Does your theme have a functions.php? check it. Heck, try changing to Default theme just for grins -- does that change the problem?

  13. Sitoxic
    Member
    Posted 7 years ago #

    HandySolo thank you very much, it was the fuction.php, the f*cking fuction.php.

    Thanks again

    You has made Chichi the happier goat in the world XD

  14. blacktar
    Member
    Posted 7 years ago #

    No dice.

    Deactivated all plugins and checked the K2 functions.php and wp-config.php.

    There's nothing in before <?php and not even whitespace after ?>. Are there more things I should check for?

    I still get:

    Sorry

    This feed does not validate.

    *

    line 2, column 0: XML parsing error: <unknown>:2:0: 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. We recommend fixing this issue.

    *

    Feeds should not be served with the "text/html" media type

    when trying to validate the rss feed.

    That's pretty uncool.

  15. kri
    Member
    Posted 7 years ago #

    I have had similar problems myself with the feeds from a few blogs I maintain, and have seen similar problems with others feeds after updating to the latest version. The problem seems to come and go with no obvious reason why. When the problem is there, there is whitespace above the first line of code in the feed. Then other times there's no whitespace and it seems to be fine.

  16. rubies
    Member
    Posted 7 years ago #

    I gave up trying to get it for a while as I was tearing my hair out :(
    I have tried all the above variations and I can still not get it to work.
    I have installed the Feed Locations plugin and I'm using Feedburner and neither have sorted the problem.
    When they are installed I can't get to my feed page from the meta link, once the plugins are deactivated then I can get to feed page

    I think I will never get a feed going, it is so frutstrating.

    Ruby

  17. darkmis29
    Member
    Posted 7 years ago #

    I was having the exact problem with my feed until I noticed in the fuctions.php file, that there was coding incomplete. I removed it and it worked properly.

    Check your files.

  18. rubies
    Member
    Posted 7 years ago #

    I'm still learning coding, but getting there slowly, the only thing I've got in my funtions.php is:
    <?php
    if ( function_exists('register_sidebars') )
    register_sidebars(2);
    ?>

    can you let me know if there is supposed to be something else in there?

    Thanks
    Ruby

  19. ohgod123
    Member
    Posted 7 years ago #

    My functions.php is exactly like rubies above. My feed will not validate, as I get the

    Sorry

    This feed does not validate.

    *

    line 2, column 0: XML parsing error: <unknown>:2:0: 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. We recommend fixing this issue.

    *

    error as well. Can someone tell me how to resolve this? My URL is http://www.thepokerstrat.com

  20. ohgod123
    Member
    Posted 7 years ago #

    does anyone have any input on what files i should be changing? i have checked all my plugins and deactivated them...the problem is still there. but when i remove the rss2-feed.php file, then more problems pop up, which leads me to believe that it is the rss2-feed.php file.

  21. blacktar
    Member
    Posted 7 years ago #

    Update:

    I thought I'd share that I've resolved the issue that was plaguing me.

    It turns out the free godaddy plan injects non validating junk into the pages, resulting in every page starting with an empty line. Craptastic!

    I used a basic hello world php script on the server outside of wordpress to see what the naked sources looked like - lo behold, They started with an empty line.

    I switched to a cheapskate pay per month plan and now RSS is validating and everything is working again, including such things as the visual editor.

  22. blacktar
    Member
    Posted 7 years ago #

    @ohgod123

    It seems that you are also using the free godaddy hosting. That's what screwed up my source.

    I see your sources also starts with an empty line.

    Either switch provider or upgrade to the next cheapest godaddy plan (something like $2 a month). I wouldn't bet on godaddy support doing anything to fix the bugs in the free plan any-day-soon-now.

  23. rubies
    Member
    Posted 7 years ago #

    Thank you so much Blacktar.
    I emailed their support and they said they wouldnt help with anything to do with coding.....no wonder!!

    At least now I can stop spending hours trying to resolve the issue.

    Thanks again
    Ruby

  24. groovyKimo
    Member
    Posted 6 years ago #

    A Hip-Hurray for HandySolo! Thanks! :)

    For me, it was the wp-config.php with 2 more lines after the end.

    Everyone with the above problem I suggest to check the mentioned files for lines before and after the starting <?php and the ending ?>

    KlangArt.ch

    Kimo

  25. dscoble
    Member
    Posted 6 years ago #

    I had the same symptom - initial blank line ruining my feed - but with a different cause. At my host (Dreamhost) I had my domain set to work both with http://domain.com and http://www.domain.com, but with the former the blank line appeared and messed up the feed. It's all mysterious Apache-fu to me, but once I had them set http://domain.com to redirect to http://www.domain.com everything was fine whichever way the feed URL was put in.

  26. actiondan
    Member
    Posted 6 years ago #

    My issue was 2 empty lines in yahoo's plugin for permalinks. You would think that they would have fixed this by now, since they offer automatic installations, so automatically, your rss doesn't work on their hosting until you remove those lines.

  27. sc456a
    Member
    Posted 6 years ago #

    I thought I would add that I am using WP 2.5 and got the same issue. After some hunting I found that my wp-config.php had two blank lines at the end. Clearing these solved the problem.

  28. ataraxie68
    Member
    Posted 6 years ago #

    My issue was an empty line in functions.php. I use a modified version of the Neoclassical Theme for my site http://www.kabel-fernsehen-digital.de with a modified functions.php file. At the end of the file was an empty line which leads to the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic