# Converting a topic to a wiki returns a 500 error

**URL:** <https://meta.discourse.org/t/converting-a-topic-to-a-wiki-returns-a-500-error/70660>\
**Category:** Bug\
**Created:** [2017 年9 月 24 日 05:19 UTC](https://meta.discourse.org/t/converting-a-topic-to-a-wiki-returns-a-500-error/70660 "2017-09-24T05:19:07Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

作者： ![southpaw](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/southpaw/32/79352_2.png) [@southpaw](https://meta.discourse.org/u/southpaw)\
发布日期： [2017 年9 月 24 日 05:19 UTC](https://meta.discourse.org/t/converting-a-topic-to-a-wiki-returns-a-500-error/70660/1 "2017-09-24T05:19:07Z")

</div>

Discourse 1.9.0.beta8

Steps to reproduce:  
Create a topic  
Covert the topic to a Wiki with the “Make Wiki” option.  
If it does load after converting to Wiki, refresh the page.

Result:

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

The topic appears in activity feeds:

![image](https://global.discourse-cdn.com/meta/original/3X/1/5/159da7f37ed7a54e1aa49a258799635c59eec112.png)

Clicking it in the activity feed results in:

 ![image](https://global.discourse-cdn.com/meta/original/3X/6/3/636882eed5e688d47ee5e440647cf5cd276847b2.png)

Error logs:

2   
OpenSSL::PKey::RSAError (Neither PUB key nor PRIV key: nested asn1 error) /var/www/discourse/app/controllers/user\_api\_keys\_controller.rb:138:in `initialize’  
12:08 am

5   
NoMethodError (undefined method `updated_at' for nil:NilClass) /var/www/discourse/app/serializers/post_serializer.rb:358:in `last\_wiki\_edit’  
12:59 am

10   
NoMethodError (undefined method `updated_at' for nil:NilClass) /var/www/discourse/app/serializers/post_serializer.rb:358:in `last\_wiki\_edit’  
1:02 am

38   
NoMethodError (undefined method `updated_at' for nil:NilClass) /var/www/discourse/app/serializers/post_serializer.rb:358:in `last\_wiki\_edit’

(Please let me know if you need the specifics from any of those errors. I had included them, but exceeded a character limit for the post.)

---

_[View the full topic](https://meta.discourse.org/t/converting-a-topic-to-a-wiki-returns-a-500-error/70660)._
