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

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/cc262141(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.
Leave a Comment
  • Please add 7 and 8 and type the answer here:
  • Post
Wiki - Revision Comment List(Revision Comment)
Sort by: Published Date | Most Recent | Most Useful
Comments
  • Richard Mueller edited Revision 5. Comment: Removed (en-US) from title, added tag

  • Arun Kumar Arora edited Revision 4. Comment: Added the tags

  • Craig Lussier edited Revision 3. Comment: added en-US to tags and title

  • Ed Price - MSFT edited Original. Comment: Updated formatting

Page 1 of 1 (4 items)
Wikis - Comment List
Sort by: Published Date | Most Recent | Most Useful
Posting comments is temporarily disabled until 10:00am PST on Saturday, December 14th. Thank you for your patience.
Comments
  • Ed Price - MSFT edited Original. Comment: Updated formatting

  • Great article! It's important that we get SharePoint how to and troubleshooting articles like this! Thanks!

  • Fantastic SP article..

  • Gokhan, Thanks for the comments

  • Craig Lussier edited Revision 3. Comment: added en-US to tags and title

  • Arun Kumar Arora edited Revision 4. Comment: Added the tags

  • Nice work done. Thanks

  • Thanks For the comments Arun

  • Richard Mueller edited Revision 5. Comment: Removed (en-US) from title, added tag

Page 1 of 1 (9 items)