# Granting a newly created badge with no default badge group causes errors

**URL:** <https://meta.discourse.org/t/granting-a-newly-created-badge-with-no-default-badge-group-causes-errors/60346>\
**Category:** Bug\
**Created:** [2017年四月3日 05:06 UTC](https://meta.discourse.org/t/granting-a-newly-created-badge-with-no-default-badge-group-causes-errors/60346 "2017-04-03T05:06:58Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![dylanh724](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dylanh724/32/119642_2.png) [@dylanh724](https://meta.discourse.org/u/dylanh724)\
**Post date:** [2017年四月3日 05:58 UTC](https://meta.discourse.org/t/granting-a-newly-created-badge-with-no-default-badge-group-causes-errors/60346/3 "2017-04-03T05:58:46Z")

</div>

> [@codinghorror](#):
>
> No repro here or on meta.

Actually, not quite true – I found this topic after some digging and it resolved it for me:

[https://meta.discourse.org/t/user-badges-500-internal-server-error/22459/8](https://meta.discourse.org/t/user-badges-500-internal-server-error/22459/8)

Pretty much, there should be a **default** group for every new badge created – if not, user’s badge page will crash if he has a badge that has no group. Since there was no warning or default, I didn’t think much of it about assigning it a group.

Similar to a .NET form where you have radio buttons - always have 1 checked by default or bad things happen.

---

_[View the full topic](https://meta.discourse.org/t/granting-a-newly-created-badge-with-no-default-badge-group-causes-errors/60346)._
