thanks, yea I suspect it may be FirstChildRedirect. seems to work fine without it although since I’m not the only one working on this the other developers across the ocean might need it so I don’t want to get rid of it for now.
Can you send over your version of FirstChildRedirect, I notice ours has some peculiarities: Here’s the code:
// HACK
// If you’re logged in as a manager, don’t redirect but
// instead show an instructions page on how to use MODx to
// modify their site. Also explain the template variablge
// change concept.
// Note: can’t use getLoginUserType because you have to be in the
// backend for that function to work.
// Further hack: only show this if you have the church admin role
$InstructionsChunkName = "ENAdminHelp";
$ChurchAdminRoleID = 2;
$DoRedirect = true;
if (isset($_SESSION[’mgrValidated’])) {
$info = $getUserInfo[$_SESSION[’mgrInternalKey’]];
$DoRedirect = !($info["role"] == $ChurchAdminRoleID);
}
if ($DoRedirect) {
if (!isset($id)) $id=$modx->documentIdentifier;
$children=$modx->getActiveChildren($id,’menuindex’,’ASC’);
$firstChildUrl = 0;
if (!$children===false) {
$firstChild = $children[0];
$firstChildUrl = $modx->makeUrl($firstChild[’id’]);
}
if ($firstChildUrl) {
// Danny:
// testing if this makes a difference to the headers() already sent out error we get at each page footer
//return $modx->sendRedirect($firstChildUrl,0,’REDIRECT_META’);
// nope, it doesn’t! seems to happen after the redirect

below is the original code
return $modx->sendRedirect($firstChildUrl);
} else {
return "<p>There are currently no pages here. Please check back later.</p>";
}
} else {
// display the instructions chunk
return $modx->getChunk($InstructionsChunkName);
}