Could not create publishing site

Issue: Cannot Create a subsite based on Publishing Site template  or unable to enable publishing feature on a site. Symptoms: Whenever we try to create a subsite based on publishing template or try to activate the publishing feature it fails with the following error: Provisioning did not succeed. Details:Failed to initialize some site properties for…

1