Activate the site collection publishing feature gives error: The content type “Page Layout” at “/teams/T200001/_catalogs/masterpage” is read only
-
01-10-2020 - |
Question
I have a sp 2010 site collection. When I try to activate the site collection "SharePoint Server Publishing Infrastructure" feature I got this error:
The content type "Page Layout" at "/teams/T200001/_catalogs/masterpage" is read only.
What is going wrong?
Solution
- Go to Site Content Types, then, go to the Document Content Types section
- Click Document in that section
- Click Advanced on the Site Content Types for that content type
- In the Read Only section of that page click YES
- Click OK
Source: Geoff Evelyn's answer here: https://social.technet.microsoft.com/Forums/en-US/bc53d0ff-b7b4-4cc3-b3e9-87af23f8ba8e/powershell-command-to-set-the-masterpage-page-layout-content-type-readonly-to-no?forum=sharepointadminprevious
Or
$w = get-web http://myweb $list = $w.Lists["_catalogs/masterpage"] foreach ($item in $list) {$item.ReadOnly = $false $item.Update()} $w.Dispose()
Source: Chilly Moon's answer here: https://social.technet.microsoft.com/Forums/en-US/bc53d0ff-b7b4-4cc3-b3e9-87af23f8ba8e/powershell-command-to-set-the-masterpage-page-layout-content-type-readonly-to-no?forum=sharepointadminprevious