Copied to clipboard

Flag this post as spam?

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


  • Chris Hey 4 posts 24 karma points
    Sep 19, 2013 @ 17:25
    Chris Hey
    0

    uBlogsy - Blog Overview page broken

    Upon installing uBlogsy 3.0 i published the Blog and Blog Overview pages, then navgated to them to see the basic layout and functionality. On the Blog Overview page i encountered a YSOD due to the fact i hadn't published the RSS content node (i am guessing).

    The view at fault is uBlogsyWidgetShowRSSLink.cshtml and the following code:

    var rss = landing.Children.Single(x => x.DocumentTypeAlias == "uBlogsyRSS");
    <a href="@rss.Url()" class="uBlogsy_feed" title="RSS"><span>@Umbraco.GetDictionaryValue("uBlogsyDicRssSubscribe")</span></a>
    

    This expects a child to be returned, a quick check for null, don't render the link and using SingleOrDefault here would solve it. Or use Single, but catch the exception.

    Thanks

    Chris

Please Sign in or register to post replies

Write your reply to:

Draft