Bug report
Summary
Upgrading to MODX 3.2 breaks the setup process. The file setup/includes/config.core.php was changed in 3.2 and now uses dirname(__FILE__) . '/core/' to define MODX_CORE_PATH, which resolves to setup/includes/core/ instead of the actual core/ directory at the web root.
Step to reproduce
- Have a working MODX 3.1.x installation
- Upgrade to MODX 3.2 via UpgradeMODX or by extracting the official 3.2 package
- Navigate to
/setup/ to complete the upgrade
Observed behavior
The setup returns a 503 error. The file setup/includes/config.core.php resolves an incorrect path:
// File: setup/includes/config.core.php
define('MODX_CORE_PATH', dirname(__FILE__) . '/core/');
// Resolves to: /webroot/setup/includes/core/ ← WRONG
// Expected: /webroot/core/
Expected behavior
The setup should correctly locate the core directory. The previous version handled this by using MODX_INSTALL_PATH to read the root config.core.php:
if (!defined('MODX_CORE_PATH')) {
if (file_exists(MODX_INSTALL_PATH . 'config.core.php')) {
require_once(MODX_INSTALL_PATH . 'config.core.php');
} else {
define('MODX_CORE_PATH', MODX_INSTALL_PATH . 'core/');
}
}
Environment
- MODX: upgrading from 3.1.2 to 3.2.0
- PHP: 8.3
- Server: Apache
Bug report
Summary
Upgrading to MODX 3.2 breaks the setup process. The file
setup/includes/config.core.phpwas changed in 3.2 and now usesdirname(__FILE__) . '/core/'to defineMODX_CORE_PATH, which resolves tosetup/includes/core/instead of the actualcore/directory at the web root.Step to reproduce
/setup/to complete the upgradeObserved behavior
The setup returns a 503 error. The file
setup/includes/config.core.phpresolves an incorrect path:Expected behavior
The setup should correctly locate the core directory. The previous version handled this by using
MODX_INSTALL_PATHto read the rootconfig.core.php:Environment