hi mattsmith
sorry to responded ur post after long time..
i go through ur log files what i realised there may be some problem in the create-site.post.json.js present in the path Alfresco/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/modules.pls check the file .
i am posting the file check ur file with that so if there will be any problem u can easily find out..
hope that will help to solve ur problem..
create -site.post.json.js
function main()
{
// Get clients json request as a "normal" js object literal
var clientRequest = json.toString();
var clientJSON = eval('(' + clientRequest + ')');
// Call the repo to create the site
var scriptRemoteConnector = remote.connect("alfresco");
var repoResponse = scriptRemoteConnector.post("/api/sites", clientRequest, "application/json");
if (repoResponse.status == 401)
{
status.setCode(repoResponse.status, "error.loggedOut");
return;
}
else
{
var repoJSON = eval('(' + repoResponse + ')');
// Check if we got a positive result
if (repoJSON.shortName)
{
// Yes we did, now create the site in the webtier
var tokens = new Array();
tokens["siteid"] = repoJSON.shortName;
sitedata.newPreset(clientJSON.sitePreset, tokens);
model.success = true;
}
else if (repoJSON.status.code)
{
status.setCode(repoJSON.status.code, repoJSON.message);
return;
}
}
}
main();