After installing pdoTools in MODX, the site crashes with a fatal error because the required vendor/autoload.php file is missing from the pdoTools directory. This indicates that the package installation is incomplete or its Composer dependencies were not properly installed.
Step to reproduce
Clean setup both with Laragon and Docker
Load protocols (3.0.3-pl via modx.com server)
Click install, result as below
Observed behavior
Warning: require_once(C:\laragon\www\modx/core/components/pdotools/vendor/autoload.php): Failed to open stream: No such file or directory in C:\laragon\www\modx\core\components\pdotools\bootstrap.php on line 4
Fatal error: Uncaught Error: Failed opening required âC:\laragon\www\modx/core/components/pdotools/vendor/autoload.phpâ (include_path=â.;C:/laragon/etc/php/pearâ) in C:\laragon\www\modx\core\components\pdotools\bootstrap.php:4 Stack trace: #0 C:\laragon\www\modx\core\src\Revolution\modX.php(624): require() #1 C:\laragon\www\modx\core\src\Revolution\modX.php(579): MODX\Revolution\modX->_initNamespaces() #2 C:\laragon\www\modx\index.php(59): MODX\Revolution\modX->initialize(âwebâ) #3 {main} thrown in C:\laragon\www\modx\core\components\pdotools\bootstrap.php on line 4
Environment
Using latest MODX (3.2.0), MySQL 8.4, any browser
Iâm new to modx, a company I will start working for soon uses it. Trying to get some basic skills and setup development environment.
I could swear I saw a similar topic in the past few days but I canât find it now. IIRC, the vendor folder is missing and the workaround is to run composer install in the pdotools directory or something like that. Seems like a bug, which I assume will be fixed shortly, but I havenât seen that confirmed anywhere.
How would the workaround work on a shared hosting platform like IONOS?
As a temporary workaround, you can go to core/components/pdotools in a terminal and run the composer install --no-dev command.
Composer doesnât exist.
Edit: I figured out another workaround.
Delete the pdoTools folder from core/components/pdotools. That restored access to the manager. Then I completely uninstalled and removed the pdoTools 3.0.3 entry from package manager.
Upload that zip file into the core/packages folder.
In package manager click the down arrow on the Download Extras button and select âSearch Locally for Packagesâ which scans the package folder and shows the v3.0.2 package.
Install pdoTools v3.0.2.
After it finishes go back to Download Extras and find the online version of pdoTools v3.0.3 and install that again to bring things up to date.