Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Craig 14 posts 34 karma points
    Dec 17, 2013 @ 16:37
    Craig
    0

    RSS Error Document is Empty

    Hello,

    I am working with Umbraco version 4.9.1 and uBlogsy version 2.1.1.2. The blog works perfectly fine and im able to put posts into the system and they show. However i just went to the RSS section which is: http://www.helpforheroes.org.uk/news/rss/ and i get an error:

     

    This page contains the following errors:

    error on line 1 at column 37: Document is empty

    Below is a rendering of the page up to the first error.

     

    I have been through the forum and looked at all the RSS error issues like re-saving the cshtml file, change the string, make the files on single line. All of this doesnt actually help in making the rss work.

     

    Has anyone else had this issue and know how to fix this?

     

    Regards,

     

    Craig.E

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jan 02, 2014 @ 01:36
    Anthony Dang
    0

    I think that error occurs because there's a line or a space at the top of the file. Right click the page and view source to see if the browser is seeing an extra line or more

     

  • Craig 14 posts 34 karma points
    Jan 02, 2014 @ 10:28
    Craig
    0

    Hi Anthony,

    I viewed the source and there wasnt any extra lines in the sorce code.

    Please see the image attached.

    Regards,

     

    Craig.E

     

     

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jan 02, 2014 @ 15:47
    Anthony Dang
    0

    Anything in the umbracolog db table or app_data/logs ?

  • Craig 14 posts 34 karma points
    Jan 06, 2014 @ 12:01
    Craig
    0

    No, ive just had a look and there isnt anything in umbracoLog Table nor on the App_Data Logs. 

  • Steve Brown 125 posts 290 karma points
    Jan 13, 2014 @ 21:03
    Steve Brown
    0

    I think this may be the same issue I encountered a while ago:http://our.umbraco.org/projects/starter-kits/ublogsy/ublogsy-bugs/39488-RSS-Feed-Error

    I had to go into the RSS template and remove the comment

  • Craig 14 posts 34 karma points
    Jan 14, 2014 @ 16:57
    Craig
    0

    Hi Steve,

    Thanks for your response. I had a look at removing the bit of code which you mentioned on your link above. I tried this and also removing all the other comments in that RSS.cshtml file. However this didn’t fix it.

     

    Saying that though, I have literally just fixed this now. I stripped every section out and starting putting all back in line by line. I eventually found out that it was the link to do with “uBlogsyPostAuthor”

    <author>@p.GetProperty("uBlogsyPostAuthor").Value</author>

    My issue was to do with the fact that the “Author” of the blog was never set in the admin part of umbraco. So I went in and put an author in, only to find out because I had lots of posts already on the site without an author, it wouldn’t update the data base. So I have had to change the fact that the author file if hard coded to use one name. (Thankfully our site uses one name as an author). So our code now looks like similar to this:

    <author>Name of the only author</author>

    So im not sure if there is a bug with the author field in uBlogsy, but thought I would post this result so that others might have the same issue as me.

     

    Thanks for everyone’s help.

Please Sign in or register to post replies

Write your reply to:

Draft