SharePoint 2010 - Publishing Site. I created one with several publishing webs underit. I saved the sitecollection/rootweb as a rootweb.wsp. I created a new webapp, new sitecollection (without picking site template). Then I turned on the publishing features in the new webapp at the site collection level and applied the rootweb.wsp template.
The webapp comes up fine, but I am not able to edit the pages. Edit page gives "System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.". I cant even get to the Site Settings | Page Layouts and templates. (Same error). Then I checked the Master Pages gallery. While the files are there, I see the Associated Content Type column set to "#VALUE". So something is messed up with the master page gallery. Checking out some (not all) files gives error "Failed to set the value of Associated Content Type Column".
Any one see such a behaviour with creating a publishing site from a site template? Appreciate any help!