# Updating a category topic fails with the message «NoMethodError (undefined method \`inner\_html' for nil:NilClass)» when the topic's contents starts with a GitHub onebox

**URL:** https://meta.discourse.org/t/updating-a-category-topic-fails-with-the-message-nomethoderror-undefined-method-inner-html-for-nil-nilclass-when-the-topics-contents-starts-with-a-github-onebox/56785
**Category:** Bug
**Created:** [2. Februar 2017 um 12:03 UTC](https://meta.discourse.org/t/updating-a-category-topic-fails-with-the-message-nomethoderror-undefined-method-inner-html-for-nil-nilclass-when-the-topics-contents-starts-with-a-github-onebox/56785 "2017-02-02T12:03:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dmitry\_fedyuk](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dmitry_fedyuk/32/293153_2.png) [@dmitry\_fedyuk](https://meta.discourse.org/u/dmitry_fedyuk)
#### Post date: [2. Februar 2017 um 12:03 UTC](https://meta.discourse.org/t/updating-a-category-topic-fails-with-the-message-nomethoderror-undefined-method-inner-html-for-nil-nilclass-when-the-topics-contents-starts-with-a-github-onebox/56785/1 "2017-02-02T12:03:56Z")

</div>

### Step 1

 ![](https://global.discourse-cdn.com/meta/original/3X/5/b/5bf45c5936c71a4dbfa67980d34ec65622ad0e08.png)

### Step 2

 ![](https://global.discourse-cdn.com/meta/original/3X/3/e/3e64d41205bef3333ab50944831a0d878a62767c.png)

### The log entry:

> NoMethodError (undefined method `inner_html' for nil:NilClass) lib/post_revisor.rb:445:in `update\_category\_description’

Stack trace:

```plaintext
lib/post_revisor.rb:445:in `update_category_description'
lib/post_revisor.rb:428:in `revise_topic'
lib/post_revisor.rb:163:in `block in revise!'
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.7.1/lib/active_record/transactions.rb:220:in `transaction'
lib/post_revisor.rb:151:in `revise!'
app/controllers/posts_controller.rb:194:in `update'	

```

 ![](https://global.discourse-cdn.com/meta/original/3X/e/e/eeb2f2fe5c06e622c66e4c7d7904e9c832b3f58c.png)

 ![](https://global.discourse-cdn.com/meta/original/3X/3/b/3bd6cbbb17a43efcbc3076cb560e1971e0ddb0f5.png)

---

<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: [3. Februar 2017 um 03:53 UTC](https://meta.discourse.org/t/updating-a-category-topic-fails-with-the-message-nomethoderror-undefined-method-inner-html-for-nil-nilclass-when-the-topics-contents-starts-with-a-github-onebox/56785/2 "2017-02-03T03:53:18Z")

</div>

This is unsupported and will not be “fixed”. The category definition needs actual text, not a onebox.

---

<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: [3. Februar 2017 um 03:53 UTC](https://meta.discourse.org/t/updating-a-category-topic-fails-with-the-message-nomethoderror-undefined-method-inner-html-for-nil-nilclass-when-the-topics-contents-starts-with-a-github-onebox/56785/3 "2017-02-03T03:53:20Z")

</div>


