I have created an Enterprise Wiki site on SharePoint 2010.
I have added some pages to the wiki - that worked fine.
By default, it seems that an Enterprise Wiki has publishing turned off. If I activate the 'Publishing' site level feature, I can still add pages okay. But if I then deactivate the Publishing feature, this seems to completely and utterly break any wikis on the site:
I can't create any new pages: I get an 'unexpected error', which has this in the ULS logs:
System.ArgumentException: Invalid SPListItem. The SPListItem provided is not compatible with a Publishing Page.
Even more strange: if I then re-activate the publishing feature, I can add new pages again, but for some reason it uses the 'body only' page template - you don't get the nice 'edit this page' link and modified by info at the top of the page, or the categories / ratings doen the right hand side.
Has anyone seen this before and can suggest a resolution? It looks like I will have to re-create the wiki site again and try migrating all the content over. I'm surprised that activating and deactivating the publishing feature will permanently wreack any wiki content? It seems reproducible so maybe can be classed as a bug, or at least there should be a health warning somewhere that you shoudl never activate publishing on wiki sites?