Skip to content

[Alpha v19.0.8] Obsidian Notes Block Avatar Issue #6783

@mikedotmundy

Description

@mikedotmundy

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.

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:

Image

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:

Image

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:

Image

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

  • Perform a search on the Github Issues to see if your bug is already reported.
  • Reproduced the problem on a fresh install or on the demo site.

Rock Version

v19.0.8 (Alpha)

Client Culture Setting

en-US

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions