# 500 Error when editing an existing post

**URL:** <https://meta.discourse.org/t/500-error-when-editing-an-existing-post/53594>\
**Category:** Bug\
**Created:** [November 30, 2016, 7:52pm UTC](https://meta.discourse.org/t/500-error-when-editing-an-existing-post/53594 "2016-11-30T19:52:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![watchmanmonitor](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/watchmanmonitor/32/430970_2.png) [@watchmanmonitor](https://meta.discourse.org/u/watchmanmonitor)\
**Post date:** [November 30, 2016, 7:52pm UTC](https://meta.discourse.org/t/500-error-when-editing-an-existing-post/53594/1 "2016-11-30T19:52:48Z")

</div>

I’ve had this twice now when editing an older topic in my discourse. The second was after a full docker update about 20 minutes ago.

Repro:

- Find an old article
- Edit it, in my case making a number of words into http links using command-k and pasting in the URL
- Save the article

I get a 500 error shown on screen. I try to save again, and it works.

```plaintext
ActiveRecord::StatementInvalid (PG::InFailedSqlTransaction: ERROR: current transaction is aborted, commands ignored until end of transaction block
: SELECT "topics".* FROM "topics" WHERE ("topics"."deleted_at" IS NULL) AND "topics"."id" = 1072 LIMIT 1)
/var/www/discourse/vendor/bundle/ruby/2.3.0/gems/rack-mini-profiler-0.10.1/lib/patches/db/pg.rb:93:in `exec'

```

Stacktrace

> <https://gist.github.com/YesThatAllen/ac922b2a6a33713cee67ab2585da424e>

I’m using these plugins:

```plaintext
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/joebuhlig/discourse-feature-voting.git
          - git clone --branch watchman-community https://github.com/watchmanmonitoring/discourse-saml.git
          - git clone https://github.com/discourse/discourse-slack-official.git

```

What might be happening here?

---

_[View the full topic](https://meta.discourse.org/t/500-error-when-editing-an-existing-post/53594)._
