# Adding a custom emoji broke the site

**URL:** <https://meta.discourse.org/t/adding-a-custom-emoji-broke-the-site/59687>\
**Category:** Bug\
**Created:** [22 Marzo 2017, 1:29pm UTC](https://meta.discourse.org/t/adding-a-custom-emoji-broke-the-site/59687 "2017-03-22T13:29:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![adundovi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/adundovi/32/42645_2.png) [@adundovi](https://meta.discourse.org/u/adundovi)\
**Post date:** [22 Marzo 2017, 2:30pm UTC](https://meta.discourse.org/t/adding-a-custom-emoji-broke-the-site/59687/3 "2017-03-22T14:30:57Z")

</div>

Yes, something with it or with:  
[https://github.com/discourse/discourse/commit/1a7e954e09c465aac5636f83470bde0a8fe887b2](https://github.com/discourse/discourse/commit/1a7e954e09c465aac5636f83470bde0a8fe887b2)

I’ve managed to fix it by finding the troublesome emoji and deleting it (I don’t know Ruby so don’t laugh too much on my usage of it 🙂 ):

```plaintext
./launcher enter app
su discourse
bundle exec rails c

```

```plaintext
CustomEmoji.find_each do |item,obj|
    print item.name+"\n"
    print "->"+item.upload.url+"\n"
end

```

The loop will break because `item.upload.url` is not defined for every item. The name of the broken emoji put in the next line:

```plaintext
em = CustomEmoji.find_by(name: "NAME")
em.distroy!

Emoji.clear_cache

```

Exit.

---

_[View the full topic](https://meta.discourse.org/t/adding-a-custom-emoji-broke-the-site/59687)._
