# Approve post in closed topic leads to internal server error

**URL:** <https://meta.discourse.org/t/approve-post-in-closed-topic-leads-to-internal-server-error/45365>\
**Category:** Bug\
**Created:** [Juin 7, 2016, 10:21 UTC](https://meta.discourse.org/t/approve-post-in-closed-topic-leads-to-internal-server-error/45365 "2016-06-07T10:21:32Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)\
**Post date:** [Juin 24, 2016, 10:31 UTC](https://meta.discourse.org/t/approve-post-in-closed-topic-leads-to-internal-server-error/45365/6 "2016-06-24T10:31:39Z")

</div>

> [@chipi92](#):
>
> Close the thread.  
> Try to approve the post leads to 500 Internal Server error popup.

Yes, that is correct. If the topic is closed or deleted, approving the post (in that topic) should not work. I agree that error message can be improved. Done via:

[https://github.com/discourse/discourse/commit/3232ce8265a72a8cca6058fbcf1e670d41dd158f](https://github.com/discourse/discourse/commit/3232ce8265a72a8cca6058fbcf1e670d41dd158f)

Now the error message will be:

> Something has gone wrong. Perhaps this topic was closed or deleted while you were looking at it?

---

_[View the full topic](https://meta.discourse.org/t/approve-post-in-closed-topic-leads-to-internal-server-error/45365)._
