Copied to clipboard

Flag this post as spam?

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


  • Joakim Rosendahl 3 posts 23 karma points
    May 07, 2012 @ 16:42
    Joakim Rosendahl
    0

    Empty blog posts on import

    I'm experimenting with uBlogsy 2.1, but it seems like the import function doesn't work properly (at least on my machine). I'm importing the same RSS feed used in this video. But after the import, posts have been created with titles, but they are all empty. No body text, no tags, no nothing. 

    When browsing the forums it looks like import should work. Do I need to do something special to make it work?

     

    /Regards,
    Joakim.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    May 16, 2012 @ 11:22
    Anthony Dang
    0

    It should work. What is the rss feed you're trying to import?

    Are there any errors in the Umbraco log table?

     

  • kristian schneider 190 posts 351 karma points
    May 18, 2012 @ 14:55
    kristian schneider
    0

    I'm having problems as well. and get the following error:

    System.NullReferenceException: Object reference not set to an instance of an object. at uBlogsy.Common.Helpers.RssReader.ParseElement(XmlNode parent, String xPath, String& property) in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.Common\Helpers\RssReader.cs:line 197 at uBlogsy.Common.Helpers.RssReader.Execute() in D:\_PROJECTS\Personal\uBlogsy - Blog\Branches\2.1.0.0\uBlogsy\uBlogsy.Common\Helpers\RssReader.cs:line 151

    And I'm trying to import this feed: http://caxtonfxcurrencyblogs.blogspot.com/feeds/posts/default?alt=rss

    any sugestions?

  • kristian schneider 190 posts 351 karma points
    May 21, 2012 @ 11:40
    kristian schneider
    0

    I had a look at the sourcecode to investigate the problem. And something seemd weird to me.

    In the CreatePost method in RssImpart.ascx.cs it does not populate uBlogsyContentBody and uBlogsyContentTitle. Also the postDic dictionary is not passed along to the CreateContentNode method,instead it gets a new empty dictionary?!?. So by updateing the code to this:

        private Document CreatePost(RssItem item, int parentId)
            {
                // create post item
                Dictionary postDic = new Dictionary();
                postDic["uBlogsyPostDate"] = item.Date;
                postDic["uBlogsyPostAuthor"] = txtAuthor.Text;
                postDic["uBlogsyContentBody"] =item.Description;
                postDic["uBlogsyContentTitle"] = item.Title;
    
                Document post = UmbracoAPIHelper.CreateContentNode(item.Title, "uBlogsyPost", postDic, parentId, false);
    
                return post;
            }

    It now works

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Aug 08, 2012 @ 15:42
    Anthony Dang
    0

    Sorry.

    I cant beleive I let this one slip through.

    It's been fixed in the latest version.

    Cheers guys.

     

  • Den Gordo 29 posts 49 karma points
    Sep 07, 2012 @ 11:37
    Den Gordo
    0

    Hi Anthony,

    Just wondering have you fixed that issue in the latest version of uBlogsy (2.1.1.0)? Because import failing even with the feed suggested by you http://feeds.feedburner.com/midcodecrisis and there are other reports here.

    Regards
    Den

Please Sign in or register to post replies

Write your reply to:

Draft