다음을 통해 공유


The site is not valid. The 'Pages' document library is missing.

ULS Log tells me that:

The site is not valid. The 'Pages' document library is missing. ......

 

Solution to this problem was really simple.

I've found a blogentry on blogs.technet.com, which tells me to update the "PAGES ID", and it worked well.

 

 

$web = get-spweb "https://site-collection/path-to-affected-site"

$correctId = $web.Lists["Pages"].ID

$web.AllProperties["__PagesListId"] = $correctId.ToString()

$web.Update()

 

$web.AllProperties["__PublishingFeatureActivated"] = "True"

$web.Update()

Comments

  • Anonymous
    January 01, 2003
    Good to know, thank you.
  • Anonymous
    August 14, 2014
    Thank you, this fixed it
  • Anonymous
    August 14, 2014
    The comment has been removed