# Adding New Category crashes the whole forum

**URL:** <https://meta.discourse.org/t/adding-new-category-crashes-the-whole-forum/67397>\
**Category:** Product Support\
**Created:** [August 3, 2017, 5:17pm UTC](https://meta.discourse.org/t/adding-new-category-crashes-the-whole-forum/67397 "2017-08-03T17:17:38Z")\
**Posts on this page:** 7\
**Page:** 1

## AI-generated summary

User [chi](/t/-/67397/1) reported that creating a new category caused their Discourse forum to crash, displaying a blank page except for logs showing an `ActionView::Template::Error` related to `html_safe` being called on `nil`. [Falco](/t/-/67397/2) suspected a known bug with null category descriptions and asked if chi was on the latest version — chi confirmed they were. [Falco](/t/-/67397/4) then suggested manually updating via `/admin/upgrade`, but chi noted the update button was not clickable, asking if they should upgrade `docker_manager` first [chi](/t/-/67397/5). After following the guidance, [chi](/t/-/67397/6) confirmed the site was back online and thanked Falco. The issue appears to have been resolved by updating or reinitializing the instance, though the exact fix wasn’t detailed beyond the manual upgrade attempt.

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://meta.discourse.org/u/chi)\
**Post date:** [August 3, 2017, 5:17pm UTC](https://meta.discourse.org/t/adding-new-category-crashes-the-whole-forum/67397/1 "2017-08-03T17:17:38Z")

</div>

Hi I have created a new category and it crashes. How to make it work again? Currently, it’s just blank. I have restarted the app. Same result blank except for the /logs.

Thanks to anyone who can help.

Here are the logs:

```
ActionView::Template::Error (undefined method `html_safe' for nil:NilClass Did you mean? html_safe?) /var/www/discourse/app/views/categories/index.html.erb:9:in `block in _app_views_categories_index_

ActionView::Template::Error (undefined method `html_safe' for nil:NilClass Did you mean? html_safe?) /var/www/discourse/app/views/categories/index.html.erb:9:in `block in _app_views_categories_index_

ActionView::Template::Error (undefined method `html_safe' for nil:NilClass Did you mean? html_safe?) /var/www/discourse/app/views/categories/index.html.erb:9:in `block in _app_views_categories_index_

```

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [August 3, 2017, 5:22pm UTC](https://meta.discourse.org/t/adding-new-category-crashes-the-whole-forum/67397/2 "2017-08-03T17:22:08Z")

</div>

Are you on latest Discourse? We had a bug here when the description was null, but I believe we got a PR to fix that.

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://meta.discourse.org/u/chi)\
**Post date:** [August 3, 2017, 5:23pm UTC](https://meta.discourse.org/t/adding-new-category-crashes-the-whole-forum/67397/3 "2017-08-03T17:23:57Z")

</div>

Yes, I am. How do I now fix it, so that the site will be live again? Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [August 3, 2017, 5:35pm UTC](https://meta.discourse.org/t/adding-new-category-crashes-the-whole-forum/67397/4 "2017-08-03T17:35:11Z")

</div>

Can you please go to `/admin/upgrade` page and updated manually? I just created a new category locally and I can’t repro this problem.

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://meta.discourse.org/u/chi)\
**Post date:** [August 3, 2017, 5:37pm UTC](https://meta.discourse.org/t/adding-new-category-crashes-the-whole-forum/67397/5 "2017-08-03T17:37:32Z")

</div>

The update to latest version isn’t clickable - should I upgrade the docker\_manager first?

Thanks. 🙂

 ![18 AM](https://global.discourse-cdn.com/meta/original/3X/e/6/e6afd48a941b3a30228b3b18f012eb8577c06666.png)

---

<div class="post-metadata">

**Author:** ![chi](https://avatars.discourse-cdn.com/v4/letter/c/0ea827/32.png) [@chi](https://meta.discourse.org/u/chi)\
**Post date:** [August 3, 2017, 6:02pm UTC](https://meta.discourse.org/t/adding-new-category-crashes-the-whole-forum/67397/6 "2017-08-03T18:02:30Z")

</div>

@Falco site is live now. Thank you. 🙂

---

<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:** [August 3, 2017, 7:46pm UTC](https://meta.discourse.org/t/adding-new-category-crashes-the-whole-forum/67397/7 "2017-08-03T19:46:59Z")

</div>

Closed on August 3, 2017, 7:46pm UTC


