Copied to clipboard

Flag this post as spam?

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


  • suzyb 474 posts 932 karma points
    Mar 08, 2012 @ 23:03
    suzyb
    0

    Import RSS Bug

    When I try and import an RSS feed I get the same error as this post.  So I tried commenting out the comments tab in dashboard.config and importing the feed again.  This time I get the following error:

    Object reference not set to an instance of an object.

    StackTrace:
    at uBlogsy.BusinessLogic.DocumentService.GetDocumentByAlias(Document current,
    String rootAlias, String alias) in D:\_PROJECTS\uBlogsy -
    Blog\Branches\2.0.0.1\uBlogsy\uBlogsy.BusinessLogic\DocumentService.cs:line 142
    at uBlogsy.Web.usercontrols.uBlogsy.dashboard.RSSImport.Import() in
    D:\_PROJECTS\uBlogsy - Blog\Branches\2.0.0.1\uBlogsy\uBlogsy\usercontrols\uBlogsy\dashboard\RSSImport.ascx.cs:line 60
    at uBlogsy.Web.usercontrols.uBlogsy.dashboard.RSSImport.btnRssImport_Click(Object sender, EventArgs e) in
    D:\_PROJECTS\uBlogsy - Blog\Branches\2.0.0.1\uBlogsy\uBlogsy\usercontrols\uBlogsy\dashboard\RSSImport.ascx.cs:line 31

    I am using uBlogsy v2.0.0.1 and am trying to import this feed.

  • suzyb 474 posts 932 karma points
    Mar 09, 2012 @ 20:32
    suzyb
    1

    I downloaded the source to see if I could determine what the problem was. This is the line that is causing the error

    var root = Document.GetRootDocuments().Where(x => x.ContentType.Alias == "uBlogsyLanding").FirstOrDefault();

    I think it may be because my blog landing page is no longer a root page, I moved it under my home node.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Mar 22, 2012 @ 01:20
    Anthony Dang
    0

    Ah yes you're right.

    This rss import  works only when the landing node is a root.

     

     

  • Daniel Bardi 927 posts 2562 karma points
    Mar 30, 2012 @ 21:26
    Daniel Bardi
    0

    I have the blog at the root level.

    I'm getting this error when importing and rss feed

    Object reference not set to an instance of an object.

    Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

    Exception Details: System.NullReferenceException: Object reference not set to an instance of an object.

    Source Error: 

    Line 34: 
    Line 35: 
    Line 36: <% if (Comments.Count > 0) Line 37:        { %>
    Line 38:     <h1>

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Apr 08, 2012 @ 17:53
    Anthony Dang
    0

    Did you solve this issue?

    I've done numerous tests with ublogsy 2.1 and it seems fine.

     

     

  • suzyb 474 posts 932 karma points
    Apr 09, 2012 @ 12:15
    suzyb
    0

    tbh I haven't really looked for a solution.  I just wanted the import function to import the blog posts from our old site to the new. I discovered it wouldn't quite import everything we needed imported, or rather the feed didn't include everything we needed so I hacked together an aspx page to do it.

  • suzyb 474 posts 932 karma points
    Apr 10, 2012 @ 12:12
    suzyb
    0

    When setting up the blog on another site I gave this a test on to see if it worked.  Blog is at level 3 and I used this feed and got this error

    Object reference not set to an instance of an object.

    StackTrace:
    at uBlogsy.BusinessLogic.DocumentService.GetDocumentByAlias(Document current, String rootAlias, String alias) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.BusinessLogic\DocumentService.cs:line 142 at uBlogsy.Web.usercontrols.uBlogsy.dashboard.RSSImport.Import() in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy\usercontrols\uBlogsy\dashboard\RSSImport.ascx.cs:line 60 at uBlogsy.Web.usercontrols.uBlogsy.dashboard.RSSImport.btnRssImport_Click(Object sender, EventArgs e) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy\usercontrols\uBlogsy\dashboard\RSSImport.ascx.cs:line 31
  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    May 09, 2012 @ 17:09
    Anthony Dang
    0

    RSS import only works when the blog is at the root.

    You can try using the CMSImport package.

     

  • Richard Soeteman 4036 posts 12864 karma points MVP
    May 11, 2012 @ 09:35
    Richard Soeteman
    0

    Hi,

    Yes CMSImport PRO can help you with this using RSS. It doesn't require uBlogsy being at the root. I've just release version 2.2 which is optimized for uBlogsy and  let's you import posts and comments from BlogML or Wordpress, Check it out at http://our.umbraco.org/projects/developer-tools/cmsimport

    Best,

    Richard

Please Sign in or register to post replies

Write your reply to:

Draft