Tuesday, January 22, 2013

modx windows 2008 manager unable to load

found that the minified have issues on windows 2008.
workaround is edit
manager/min/index.php
change:
$hasVirtualAssetsURL = empty($min_documentRoot) || strpos(MODX_ASSETS_PATH, $min_documentRoot) !== 0 || strpos(MODX_ASSETS_PATH, MODX_ASSETS_URL) === false || substr(MODX_ASSETS_PATH, 0, strpos(MODX_ASSETS_PATH, MODX_ASSETS_URL)) !== $min_documentRoot;

if ($hasVirtualAssetsURL) {
    $min_serveOptions['minApp']['allowDirs'][] = MODX_ASSETS_PATH;
    $min_serveOptions['minApp']['virtualDirs'][MODX_ASSETS_URL] = MODX_ASSETS_PATH;
}
to:

$hasVirtualAssetsURL = false;
$min_serveOptions['minApp']['allowDirs'][] = MODX_ASSETS_PATH;
if ($hasVirtualAssetsURL) {
    $min_serveOptions['minApp']['allowDirs'][] = MODX_ASSETS_PATH;
    $min_serveOptions['minApp']['virtualDirs'][MODX_ASSETS_URL] = MODX_ASSETS_PATH;
}

No comments: