Hey folks, if i hit the preview button of any of my sites...it directs me to a 404 Page saying "503 - Page not found"...
It's a neraly clean revo install and i have no idea why he's doing it :/ only thing i did was to install a plugin:
1
//make sure our plugin does not run on the mgr context (the manager)
if($modx->context->get('key') != "mgr"){
//grab the current domain from the http_host option
switch ($modx->getOption('http_host')) {
case 'en.example.com':
//switch the context
$modx->switchContext('en');
//set the cultureKey
$modx->setOption('cultureKey', 'en');
break;
default:
// Set the default language/context here
$modx->switchContext('chinese');
$modx->setOption('cultureKey', 'zh');
break;
}
}
anybody got a idea?