Description
I am not able to replicate this on the demo site, but we are seeing the issue in our Alpha instance v19.0.8.
On the new Obsidian Notes Block, when a person does not have a profile photo, their avatar on the notes block displays a broken image.
To make this even more odd, this is only an issue for _some_ people, not all. There are some whose avatar is their initials, even though they don't have a profile picture. Unfortunately, I was not able to figure out what is causing it for some, but not others.
The above is from an event registration, however, I ran into this originally when testing the Family Pre-registration block. We have a Workflow that kicks off when someone pre-registers, and the workflow adds a person note. But this is what happened for that test person:
I copied the image link for one that is displaying properly:
https://devrock.bedfordalliance.church/GetAvatar.ashx?PhotoId=&AgeClassification=Adult&Gender=Female&RecordTypeId=1&Text=KM
Here is what it looked like when I loaded it into my browser:
I then copied one of the broken ones:
https://devrock.bedfordalliance.church/GetAvatar.ashx?PhotoId=&AgeClassification=Adult&Gender=Female&RecordTypeId=1&Text=WB
Note that it is exactly the same as the other, with the exception of the initials. However, this one generated an error when I tried to load it into a browser:
This did not log in the exception log, but here is the exception from the web page:
TypeLoadException in mscorlib
Message
Could not load type 'SixLabors.ImageSharp.Drawing.Processing.RichTextOptions' from assembly 'SixLabors.ImageSharp.Drawing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d998eea7b14cab13'.
Here is the stack trace:
Server stack trace:
at Rock.Drawing.Avatar.AvatarHelper.CreateInitialsAvatar(AvatarSettings settings)
at Rock.Drawing.Avatar.AvatarHelper.CreateAvatar(AvatarSettings settings) in \Rock\Drawing\Avatar\AvatarHelper.cs:line 168
at RockWeb.GetAvatar.ProcessRequest(HttpContext context)
at System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
at System.Runtime.Remoting.Messaging.StackBuilderSink.AsyncProcessMessage(IMessage msg, IMessageSink replySink)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.EndInvokeHelper(Message reqMsg, Boolean bProxyCase)
at System.Runtime.Remoting.Proxies.RemotingProxy.Invoke(Object NotUsed, MessageData& msgData)
at RockWeb.GetAvatar.AsyncProcessorDelegate.EndInvoke(IAsyncResult result)
at System.Web.HttpApplication.CallHandlerExecutionStep.InvokeEndHandler(IAsyncResult ar)
at System.Web.HttpApplication.CallHandlerExecutionStep.OnAsyncHandlerCompletion(IAsyncResult ar)
Actual Behavior
ONLY in the notes block, some people's avatar is a broken image.
Expected Behavior
No one should have a broken avatar image in the notes block.
Steps to Reproduce
Unsure, please let me know if there are more steps I can take to recreate.
Issue Confirmation
Rock Version
v19.0.8 (Alpha)
Client Culture Setting
en-US
Description
I am not able to replicate this on the demo site, but we are seeing the issue in our Alpha instance v19.0.8.
On the new Obsidian Notes Block, when a person does not have a profile photo, their avatar on the notes block displays a broken image.
To make this even more odd, this is only an issue for _some_ people, not all. There are some whose avatar is their initials, even though they don't have a profile picture. Unfortunately, I was not able to figure out what is causing it for some, but not others.
The above is from an event registration, however, I ran into this originally when testing the Family Pre-registration block. We have a Workflow that kicks off when someone pre-registers, and the workflow adds a person note. But this is what happened for that test person:
I copied the image link for one that is displaying properly:
https://devrock.bedfordalliance.church/GetAvatar.ashx?PhotoId=&AgeClassification=Adult&Gender=Female&RecordTypeId=1&Text=KMHere is what it looked like when I loaded it into my browser:
I then copied one of the broken ones:
https://devrock.bedfordalliance.church/GetAvatar.ashx?PhotoId=&AgeClassification=Adult&Gender=Female&RecordTypeId=1&Text=WBNote that it is exactly the same as the other, with the exception of the initials. However, this one generated an error when I tried to load it into a browser:
This did not log in the exception log, but here is the exception from the web page:
Here is the stack trace:
Actual Behavior
ONLY in the notes block, some people's avatar is a broken image.
Expected Behavior
No one should have a broken avatar image in the notes block.
Steps to Reproduce
Unsure, please let me know if there are more steps I can take to recreate.
Issue Confirmation
Rock Version
v19.0.8 (Alpha)
Client Culture Setting
en-US