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 :-(
source share