Adding New Category crashes the whole forum

AI-generated summary

User chi 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 suspected a known bug with null category descriptions and asked if chi was on the latest version — chi confirmed they were. Falco 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. After following the guidance, chi 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.

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_

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.

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

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.

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

Thanks. :slight_smile:

@Falco site is live now. Thank you. :slight_smile: