BobRay / UpgradeMODX

A dashboard widget that detects upgrades and (optionally) installs them from within the MODX Manager
https://bobsguides.com/upgrade-modx-package.html
22 stars 14 forks source link

New version generates error in dashboard for installations with modified core folder #70

Open SnowCreative opened 3 years ago

SnowCreative commented 3 years ago

After upgrading to UpgradeMODX version 2.1.4, the dashboard widget no longer works, and logging into the manager gets stalled. Here's the error:

Fatal error: require_once(): Failed opening required '.../core/components/upgrademodx/vendor/autoload.php' (include_path='.:/opt/alt/php72/usr/share/pear') in .../modxcore/components/upgrademodx/model/upgrademodx/upgrademodx.class.php on line 182

Did you hard code the core path? My core is renamed and outside the root, hence the failure to load a file.

BobRay commented 3 years ago

Not exactly, but something similar. I used MODX_BASE_PATH instead of MODX_CORE_PATH. See #69 for the fix. Or just change line 180 of the upgrademodx.class.php file to:

$path = MODX_CORE_PATH . 'components/upgrademodx/';