Super complicated: Publishing features in SharePoint 2010 in a new site collection after deleting the previous root site fails

This is not just a site action | Site Settings | etc. question. It is much more complicated.

After accidentally deleting the root site WITH publishing enabled I created a new root site and tried to activate publishing on it (in the root directory). It failed with an error message pointing to the SITE and WEB:

Website

  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 " 

Web

 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." 

OK, no panic !!! I think this was because the publication was allowed somewhere in the guts of the SP database . No problems.

I ran PowerShel Disable-SPFeature Publishing -Url "http://myrootsite", then Enable-SPFeature Publishing -Url "http:/myrootsite" .

Half fixed: my error message web part has disappeared, but the error message part of the site is still preventing publication here.

How to disable " publishing on the "Site" level using the PowerShell and enable it again .
I kinda flow down here :-(

+6
source share
2 answers

Problem: In some cases, when we try to enable the "Site Publishing Features" using the site settings → Site Actions → "Manage Site Features", we will receive the following error. "Website

An activated function is a node-bound function that depends on the scope associated with the site that has not been activated. Before you try again, activate the following function: SharePoint Server Publishing Infrastructure f6924d36-2fa8-4f0b-b16d-06b7250180fa

Web

The function of the activated site area is dependent on the hidden function, limited by the area 'FeatureDefinition / 22a9ef51-737b-4ff2-9346-694633fe4416' (ID: '22a9ef51-737b-4ff2-9346-694633fe4416'). Hidden functions cannot be automatically activated by area. There may be one or more visible functions with a scope that automatically activate a dependent hidden function.

Solution: To fix the above error, we first need to enable “publish feaures” using “Site Actions”> “Site Settings”. On the Site Settings page, in the Site Collection Administration column, select Site Organization Feature.

+10
source

Well, that was complicated, because for some reason PowerShell Disable-SPFeature did not do the job for both the Web and the site. I had to use the old and trusted stsadm with the exact id attribute that SharePoint complained about:

 stsadm -o deactivatefeature -id f6924d36-2fa8-4f0b-b16d-06b7250180fa -url "http://myrootsiteurl -force 

(Here SP coughs "this function is not activated")

Then:

 stsadm -o activatefeature -id f6924d36-2fa8-4f0b-b16d-06b7250180fa -url "http://myrootsiteurl -force 

and everything is fixed :-)

I do not know why Disable-SPFeature did not do this work in the first place. Now everything, if fixed, and the publication works like a charm.

+3
source

Source: https://habr.com/ru/post/909417/


All Articles