I updated to Discourse version v2026.8.0-latest a few days ago. Some user’s avatars have turned to a default image (not the letter avatar). Trying to upload a new image does nothing. The preview shows the image but upon saving it reverts back to the default image. It doesn’t matter if the user does it or an admin. The interface shows no error message.
First I tried refreshing avatars with rake, that did nothing. I then checked the logs and looked if something shows when I try to change the avatar image, i found the following log message:
Failed to optimize image: unknown reason upload_id: location: {raise_on_error: true, quality: 90, upload_id: 235861} error_message: no implicit conversion of Hash into String instructions: [“convert”, “png:/var/www/discourse/public/uploads/default/original/3X/2/c/2c620efd4ee10548884a11b7237d5aa9135817b1.png[0]”, “-quality”, “90”, “-auto-orient”, “-gravity”, “center”, “-background”, “transparent”, “-thumbnail”, “24x24^”, “-extent”, “24x24”, “-interpolate”, “catrom”, “-unsharp”, “2x0.5+0.7+0”, “-interlace”, “none”, “-profile”, “/var/www/discourse/vendor/data/RT_sRGB.icm”, “png:/tmp/discourse-thumbnail20260730-360984-9yk3a1.png”]
Sent file /var/www/discourse/public/images/avatar.png (0.3ms)
So I guess there is a type mismatch in the code that handles image optimization.
Funny thing is, I also can’t upload an avatar on this forum too, suspecting that something similar is happening here too. At least here I get an error message about that “something went wrong”.
Any idea how I can resolve this issue, or is there nothing I can do other than waiting for a fix?

