Skip to content

Error message uploading custom emoji #1650

@jonpincus

Description

@jonpincus

Describe the bug
Most of the time (although not always) I get an error message when trying to upload custom emoji. The new emoji briefly shows up, but then a flash message appears and and it vanishes from the list.

For the person who originally reported it, the emoji wasn't available at that point; when I tried to reproduce it, however, the emoji was available, and if I refreshed the list of custom emoji it was there. So it's possible there are two bugs here and I was only reproducing the first one. (

The flash error message says

Sorry, the function handle_event (overridable 1)/3 in module Elixir.Bonfire.UI.Me.SettingsLive didn't receive the data it was expecting -

The server log also has
Elixir.FunctionClauseError: no function clause matching in Bonfire.UI.Me.SettingsLive."handle_event (overridable 1)"/3

To Reproduce
Steps to reproduce the behavior:

  1. Go to Settings
  2. Click on Advanced / Custom Emoji
  3. Fill in the lable and shortcode, and select a .png file

Expected behavior
The custom emoji should appear in the list (and I shouldn't get any error messages).

Bonfire environment (please complete the following information):

  • Running env: prod
  • Running with Co-op Cloud and/or Docker?: Co-op Cloud
  • Running version (check on your instance's sidebar): 1.0
  • Running flavour: social
  • Running any extra/forked extensions: not as far as I know

Client device (please complete the following information):

  • Device: Macbook Pro
  • OS: MacOS 15.2
  • Browser: Chrome
  • Browser Version: 142.0.7444.135

Additional context
Not sure if these are significant but ...

  • Neither of the accounts involved in testing have admin or mod privileges.
  • The other account also successfully uploaded an emoji and was able to use it. But then after deleting it, they weren't able to upload the same emoji.
  • I'm using local storage rather than an S3 bucket (not sure why this should matter but just in case!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions