# Favicon is failing to load for logged-in users

**URL:** https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952
**Category:** Support
**Created:** [23 december 2018 om 16:06 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952 "2018-12-23T16:06:06Z")
**Posts on this page:** 14
**Page:** 3

<div class="post-metadata">

### Author: ![neemiasvf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neemiasvf/32/197028_2.png) [@neemiasvf](https://meta.discourse.org/u/neemiasvf)
#### Post date: [2 januari 2019 om 21:36 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/42 "2019-01-02T21:36:34Z")

</div>

Hey @tgxworld!

It was indeed solved by fixing the certificate and using Let’s Encrypt, even with that setting set to `true`. Thank you all for helping me with this issue. I really appreciate it! You’re the best!

❤

---

<div class="post-metadata">

### Author: ![SimonSays](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsays/32/122428_2.png) [@SimonSays](https://meta.discourse.org/u/SimonSays)
#### Post date: [22 januari 2019 om 10:59 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/43 "2019-01-22T10:59:34Z")

</div>

For me, the solution was to re-upload the favicon using /wizard. (Might also work with upload at admin/required). I had no problems with the certificate.  
Using v2.2.0.beta8 +93.

Still seems like a bug to me.

---

<div class="post-metadata">

### Author: ![neemiasvf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neemiasvf/32/197028_2.png) [@neemiasvf](https://meta.discourse.org/u/neemiasvf)
#### Post date: [22 januari 2019 om 14:24 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/44 "2019-01-22T14:24:29Z")

</div>

Have you also got the dynamic favicon enabled?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [28 januari 2019 om 15:54 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/45 "2019-01-28T15:54:36Z")

</div>

I’ve also had this gremlin. I simply toggled the user setting suggested and the favicon appeared! This does feel like a bug? (or there’s a dependency I don’t know about).

This _doesn’t_ work with this _checked_ on Safari (as a pinned tab):

![image](https://global.discourse-cdn.com/meta/optimized/3X/f/0/f03092479ce377d8727391db419590b854e3138a_2_345x17.png)

---

<div class="post-metadata">

### Author: ![SimonSays](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simonsays/32/122428_2.png) [@SimonSays](https://meta.discourse.org/u/SimonSays)
#### Post date: [28 januari 2019 om 19:54 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/46 "2019-01-28T19:54:01Z")

</div>

> [@neemiasvf](#):
>
> Have you also got the dynamic favicon enabled?

Yes, that was the bug. Enabling dynamic favicon reverted to a default icon for logged in users.

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [4 februari 2019 om 17:52 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/47 "2019-02-04T17:52:08Z")

</div>

FWIW, we are seeing the “sketchy” default favicon on our site [https://bf1.akimbo.com](https://bf1.akimbo.com) which is hosted by Discourse with a Business plan.

We have a favicon uploaded in the settings, and it’s displaying properly for logged-out users…

[![](https://global.discourse-cdn.com/meta/original/3X/1/5/159bd05fccdc9fecadba9fdb6a4bd7d2142fd309.jpeg) ](https://dl.dropboxusercontent.com/s/tikf7nsynmidnfd/Screenshot%202019-02-04%2012.50.54.png?dl=0)

… and for admin/staff users.

[![](https://global.discourse-cdn.com/meta/original/3X/c/d/cdc0d97718f4de006d5818676127d7ee1d4b6f3b.jpeg) ](https://dl.dropboxusercontent.com/s/smqtvegfniumicw/Screenshot%202019-02-04%2012.51.44.png?dl=0)

But it’s showing the “sketchy default” favicon for logged-in non-admin users.

[![](https://global.discourse-cdn.com/meta/original/3X/4/e/4e93e1d8545531aa2917aec7f9eb11cc59cca232.jpeg) ](https://dl.dropboxusercontent.com/s/2rvvl9j5xjkjp76/Screenshot%202019-02-04%2012.47.55.png?dl=0)

I’ve just tried changing the “Show new / updated topic count on browser icon” setting to see if that helps.

Any thing else I should try?

---

<div class="post-metadata">

### Author: ![neemiasvf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neemiasvf/32/197028_2.png) [@neemiasvf](https://meta.discourse.org/u/neemiasvf)
#### Post date: [4 februari 2019 om 21:23 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/48 "2019-02-04T21:23:27Z")

</div>

Now, THAT is super weird.

> [@alxpck](#):
>
> Any thing else I should try?

I would tell you to use Let’s Encrypt, but since you’re using Discourse hosting, I don’t know what to do.

Maybe to **temporarily** fix it, disable the dynamic favicon.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [4 februari 2019 om 21:42 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/49 "2019-02-04T21:42:20Z")

</div>

> [@alxpck](#):
>
> Any thing else I should try?

Not really, we can help debug this, having a quick look.

Hmm… looks like the proxied favicon is not right:  
[https://bf1.akimbo.com/favicon/proxied](https://bf1.akimbo.com/favicon/proxied)

Debugging … continues…

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [4 februari 2019 om 21:49 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/50 "2019-02-04T21:49:15Z")

</div>

Thanks @sam. It looks like it’s working now, and I did turn off the dynamic favicon. Thanks @neemiasvf

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [4 februari 2019 om 21:53 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/51 "2019-02-04T21:53:09Z")

</div>

Nahh … not quite working @alxpck

The favicon you uploaded is ginormous! We have built in protection that avoids proxying favicons larger than 50k and this favicon is 55k!!!

Can you shrink it down, this is a massive price to pay, as a guideline aim for a 5k sized favicon.

Once you do that and re-upload it will work correctly.

@dan can you help improve this subsystem?

What are legitimate sizes of favicons? (64x64 or 128x128 maybe?)

Once we figure this out we should automatically optimize the image down to that size for all our favicon usage (both proxied and direct) this is a huge savings network wise. (still keep the original but grap a thumbnail when we tell the client what the favicon is or proxy)

---

<div class="post-metadata">

### Author: ![neemiasvf](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neemiasvf/32/197028_2.png) [@neemiasvf](https://meta.discourse.org/u/neemiasvf)
#### Post date: [4 februari 2019 om 21:59 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/53 "2019-02-04T21:59:49Z")

</div>

> [@sam](#):
>
> What are legitimate sizes of favicons? (64x64 or 128x128 maybe?)

I use 32x32. I believe that’s the most common dimension.

You take a look at this @alxpck:

> <https://stackoverflow.com/questions/4014823/does-a-favicon-have-to-be-32%c3%9732-or-16%c3%9716>

It has some useful information and reference tools.

---

<div class="post-metadata">

### Author: ![alxpck](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alxpck/32/243713_2.png) [@alxpck](https://meta.discourse.org/u/alxpck)
#### Post date: [5 februari 2019 om 01:35 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/54 "2019-02-05T01:35:27Z")

</div>

Oh… 🤦‍♂️ sorry about that. Easy fix.

---

<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: [13 maart 2019 om 09:16 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/58 "2019-03-13T09:16:24Z")

</div>

I’ve made some improvement here. For sites using the local file store for uploads, the favicon upload will be read directly from disk instead of fetching it over the network since the former is more efficient and reliable. In the case for sites using an external store, the fetching of the favicon file is also now more reliable since we don’t hardcode a max filesize anymore but instead use the filesize of the favicon upload. Do note that we’re planning to introduce a validation for site setting uploads which will restrict the size of the site setting uploads.

[https://github.com/discourse/discourse/pull/7160](https://github.com/discourse/discourse/pull/7160)

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [15 mei 2019 om 02:24 UTC](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952/61 "2019-05-15T02:24:13Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

[Vorige pagina](https://meta.discourse.org/t/favicon-is-failing-to-load-for-logged-in-users/104952.md?page=2)
