-
Notifications
You must be signed in to change notification settings - Fork 14
Open
Description
On upgrade I’m presented with a white screen on manager access attempt.
Upgrading to upgrademodx-2.1.4-pl
MODX 2.8.1
With custom core location
Manger error log shows
[22-Mar-2021 11:38:57 Europe/London] PHP Fatal error: require_once(): Failed opening required '/home/XXXXX/public_html/1XXXXX/core/components/upgrademodx/vendor/autoload.php' (include_path='.:/opt/cpanel/ea-php74/root/usr/share/pear') in /home/XXXXX/modx-system/XXXXX/core/components/upgrademodx/model/upgrademodx/upgrademodx.class.php on line 182
This was fixed by editing core/components/upgrademodx/model/upgrademodx/upgrademodx.class.php at line 180
Original content was:
$v = (int) $this->modx->getVersionData()['version'];
if ($v >= 3) {
$path = $this->modx->getOption('core_path', null);
} else {
$path = MODX_BASE_PATH . 'core/components/upgrademodx/';
}
require_once $path . 'vendor/autoload.php';
To fix, edited to:
$v = (int) $this->modx->getVersionData()['version'];
if ($v >= 3) {
$path = $this->modx->getOption('core_path', null);
} else {
$path = MODX_CORE_PATH . 'components/upgrademodx/';
}
require_once $path . 'vendor/autoload.php';
Metadata
Metadata
Assignees
Labels
No labels