Hi, I need this to work today (22th of december 2010) or I’m in real big trouble... So please help me!
I tried to install following internationalization option:
http://churn.butter.com.hk/posts/2010/08/internationalization-in-modx-revolution.html
My ’web’ context works fine, but I’m getting a ’Error 503 Site temporarily unavailable’ error on the other language contexts:
contexts: web, nl, fr, de
domains: www.domain.com, nl.domain.com, fr.domain.com, de.domain.com
copied index.php and core.config.php to the subfolders nl, fr, de on the server and changed the following line in index.php:
$modx->initialize('web');
Added the cultureKey and site_url to all the contexts and installed following gateway plugin:
<?php
//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 'www.domain.com':
//switch the context
$modx->switchContext('web');
//set the cultureKey
$modx->setOption('cultureKey', 'en');
break;
case 'nl.domain.com':
//switch the context
$modx->switchContext('nl');
//set the cultureKey
$modx->setOption('cultureKey', 'nl');
break;
case 'fr.domain.com':
//switch the context
$modx->switchContext('fr');
//set the cultureKey
$modx->setOption('cultureKey', 'fr');
break;
case 'de.domain.com':
//switch the context
$modx->switchContext('de');
//set the cultureKey
$modx->setOption('cultureKey', 'de');
break;
default:
// Set the default language/context here
$modx->switchContext('web');
$modx->setOption('cultureKey', 'en');
break;
}
}?>
Already tried to clear the cache, but I’m still getting the 503 error
For now there are no .htaccess files and friendly urls are disabled. I’m using Revo 2.06, but had the same problem in 2.05
Am I missing something? something wrong with the gateway plugin?