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


(Discourse.PRO) #1

Step 1

Step 2

The log entry:

NoMethodError (undefined method inner_html' for nil:NilClass) lib/post_revisor.rb:445:inupdate_category_description’

Stack trace:

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'	


(Jeff Atwood) #2

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


(Jeff Atwood) #3