i stumble upon modx error 500.
after adding into manager/index.php
error_reporting(E_ALL);
ini_set('display_errors','On');
i found unable to render header.tpl
the problem is path issue.
open core/config/core.config.php
and makesure you have set the full path to the server for:
$modx_core_path
$modx_processors_path
$modx_connectors_path
$modx_manager_path
$modx_base_path
example:
if (!defined('MODX_CORE_PATH')) {
$modx_core_path= 'C:/Domains/your_domain_here/wwwroot/core/';
define('MODX_CORE_PATH', $modx_core_path);
}
if (!defined('MODX_PROCESSORS_PATH')) {
$modx_processors_path= 'C:/Domains/your_domain_here/wwwroot/core/model/modx/processors/';
define('MODX_PROCESSORS_PATH', $modx_processors_path);
}
if (!defined('MODX_CONNECTORS_PATH')) {
$modx_connectors_path= 'C:/Domains/your_domain_here/wwwroot/connectors/';
$modx_connectors_url= '/connectors/';
define('MODX_CONNECTORS_PATH', $modx_connectors_path);
define('MODX_CONNECTORS_URL', $modx_connectors_url);
}
if (!defined('MODX_MANAGER_PATH')) {
$modx_manager_path= 'C:/Domains/your_domain_here/wwwroot/manager/';
$modx_manager_url= '/manager/';
define('MODX_MANAGER_PATH', $modx_manager_path);
define('MODX_MANAGER_URL', $modx_manager_url);
}
if (!defined('MODX_BASE_PATH')) {
$modx_base_path= 'C:/Domains/your_domain_here/wwwroot/';
$modx_base_url= '/';
define('MODX_BASE_PATH', $modx_base_path);
define('MODX_BASE_URL', $modx_base_url);
}
Next:
delete all contents in
core/cache/*
Finally, you will realize the js files in manager isnt working, due to a bug in modx
It wasnt fixed, comment off these line in manager/min/index.php works!
//if ($hasVirtualAssetsURL) {
// $min_serveOptions['minApp']['allowDirs'][] = MODX_ASSETS_PATH;
// $min_serveOptions['minApp']['virtualDirs'][MODX_ASSETS_URL] = MODX_ASSETS_PATH;
//}
No comments:
Post a Comment