超级复杂:删除以前的根网站后,在新网站集中启用SharePoint 2010中的发布功能失败

val*_*val 6 publishing sharepoint-2010

这不是一个简单的站点操作| 网站设置| 等问题.这种方式更加复杂.

意外后,删除了的根站点 WITH publishing enabled,我创建了一个新的根网站,并试图激活它出版(根).它失败并显示指向SITE和WEB的错误消息:

现场

 The feature being activated is a Site scoped feature which   
 has a dependency on a Site Collection scoped feature which has   
 not been activated. Please activate the following feature before   
 trying again: SharePoint Server Publishing Infrastructure   
 f6924d36-2fa8-4f0b-b16d-06b7250180fa "
Run Code Online (Sandbox Code Playgroud)

卷筒纸

The Site scoped feature being activated has a dependency on hidden   
Site scoped feature     

'FeatureDefinition/22a9ef51-737b-4ff2-9346-694633fe4416'  
 (ID: '22a9ef51-737b-4ff2-9346-694633fe4416').   

Hidden features cannot be auto-activated across scopes.   
There may be one or more visible Site scoped features that   
auto-activate the dependent hidden feature."
Run Code Online (Sandbox Code Playgroud)

好的,没有恐慌!我认为这是因为启用的发布在某些内容中是有用的SP database.没问题.

我跑了
PowerShel Disable-SPFeature Publishing -Url "http://myrootsite", then Enable-SPFeature Publishing -Url "http:/myrootsite".

一半是固定的:我的错误消息的Web部分已经消失但是错误消息的站点部分仍在此处阻止发布.

我怎么能禁用" publishing on the "Site" level using the PowerShell and enable it again.
我有点堆叠在这里:-(

小智 10

问题:有时当我们尝试使用站点设置 - >站点操作 - >管理站点功能启用"站点发布功能"时,我们将收到以下错误."现场

正在激活的功能是站点范围功能,该功能依赖于尚未激活的网站集范围功能.请在重试之前激活以下功能:SharePoint Server发布基础结构f6924d36-2fa8-4f0b-b16d-06b7250180fa"

卷筒纸

正在激活的站点范围功能依赖于隐藏的站点范围功能'FeatureDefinition/22a9ef51-737b-4ff2-9346-694633fe4416'(ID:'22a9ef51-737b-4ff2-9346-694633fe4416').无法跨范围自动激活隐藏功能.可能存在一个或多个可见的站点范围功能,可自动激活从属隐藏功能."

解决方案: 要解决上述错误,首先我们需要使用"网站操作">"网站设置"启用"公开功能".在"网站集管理"列的"网站设置"页面上,选择"网站集功能".


val*_*val 4

嗯,这很复杂,因为不知何故 PowerShell Disable-SPFeature 无法同时解决 Web 和站点投诉。我不得不使用旧的且受信任的 stsadm 以及 SharePoint 抱怨的确切功能 id:

stsadm -o deactivatefeature -id f6924d36-2fa8-4f0b-b16d-06b7250180fa -url "http://myrootsiteurl -force
Run Code Online (Sandbox Code Playgroud)

(这里SP咳嗽一声“该功能未激活”)

然后:

stsadm -o activatefeature -id f6924d36-2fa8-4f0b-b16d-06b7250180fa -url "http://myrootsiteurl -force 
Run Code Online (Sandbox Code Playgroud)

一切都已修复:-)

不知道为什么Disable-SPFeature 一开始没有完成这项工作。现在一切都已解决,出版工作就像一个魅力。