Question

Photo of Michael Steinwender

0

Object reference not set to an instance of an object.

Receiving this error when attempting make a change to a profile block such as "Family Analytics" etc. I am also trying to locate the  at Rock.Web.RockControlAdapter.OnLoad(EventArgs e) in \Rock\Web\RockControlAdapter.cs:line 71 but can't seem to find the file. We are hosted at 9 Embers. 


Error

Object reference not set to an instance of an object.

   at RockWeb.Blocks.Cms.ContentChannelItemDetail.BindSlugs(ContentChannelItem contentItem)

   at RockWeb.Blocks.Cms.ContentChannelItemDetail.OnLoad(EventArgs e)

   at Rock.Web.RockControlAdapter.OnLoad(EventArgs e) in \Rock\Web\RockControlAdapter.cs:line 71

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.LoadRecursive()

   at System.Web.UI.Control.<LoadRecursiveAsync>d__246.MoveNext()

--- End of stack trace from previous location where exception was thrown ---

   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)

   at System.Web.Util.WithinCancellableCallbackTaskAwaitable.WithinCancellableCallbackTaskAwaiter.GetResult()

   at System.Web.UI.Page.<ProcessRequestMainAsync>d__523.MoveNext()

  • Photo of Luke Taylor

    0

    Are you seeing this issue on a person profile page?

    The exception reference to ContentChannelItemDetail.BindSlugs makes it seem like the issue is happening with a content item detail block.
    Do you have those on your person profile pages?

  • Photo of Ryan Desch

    0

    What did you try to change, the family analytics is a block that display attributes?

  • Photo of Michael Steinwender

    0

    I found the problem. It was a Content Channel on the Person Profile Detail (Layout), Section  C1 (Zone). Removed is and error is gone.