# Fout 500 bij het installeren van Avatar Size and Shape

**URL:** https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866
**Category:** Bug
**Tags:** avatar-size-shape
**Created:** [22 februari 2024 om 17:35 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866 "2024-02-22T17:35:30Z")
**Posts on this page:** 14
**Page:** 1

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [22 februari 2024 om 17:35 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/1 "2024-02-22T17:35:30Z")

</div>

hi, i get a “500 error” ☹

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [22 februari 2024 om 18:43 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/2 "2024-02-22T18:43:52Z")

</div>

Are you certain that comes from this component? Does it occur in [safe mode](https://meta.discourse.org/t/53504?silent=true) with _only_ themes disabled?

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [22 februari 2024 om 20:31 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/3 "2024-02-22T20:31:18Z")

</div>

yes, thats only with this component

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [22 februari 2024 om 20:55 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/4 "2024-02-22T20:55:14Z")

</div>

If you tried with only themes and theme components disabled via [safe mode](https://meta.discourse.org/t/53504?silent=true), then themes are not the issue, it’s a plugin issue. What plugins do you have installed?

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [22 februari 2024 om 21:25 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/5 "2024-02-22T21:25:55Z")

</div>

only the [Dark/Light Mode Toggle](https://meta.discourse.org/t/dark-light-mode-toggle/215585)

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [22 februari 2024 om 21:35 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/6 "2024-02-22T21:35:56Z")

</div>

That’s a theme, not a plugin. Could you check the admin/plugins page while in [safe mode](https://meta.discourse.org/t/53504?silent=true)?

---

<div class="post-metadata">

### Author: ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)
#### Post date: [22 februari 2024 om 21:43 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/7 "2024-02-22T21:43:21Z")

</div>

This is likely a side-effect of this change:

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

The default value of this component setting should be a string (e.g., `"0"`, or the type should `integer`).

> <https://github.com/discourse/discourse-avatar-component/blob/main/settings.yml#L52>

However, it’s probably unintentional considering it returns a 500 error. Previously, it seems the value was converted to a string [DEV: Centralise logic for validating a theme setting value by tgxworld · Pull Request #25764 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/25764/files#diff-332e654200eeaae8377858ca236e51fb62a51146f043b6efa01027900c7dade3)

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [22 februari 2024 om 21:45 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/8 "2024-02-22T21:45:53Z")

</div>

Strange, considering it didn’t cause any issues on amc, where I installed it and tested it (hence me asking about plugins)

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [25 februari 2024 om 12:14 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/9 "2024-02-25T12:14:04Z")

</div>

Thank you. I can do anything in my end?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [25 februari 2024 om 14:43 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/10 "2024-02-25T14:43:49Z")

</div>

when was that Discourse instance updated? The pr above was commited on Feb 19, so perhaps the amc forum hasn’t updated since before that.

> [@David\_Ghost](#):
>
> Thank you. I can do anything in my end?

No we will get it sorted out when a developer has a look at it. 🙂

---

<div class="post-metadata">

### Author: ![Firepup650](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/firepup650/32/465200_2.png) [@Firepup650](https://meta.discourse.org/u/Firepup650)
#### Post date: [25 februari 2024 om 18:54 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/12 "2024-02-25T18:54:26Z")

</div>

We usually update every few days, I guess we hadn’t updated recently enough though.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [27 februari 2024 om 07:30 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/15 "2024-02-27T07:30:17Z")

</div>

I think this has now been fixed in:

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

Could you give it a try and see it if works for you now?

---

<div class="post-metadata">

### Author: ![David\_Ghost](https://avatars.discourse-cdn.com/v4/letter/d/c37758/32.png) [@David\_Ghost](https://meta.discourse.org/u/David_Ghost)
#### Post date: [27 februari 2024 om 10:56 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/16 "2024-02-27T10:56:38Z")

</div>

It’s working fine now

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2 maart 2024 om 08:00 UTC](https://meta.discourse.org/t/error-500-when-installing-avatar-size-and-shape/296866/17 "2024-03-02T08:00:31Z")

</div>

This topic was automatically closed after 4 days. New replies are no longer allowed.
