Unable to create Publishing site or unable to activate publishing feature on SharePoint 2019

Anonymous
2021-07-06T05:07:49.297+00:00
  • We are unable to create publishing sites on our SharePoint 2019 on-prem environment, we get below error as shown on the screenshot.
  • We can create team site, however after creating teams site, if we try to activate the publishing infrastructure feature, it gives access enied error.111956-screen-shot-2021-07-05-at-75519-pm.png
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
2,707 questions
Windows Server Infrastructure
Windows Server Infrastructure
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Infrastructure: A Microsoft solution area focused on providing organizations with a cloud solution that supports their real-world needs and meets evolving regulatory requirements.
518 questions
{count} votes

1 answer

Sort by: Most helpful
  1. CaseyYang-MSFT 10,321 Reputation points
    2021-07-07T10:06:35.79+00:00

    Hi @Anonymous

    Is there anything has been changed before the issue occurs? You could try to use powershell to activate Publishing Feature.

    Site collection features:

    #Variables  
    $SiteURL="your site collection url"  
    $FeatureName = "PublishingSite"  
       
    #Check if publishing feature is already activated in the site collection  
    $Feature = Get-SPFeature -site $siteURL | Where-object {$_.DisplayName -eq $FeatureName}  
    if($Feature -eq $null)  
    {      
        #Enable the Publishing feature   
        Enable-SPFeature -Identity $FeatureName -url $SiteURL -Confirm:$False  
          
        Write-host "Publishing Feature Activated on $($SiteURL)" -ForegroundColor Green      
    }  
    else  
    {  
        Write-host "Publishing Feature is already Active on $($SiteURL)" -ForegroundColor Red  
    }  
    

    Site features:

    #Variables  
    $WebURL="http://sp/sites/caseytest"  
    $FeatureName = "PublishingWeb"  
       
    #Check if publishing feature is already activated in the site   
    $Feature = Get-SPFeature -Web $WebURL | Where-object {$_.DisplayName -eq $FeatureName}  
    if($Feature -eq $null)  
    {      
        #Enable the Publishing feature   
        Enable-SPFeature -Identity $FeatureName -url $WebURL -Confirm:$False  
          
        Write-host "Publishing Feature Activated on $($WebURL)" -ForegroundColor Green      
    }  
    else  
    {  
        Write-host "Publishing Feature is already Active on $($WebURL)" -ForegroundColor Red  
    }  
    

    Per your ULS log, have you tried to check permission for "_DeviceChannelMappings.aspx"? You could use SharePoint Designer 2013 to check the permission.
    114036-1.png114085-2.png


    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.