500 Internal Server Error when deleting hidden posts

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 :wink:

Kind regards,
JM

1 Like

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

2 Likes

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

Anything in forum.example.com/logs ?

1 Like

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

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.

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

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.

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

1 Like