Erro while trying to activate SharePoint server publishing infrastrure feature

sns 9,236 Reputation points
2021-08-14T10:58:46.807+00:00

I am trying to activate SharePoint server publishing feature in sharepoint online site, I got below error. Please help
123130-error.png

and other question is I could activate same feature for other site collection, however I dont find option to see "Master pages and Lay outs" Option" Please help . u can see below screeshot

123293-whereismasterpageandlayout.png

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,685 questions
0 comments No comments
{count} votes

Accepted answer
  1. Echo Du_MSFT 17,161 Reputation points
    2021-08-16T05:51:14.447+00:00

    Hi @sns ,

    You can use the below PnP PowerShell command to enable publishing feature:

    https://tenant.sharepoint.com/sites/sitename  
    #SharePoint Server Publishing Infrastructure of Site Collection  
    Enable-PnPFeature -Identity f6924d36-2fa8-4f0b-b16d-06b7250180fa -force -Scope site   
    #SharePoint Server Publishing of Site   
    Enable-PnPFeature -Identity 94c94ca6-b32f-4da9-a9e3-1f3d343d7ecb -force -Scope web   
    

    123407-sharepoint-server-publishing-infrastructure.png
    123464-sharepoint-server-publishing.png

    For the "Master Page and Page Layout" link disappears this problem, please make sure that SharePoint Server Publishing feature and SharePoint Server Publishing Infrastructure feature are activated.

    123429-site-settings.png

    Thanks,
    Echo Du

    ===================================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


1 additional answer

Sort by: Most helpful
  1. Serkar Aydin 36 Reputation points
    2021-08-14T11:08:20.037+00:00

    Have you done it under sitecollection features?@sns


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.