# 500 Internal Server Error when deleting hidden posts

**URL:** https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366
**Category:** Bug
**Created:** [April 9, 2015, 3:31am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366 "2015-04-09T03:31:50Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![multicam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/multicam/32/98435_2.png) [@multicam](https://meta.discourse.org/u/multicam)
#### Post date: [April 9, 2015, 3:31am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/1 "2015-04-09T03:31:51Z")

</div>

I am getting consistent 500 Internal server error on ‘DELETE’ posts.

If this can help – from the browser console:

`
DELETE http://forum.thegraphicdesignschool.com/posts/destroy_many 500 
`

I am running a docker install on a Digital Ocean server.

Is there something I should allow on the server? I am a bit of a newbie with server admin 😉

Kind regards,  
JM

---

<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: [April 9, 2015, 4:01am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/2 "2015-04-09T04:01:10Z")

</div>

Need more info, what version, what are repro steps, does it happen for admins and for users doing a self delete, etc.

---

<div class="post-metadata">

### Author: ![multicam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/multicam/32/98435_2.png) [@multicam](https://meta.discourse.org/u/multicam)
#### Post date: [April 9, 2015, 4:06am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/3 "2015-04-09T04:06:11Z")

</div>

Thanks for the quick reply.

Version :: 1.3.0.beta4.

Doing some setup & tests with the default install.

We created 1 moderator, and she has added 4 replies to the Welcome topic.

I tried to delete them from her account and from the admin account – getting the same error message.

Kind regards,  
JM

---

<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: [April 9, 2015, 4:13am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/4 "2015-04-09T04:13:36Z")

</div>

Anything in [forum.example.com/logs](http://forum.example.com/logs) ?

---

<div class="post-metadata">

### Author: ![multicam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/multicam/32/98435_2.png) [@multicam](https://meta.discourse.org/u/multicam)
#### Post date: [April 9, 2015, 4:26am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/5 "2015-04-09T04:26:27Z")

</div>

Sure, here you are:

From the log:  
`
Discourse::InvalidParameters (post_ids)
`

Env:  
`
HTTP_HOST: forum.thegraphicdesignschool.com
REQUEST_URI: /posts/destroy_many
REQUEST_METHOD: DELETE
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_2) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36
HTTP_ACCEPT: /
HTTP_REFERER: http://forum.thegraphicdesignschool.com/t/welcome-to-the-graphic-design-school-forum/8
HTTP_X_FORWARDED_FOR: x.x.x.x
HTTP_X_REAL_IP: x.x.x.x
username: webmaster`

`
`

`params:
post_ids: 16,17,18,19
`

Did I mention that those posts are hidden? Also we can’t find a way to un-hide them.

Kind regards,  
JM

---

<div class="post-metadata">

### Author: ![multicam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/multicam/32/98435_2.png) [@multicam](https://meta.discourse.org/u/multicam)
#### Post date: [April 9, 2015, 5:17am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/6 "2015-04-09T05:17:07Z")

</div>

If that can help: we have undeleted those posts, and move them to a ‘purgatory’ topic, so they won’t appear in the post under consideration – Not sure if it’s that legit, but we can move along.

---

<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: [April 9, 2015, 5:44am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/7 "2015-04-09T05:44:59Z")

</div>

I believe you can use the post level staff wrench button to unhide them.

---

<div class="post-metadata">

### Author: ![multicam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/multicam/32/98435_2.png) [@multicam](https://meta.discourse.org/u/multicam)
#### Post date: [April 9, 2015, 5:52am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/8 "2015-04-09T05:52:42Z")

</div>

That’s what we did – Thanks  
I guess we need to get our heads around that delete/hide feature better.

Thanks a lot for your support.

---

<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: [April 9, 2015, 6:27am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/9 "2015-04-09T06:27:38Z")

</div>

There might still be a bug here around this scenario, though.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 26, 2020, 7:39am UTC](https://meta.discourse.org/t/500-internal-server-error-when-deleting-hidden-posts/27366/10 "2020-05-26T07:39:57Z")

</div>


