I have been trying to work out how to create a SharePoint 2007 site template from a modified 'Collaboration Portal' which has the Publishing feature enabled. I noticed that the 'Save Site as Template' menu item is removed from the Look and Feel menu.
So I created a Site Template from SharePoint Designer, and this seemed to work. I used STSADM to add the template and then tried creating a new Site Collection from it.
Then I got this error when I tried to access the site I just created;
"This page is not using a valid page layout. To correct the problem, edit page settings and select a valid page layout."
So after much searching, I discovered that you cannot create a site template from a site with the Publishing feature enabled. :(
I was about to embark on creating a site definition and then I came across this post from Michael Gannotti....
Check it out.
I'm going to try this and then decide if I need a Site Definition.