Copied to clipboard

Flag this post as spam?

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


  • Andrew Cullen 137 posts 237 karma points
    Feb 28, 2014 @ 22:09
    Andrew Cullen
    0

    Null reference exception after adding post

    I have a uBlogsy 3.0.1 install on umbraco version 6.1.6 that throws a null reference exception error after publishing a new post. On the post page itself, the error (Object reference not set to instance of an object) seems to be on line 20 of uBlogsyPost.cshtml:

    var prev = PostService.Instance.GetNextPost(Model.Content, tag, label, author, searchTerm, commenter, year, month, day);

    On the main page for the blog, the issue (same error) is in line 48 of uBlogsyLandingListPosts.cshtml:

    foreach (var n in posts)

    Any thoughts? it seems to me like something is getting messed up in the posts collection.


  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    Mar 05, 2014 @ 11:54
    Biagio Paruolo
    0

     Try to remove umbraco.config and all index files under TEMP\Examine\<folders>

  • Mark Bowser 273 posts 860 karma points c-trib
    Dec 11, 2015 @ 18:43
    Mark Bowser
    0

    We have an umbraco 7.2.8 site with uBlogsy 4.1.2. We get this every now and then. The only solution for us is to recycle the app pool. While the error is occurring, no blogs on the site will work. The root blog landing also has a similar error (but we were using the NoLuceneFallbackService for the blog landing). I am able to verify that the blogs exist in the xml cache and I can find them in examine.

    I've tried reindexing the Internal Indexer and republishing the entire site to no avail. I've also tried republishing the individual blog post and each date folder all the way back up to the root blog landing. I've also tried republishing the blog landing itself. So far only app pool recycle works.

    Any ideas?

    Thanks

  • Biagio Paruolo 1618 posts 1910 karma points c-trib
    Dec 11, 2015 @ 20:16
    Biagio Paruolo
    0

    Have you some antivirus?

  • Mark Bowser 273 posts 860 karma points c-trib
    Dec 14, 2015 @ 18:03
    Mark Bowser
    0

    I'm sure that there is all sorts of anti virus on the server. The client is very security minded.

    This is most of the exception I'm getting:

    [NullReferenceException: Object reference not set to an instance of an object.]
      Umbraco.Web.UmbracoContext.get_UmbracoUser() +10
      Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.<get_GetXmlDelegate>b__3(UmbracoContext context, Boolean preview) +91
      Umbraco.Web.PublishedCache.XmlPublishedCache.PublishedContentCache.GetById(UmbracoContext umbracoContext, Boolean preview, Int32 nodeId) +37
      Umbraco.Web.PublishedCache.ContextualPublishedCache`1.GetById(Int32 id, ContextualPublishedCache cache) +42
      uHelpsy.Helpers.IPublishedContentHelper.GetNode(Int32 nodeId) +70
      uBlogsy.BusinessLogic.NoLuceneFallbackService.GetPosts(Int32 nodeId) +202
      uBlogsy.BusinessLogic.NoLuceneFallbackService.GetPosts(Int32 nodeId, String tag, String label, String author, String searchTerm, String commenter, String year, String month, Int32& postCount) +137
      ASP._Page_Views_Partials_uBlogsy_Landing_uBlogsyLandingListPosts_cshtml.Execute() in C:\...\Views\Partials\uBlogsy\Landing\uBlogsyLandingListPosts.cshtml:43
      ...
    

    Are you thinking that there is some sort of security on the machine that is messing with one of the cookies? In this similar post, people mention that it could be cookie related. Why does it only affect the uBlogsy section of the website?

  • Mark Bowser 273 posts 860 karma points c-trib
    Dec 14, 2015 @ 18:12
    Mark Bowser
    0

    Ah. After reading through this: http://issues.umbraco.org/issue/U4-4302, it looks like the problem was an issue with uHelpsy caching the UmbracoContext or something like that. It looks like they have posted a dll that I can download. Do you know if this fix has been officially integrated back into uHelpsy? Or will I be off-roading it by using this dll? Just want to make sure I am aware if I have a uBlogsy fix that will break when I next upgrad uBlogsy.

    Thanks

Please Sign in or register to post replies

Write your reply to:

Draft