I downloaded a hand-made equivalent to the SharePoint Server 2013 Publishing Feature here SharePoint Foundation 2013 Publishing Infrastructure. i'm on a single farm, running a SP Foundation 2013 with the last cumulative update.
I watched the Deployment.ps1 code, it's ok and use SharePoint Powershell methods. I ran it, and everything went well. Then I've reached my root site, and in the site settings > manage site features I saw the new SP solution deployed and installed, ready to be activated.
When I click on "Activate", it return a message like "an error has occurred" and without any useful information. even any informations at all.
If you already managed to install this solution can you please tell me what can it be ? My SharePoint version ? A bad installation ? Thanks a lot !
EDIT : I found on the logs 2 lines that should be the error :
Exception: System.ArgumentOutOfRangeException: [...] Parameter name : Type of content not found (ID : « 0x010100F2A9C1C92EF041A086F2FEEAA284FF80 »).
at Microsoft.SharePoint.Administration.SPElementDefinitionCollection.ProvisionContentTypeAndEventReceiverBindings(SPFeaturePropertyCollection props, SPSite site, SPWeb web, Boolean fForce)
These lines comes just after trying to activate the feature :
Feature Activation: Threw an exception, attempting to roll back. Feature 'SharePoint.Foundation.Publishing.Infrastructure.Web' (ID: 'e0f1805a-6501-42ad-9c56-60d4c8339c58').