Share via


SharePoint 2007 How to Change the Master Page of a Wiki Site

Recently someone requested me to change the default master page of a wiki site to something else. I designed a master page and uploaded that in the master page gallery.

However, when I went to site settings page there was no option of "Master Page" under look and feel. So I tried the usual way of directly going by URL and pasted this in URL _layouts/ChangeSitemasterpage.aspx...

I got an error on my screen as follows:

Invalid field name. {7581e709-5d87-42e7-9fe6-698ef5e86dd3}   at Microsoft.SharePoint.SPFieldCollection.GetFieldById(Guid fieldId, Boolean bThrowException) 
   at Microsoft.SharePoint.SPFieldCollection.get_Item(Guid id) 
   at Microsoft.SharePoint.Publishing.Internal.QueryBuilderHelper.AddExcludeObsoleteToQuery(StringBuilder builder, SPDocumentLibrary layoutLibrary) 
   at Microsoft.SharePoint.Publishing.PublishingSite.GetMasterPageLayouts(Boolean excludeObsolete) 
   at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaChromeSettingsPage.InitDataList() 
   at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaChromeSettingsPage.LoadValues() 
   at Microsoft.SharePoint.Publishing.Internal.CodeBehind.AreaChromeSettingsPage.OnLoad(EventArgs e) 
   at System.Web.UI.Control.LoadRecursive() 
   at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

I found the documentation about this error in a KB article http://support.microsoft.com/kb/2000827. I followed the steps but got stuck in a step where it was asking me to create a custom content type and to extend from the Publishing content type since this option was not listed over there in the drop-down of parent content type.

I found a very simple solution to this problem. I checked in my 12/Templates/Features folder and found that these content types are getting added by a hidden site collection feature "PublishingResources".

I activated the same on the site using the STSADM activate feature command here: http://technet.microsoft.com/en-us/library/cc262692(v=office.12).aspx 
So now the desired parent content type was added, and I was able to locate this in the drop down.

I followed rest of the steps in the KB article and it worked for me.