Unable to activate SharePoint Server Publishing site feature in SharePoint 2013

Recently in one of our requirement, we were in need to activate the SharePoint Server Publishing feature in Site collection level as well as in the site level. We were able to activate “SharePoint Server Publishing Infrastructure” feature at the site collection level, but when we tried to activate the “SharePoint Server Publishing” at the site level, we got the error which says:

Sorry, something went wrong An unexpected error has occurred. Technical Details

SharePoint deveopment training course

Troubleshoot issues with Microsoft SharePoint Foundation.

Correlation ID:{our correlation id}

Then we found out that we need to activate the feature using PowerShell command or SharePoint Management Shell with force. The command is below:

$siteUrl = “http://SiteURL”
$siteCollection = Get-SPSite $siteUrl
Enable-SPFeature “PublishingSite” -Url $siteCollection.Url -force
Enable-SPFeature “PublishingWeb” -Url $siteCollection.Url -force

Read some SharePoint PowerShell tutorials:

Hope this will be helpful.

Check out Best Alternative to InfoPath -> Try Now

free sharepoint training

SharePoint Online FREE Training

JOIN a FREE SharePoint Video Course (3 Part Video Series)


About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →