10/22/12

The site template requires that the feature be installed in the farm or site collection.

The site template requires that the feature be installed in the farm or site collection

This message is usually generated when we try to create a new site from a site template, but the site template was built as a Sandboxed solution and depends on a site scope feature which may not be active or does not exist. To address this issue, open the SharePoint solution on Visual Studio 2010 or 2012. We should now look into the WebTemplates folder and open the ONet.xml file.

Look at the Configurations -> Site Features settings. Look for a custom feature that may be included there, and you may need to install on the site. If this is the case, you need to install that feature first or include it in your project, so it will be activated during the activation of the site template. If your web template does not need that site feature, you can remove it from the ONet.xml file all together. You just need to make sure that the feature is not a dependency in your project.

You can now build and package the solution again. We can now go back to SharePoint to deactivate and delete the previous solution. Upload and activate the new solution. You can try to create a new site with the new site template, and the error should not be raised anymore.