We did a migration from WSS 3.0 to SharePoint foundation 2010 using database attach method. The web site is running fine but I am not able to create any new sub sites using Team Site template. I am able to create a blank site though. It gives an unexpected error with different correlation ID every time.
This is full error on the SP Shell
New-SPWeb : Object reference not set to an instance of an object.
At line:1 char:10
+ New-SPWeb <<<< -url http://infovm-bdca/aa -name "Test" -template STS#0 -AddToTopNav -UseParentTo
pNav
+ CategoryInfo : InvalidData: (Microsoft.Share....SPCmdletNewWeb:SPCmdletNewWeb) [New
-SPWeb], SPException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletNewWeb