Sunday, June 12, 2011

SharePoint 2010: Unexpected error for Site Settings after creating site based on custom site template with alternate CSS

After creating a new site based on a custom site template that is using an alternate CSS file, you receive "An unexpected error has occurred" when trying to access Site Settings:


To fix this issue, run the following command in SharePoint 2010 Powershell:

$w = Get-SPWeb http://site/subsite; $w.AlternateHeader = $null; $w.Update()

Appears to be yet another bug in SharePoint 2010. Sigh...