# One category throws 500 Internal Server Error after update

**URL:** https://meta.discourse.org/t/one-category-throws-500-internal-server-error-after-update/247227
**Category:** Self-hosting
**Created:** [November 30, 2022, 6:14pm UTC](https://meta.discourse.org/t/one-category-throws-500-internal-server-error-after-update/247227 "2022-11-30T18:14:41Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![leonardo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leonardo/32/228634_2.png) [@leonardo](https://meta.discourse.org/u/leonardo)
#### Post date: [December 1, 2022, 2:47am UTC](https://meta.discourse.org/t/one-category-throws-500-internal-server-error-after-update/247227/6 "2022-12-01T02:47:27Z")

</div>

Sorry, I failed to see the forest for the trees! [The site](https://krita-artists.org/) is very clearly up so Postgres is not broken, and the PG error you first quoted must have been some transient error in the past.

> [@raghukamath](#):
>
> ```plaintext
> NoMethodError (undefined method `include?' for nil:NilClass) lib/excerpt_parser.rb:139:in `start_element' lib/excerpt_parser.rb:36:in `block in get_excerpt' lib/excerpt_parser.rb:35:in `catch' lib/exc 
> 
> ```

This is a bug which has been fixed by this commit just a short while ago:

> **[FIX: Handle null svg class for excerpt parsing (#19276) ·...](https://github.com/discourse/discourse/commit/d516c575fde)**
>
> Follow-up to 9d50790530459535164870bd49e712c30d2d5e8e
> 
> In certain cases the svg may not a class, so we just
> need safe navigation to avoid an error here.

If you update Discourse again now, the error should go away.

---

_[View the full topic](https://meta.discourse.org/t/one-category-throws-500-internal-server-error-after-update/247227)._
