Php fatal error on fresh install of 8.7.1

I used docker compose to install SuiteCRM 8.7.1. I got it running and it showed the install page. But once I clicked continue, it gave me a 500 error. On checking the logs, I get this in the apache logs:

PHP Fatal error:  Uncaught Error: Class "Doctrine\\Bundle\\FixturesBundle\\DoctrineFixturesBundle" not found in /var/www/html/SuiteCRM/core/backend/Kernel.php:83
Stack trace:
#0 /var/www/html/SuiteCRM/vendor/symfony/http-kernel/Kernel.php(346): App\\Kernel->registerBundles()
#1 /var/www/html/SuiteCRM/core/backend/Kernel.php(111): Symfony\\Component\\HttpKernel\\Kernel->initializeBundles()
#2 /var/www/html/SuiteCRM/vendor/autoload_runtime.php(37): App\\Kernel->init()
#3 /var/www/html/SuiteCRM/public/index.php(5): require_once('...')
#4 {main}
thrown in /var/www/html/SuiteCRM/core/backend/Kernel.php on line 83, referer: https://google.com/

Hi, welcome to the Community! :tada:

The last time I saw this error it was a mismatch between the dev/prod mode and the composer install that I had done.

So:

  • if you have prod in your APP_ENV setting in .env file, run composer install --no-dev
  • if you have dev in your APP_ENV setting in .env file, run composer install