I have a Cake-4 project working on a development server. When I try to move it to a production server, by pulling it from Github, composer fails to load the files in vendor/cakephp/cakephp/src/Error/ that follow the Middleware directory. There are no errors or warnings from the composer run, which is simply :
php composer.phar update
I’ve tried this a couple of times, but this is consistent. The app fails to run because it can’t find Class 'Cake\Error\ErrorTrap.
The stack trace is is follows:
Fatal error : Uncaught Error: Class ‘Cake\Error\ErrorTrap’ not found in /var/www/html/warehouse/config/bootstrap.php:119 Stack trace: #0 /var/www/html/warehouse/vendor/cakephp/cakephp/src/Http/BaseApplication.php(173): require_once() #1 /var/www/html/warehouse/src/Application.php(47): Cake\Http\BaseApplication->bootstrap() #2 /var/www/html/warehouse/vendor/cakephp/cakephp/src/Http/Server.php(109): App\Application->bootstrap() #3 /var/www/html/warehouse/vendor/cakephp/cakephp/src/Http/Server.php(79): Cake\Http\Server->bootstrap() #4 /var/www/html/warehouse/webroot/index.php(44): Cake\Http\Server->run() #5 {main} thrown in /var/www/html/warehouse/config/bootstrap.php on line 119
I’m stumped. Any help would be appreciated.
Thanks,
Tom