0 Member can't view account page, throws exception error only on that person 2 Casey Dierking posted 7 Years Ago I'm not sure what is going on here. A church member cannot view their account page as it throws an error. Internally, Rock is giving me the exception of "Object reference not set to an instance of an object". I've tested other people and they can view the page just fine, but it is only borked on her page.Any suggestions?
Daniel Hazelbaker 7 years ago Casey, if you look in the exception log, it should have the full stack trace. Can you post that too?
Casey Dierking 7 years ago Here is the exception I'm getting.Exception Log:NullReferenceException in App_Web_ap3ii2hvMessageObject reference not set to an instance of an object.Stack Traceat RockWeb.Blocks.Cms.PublicProfileEdit.<>c__DisplayClass3a.<ShowDetail>b__26(PhoneNumber pn) in c:\inetpub\wwwroot\Blocks\Cms\PublicProfileEdit.ascx.cs:line 823at System.Linq.Enumerable.WhereEnumerableIterator1.MoveNext() at System.Collections.Generic.List1..ctor(IEnumerable1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable1 source)at RockWeb.Blocks.Cms.PublicProfileEdit.ShowDetail() in c:\inetpub\wwwroot\Blocks\Cms\PublicProfileEdit.ascx.cs:line 823at RockWeb.Blocks.Cms.PublicProfileEdit.BindFamilies() in c:\inetpub\wwwroot\Blocks\Cms\PublicProfileEdit.ascx.cs:line 129at RockWeb.Blocks.Cms.PublicProfileEdit.OnLoad(EventArgs e) in c:\inetpub\wwwroot\Blocks\Cms\PublicProfileEdit.ascx.cs:line 79at 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.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Daniel Hazelbaker 7 years ago Casey, hmm. Looking at the stack trace and the code lines indicated, it is something to do with displaying that person's phone number. I would check their phone numbers on the internal staff person detail page and verify everything looks correct. If it does, try deleting all the phone numbers (maybe write them down first) and then see if it works on the public portal. If it still isn't working you might have to dig into SQL and see if there are, somehow, phone numbers for that person that are in SQL but not showing up in the person detail page on the staff side that is causing the public side to crash.
Casey Dierking 7 years ago Daniel, I think we might be on to something here. So I deleted her phone numbers, and in the person edit screen, it does not show up. But on her profile page, it does show a phone number.
Daniel Hazelbaker 7 years ago It's still something related to phone numbers on that person (or maybe a family member). That is about the only information we can gather from the stack trace...