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
Microsoft 365 and Office | SharePoint | Development
Windows for business | Windows Server | Devices and deployment | Set up, install, or upgrade
{count} votes

1 answer

Sort by: Most helpful
  1. CaseyYang-MSFT 10,461 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.


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.