I recently got the following error trying to activate the Plumsail Workflow Action Pack on a newly built site:
Publishing features are not enabled on the site.
Activating Plumsail used to work fine, I looked at one of our old sites and deactivated the feature, upon
attempting to reactivate it I got this error again.
Sorry, I didn’t notice this is SharePoint Online issue.
This is the hidden feature that should be activated on the site automatically.
Looks like in your case it wasn’t activated.
To fix it you can try to reactivate solution or activate the feature manually, as an example you can use the following javascript snippet via browser developer console (press F12 and navigate to console tab to open it):
[code](function(featureId, enable) {
var clientContext = new SP.ClientContext.get_current();
var featureGuid = new SP.Guid(’{’ + featureId + ‘}’);
var webFeatures = clientContext.get_site().get_features();
})(’(function(featureId, enable) {
var clientContext = new SP.ClientContext.get_current();
var featureGuid = new SP.Guid(’{’ + featureId + ‘}’);
var webFeatures = clientContext.get_web().get_features();
Write-Host “Ended at $(Get-Date)” -ForegroundColor Green[/code]
This appears to work fine, although I am confused why the solution stopped working - it was working fine a couple of weeks ago, with no changes made to the environment.