SharePoint 2010 - The site is not valid. The 'Pages' document library is missing
Issue:
If you're encountering the following error, via ULS, or the event log, due to a page library,
This site is not valid. The 'Pages' document library is missing.
The issue can be remedied with a quick powershell script.
Workaround:
Perform the following script on the page library causing the issue, and it will remove the error.
If you're encountering the following error, via ULS, or the event log, due to a page library,
This site is not valid. The 'Pages' document library is missing.
The issue can be remedied with a quick powershell script.
Workaround:
Perform the following script on the page library causing the issue, and it will remove the error.
$web = get-spweb http://somesite/somesubsite $pageId = $web.Lists["Pages"].ID $web.AllProperties["__PagesListId"] = $pageId.ToString() $web.Update()
Comments