0

I'm facing this issues when i'm creating pages under a site collection, sometimes even in subsites I'm not able to create pages.enter image description here

How can this be corrected?

2
  • Is publishing feature activated ? Jan 13, 2016 at 6:37
  • Have you created sites based on a template that had publishing feature activated? Jan 13, 2016 at 7:56

1 Answer 1

0

To fix the issue it is required to update the value of the __PagesListId property value to match the ID of the Pages library.

This can be done (e.g.) through the following Powershell script:

$web = get-spweb http://site-collection/path-to-affected-site
$correctId = $web.Lists["Pages"].ID
$web.AllProperties["__PagesListId"] = $correctId.ToString()
$web.Update()
4
  • do we need to run for each subsite or need to run in root site ?? i have around 100 subsite ..
    – sivajn
    Jan 13, 2016 at 6:47
  • Using this You need to run on each subsite...:( Jan 13, 2016 at 6:58
  • omg! is there any script to run in all subsites in single shot???
    – sivajn
    Jan 13, 2016 at 7:02
  • First of all try to activate - deactivate "SharePoint Server Publishing Infrastructure" feature and check Pages library and then after activate - deactivate "SharePoint Server Publishing" (site feature). Jan 13, 2016 at 7:03

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.