# Category logo deleted after some edit

**URL:** https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254
**Category:** Bug
**Created:** [16 Setembro , 2016 20:12 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254 "2016-09-16T20:12:44Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [16 Setembro , 2016 20:12 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254/1 "2016-09-16T20:12:44Z")

</div>

I noticed a little bug on Discourse, and I managed to find the steps to reproduce it :

- Edit a category that has a logo and change the _parent category_
- After 24/48 hours, the logo image will give an error 404, you’ll have to reupload the logo.

It may happen when we edit something else, like the description but I only tried this steps two days ago, and I can confirm tonight that there is a little bug here.

My forum was up to date at the time. And I didn’t see anything related to this issue since. If it’s the case, my apologies.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [16 Setembro , 2016 20:27 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254/2 "2016-09-16T20:27:39Z")

</div>

Hmm @sam does this help you diagnose the other strange upload issue?

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [17 Setembro , 2016 01:48 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254/3 "2016-09-17T01:48:49Z")

</div>

In your admin staff action logs, can you look for `change category settings` and see what the category’s logo url was changed to?

If it doesn’t start with `/uploads` but includes `https://yoursitedomain.com/uploads`, something is off. I’ve seen this on another forum that we host but I couldn’t replicate the issue and re-uploading the image worked.

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [17 Setembro , 2016 14:19 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254/4 "2016-09-17T14:19:29Z")

</div>

```
ID catégorie: 26
Nouveau (new): //iunctis.fr/uploads/default/original/1X/dd3017f3ad31a63a56bbe68e7dfd1240479cde35.png
Précédent (old) : /uploads/default/original/1X/dd3017f3ad31a63a56bbe68e7dfd1240479cde35.png

```

(This is when I reuploaded the logo img)

You’re right, there is something wrong with the path

---

<div class="post-metadata">

### Author: ![tgxworld](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tgxworld/32/106117_2.png) [@tgxworld](https://meta.discourse.org/u/tgxworld)
#### Post date: [19 Setembro , 2016 09:41 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254/5 "2016-09-19T09:41:36Z")

</div>

Can you try upgrading to latest and then reupload the logo? I’m still having trouble trying to reproduce this so it could be a regression that has been fixed.

---

<div class="post-metadata">

### Author: ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)
#### Post date: [19 Setembro , 2016 23:05 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254/6 "2016-09-19T23:05:23Z")

</div>

Updated my Discourse 5 min ago and changed a setting. It still change the path of the logo : (here the chronological order of the logs)

```
change category settings
auto_close_based_on_last_post

Category ID: 18
New: t
Previous: f
/c/podcasts

```

* * *

```
change category settings
logo_url

Category ID: 18
New: //iunctis.fr/uploads/default/original/2X/c/c62958c95ad579ade24babb9fbb6ad3290be2a14.png
Previous: /uploads/default/original/2X/c/c62958c95ad579ade24babb9fbb6ad3290be2a14.png
/c/podcasts

```

* * *

When I reuploaded the logo image :

```
change category settings
logo_url

Category ID: 18
New: /uploads/default/original/2X/1/1e8ff2b5d505e8e830b2898c91ced03615f6ed32.png
Previoust: //iunctis.fr/uploads/default/original/2X/c/c62958c95ad579ade24babb9fbb6ad3290be2a14.png
/c/podcasts

```

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [20 Setembro , 2016 00:24 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254/7 "2016-09-20T00:24:27Z")

</div>

I will have a look fist thing tomorrow.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [21 Setembro , 2016 20:12 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254/8 "2016-09-21T20:12:18Z")

</div>

Here’s the fix.

[https://github.com/discourse/discourse/commit/641b95f655f0f653e3f0602d01729545ae8450ab](https://github.com/discourse/discourse/commit/641b95f655f0f653e3f0602d01729545ae8450ab)

Update to latest, and re-upload any missing images.

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [21 Setembro , 2016 21:32 UTC](https://meta.discourse.org/t/category-logo-deleted-after-some-edit/50254/9 "2016-09-21T21:32:53Z")

</div>


