Thursday, May 28, 2015

Publishing Features for Site Collection & Web

If you are going to created & deploy the custom master page then you should activate the following publishing features :

Display Name PublishingSite
Title SharePoint Server Publishing Infrastructure
Scope Site
ID f6924d36-2fa8-4f0b-b16d-06b7250180fa
Description Provides centralized libraries, content types, master pages and page layouts and enables page scheduling and other publishing functionality for a site collection.
Display Name PublishingResources
Title Publishing Resources
Scope Site
ID aebc918d-b20f-4a11-a1db-9ed84d79c87e
Description Enable Publishing for site collection.
Display Name Publishing
Title Publishing
Scope Web
ID 22a9ef51-737b-4ff2-9346-694633fe4416
Description Enable Publishing in a web.
Display Name PublishingLayouts
Title Page Layouts and Master Pages Pack
Scope Site
ID d3f51be2-38a8-4e44-ba84-940d35be1566
Description Publishing Layouts
Display Name PublishingWeb
Title SharePoint Server Publishing
Scope Web
ID 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb
Description Create a Web page library as well as supporting libraries to create and publish pages based on page layouts.

Monday, May 25, 2015

Unable to create publishing pages in the pages library in SharePoint 2013

Reproduction Steps:
1) Browse to:
2) site Actions
3) View All Site Content
4) Pages
5) Library Tools > Documents
6) New Document
7) Page
8) Get an error message saying:
An unexpected error has occurred.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 5a3ab0c7-9b95-4c20-a5a7-04637fe0a120
Date and Time: 2013/12/04 04:19:04 PM
When you pull the ULS logs you see:
Microsoft.SharePoint.Publishing.InvalidPublishingWebException: The site is not valid. The ‘Pages’ document library is missing.
at Microsoft.SharePoint.Publishing.PublishingWeb.GetPublishingListWithCleanup(PublishingListType list, Boolean throwExceptionOnInvalidWeb)
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.BasePageSettingsPage.get_PageListRoot()
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.BasePageSettingsPage.SetParentUrlLabel()
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.BasePageSettingsPage.LoadValues()
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.CreatePagePage.LoadValues()
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.BasePageSettingsPage.OnLoad(EventArgs e)
at Microsoft.SharePoint.Publishing.Internal.CodeBehind.CreatePagePage.OnLoad(EventArgs e)
at System.Web.UI.Control.LoadRecursive()
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
Get customer permission to disable publishing at the Site and Web level then run the following:
Disable-SPFeature –identity “publishingweb” -URL “” -force
Disable-SPFeature –identity “PublishingLayouts” -URL “” -force
Disable-SPFeature –identity “Publishing” -URL “” -force
Disable-SPFeature –identity “PublishingResources” -URL “” -force
Disable-SPFeature –identity “publishingSite” -URL “” -force
Confirm that publishing is not active on the Site Collection or Site Level through the UI.
Next we need to allow the Pages library to be deleted by running the following PowerShell script:
$web = Get-SPWeb “”
$list = $web.Lists[“Pages”]
$list.AllowDeletion = $True
View All Site Content > Pages > Library Settings > Delete this document library
$web = Get-SPWeb “”
$list = $web.Lists[“Images”]
$list.AllowDeletion = $True
View All Site Content > Images> Library Settings > Delete this document library
Enable-SPFeature –identity “publishingSite” -URL “” -force
Enable-SPFeature –identity “PublishingResources” -URL “” -force
Enable-SPFeature –identity “Publishing” -URL “” -force
Enable-SPFeature –identity “PublishingLayouts” -URL “” -force
Enable-SPFeature –identity “publishingweb” -URL “” -force
Confirm the issue is now resolved by trying to create a publishing page in the Pages library.