When setting up a new project, I typically create a new Contao installation with a composer.json that already has all the extensions/packages in it that I need. However, during initial install of the contao/managed-edition, no database connection will be defined yet.
[Doctrine\DBAL\Exception\ConnectionException]
An exception occurred while executing 'SELECT name, templates FROM tl_theme':
SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected
Exception trace:
Doctrine\DBAL\Driver\AbstractMySQLDriver->convertException() at …\vendor\doctrine\dbal\lib\Doctrine\DBAL\DBALException.php:184
Doctrine\DBAL\DBALException::wrapException() at …\vendor\doctrine\dbal\lib\Doctrine\DBAL\DBALException.php:158
Doctrine\DBAL\DBALException::driverExceptionDuringQuery() at …\vendor\doctrine\dbal\lib\Doctrine\DBAL\Connection.php:943
Doctrine\DBAL\Connection->executeQuery() at …\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Database\Statement.php:276
Contao\Database\Statement->query() at …\vendor\contao\core-bundle\src\Resources\contao\library\Contao\Database\Statement.php:250
Contao\Database\Statement->execute() at …\vendor\madeyourday\contao-rocksolid-custom-elements\src\CustomElements.php:1158
MadeYourDay\RockSolidCustomElements\CustomElements::loadConfig() at …\vendor\contao\core-bundle\src\Framework\ContaoFramework.php:382
Contao\CoreBundle\Framework\ContaoFramework->triggerInitializeSystemHook() at …\vendor\contao\core-bundle\src\Framework\ContaoFramework.php:277
Contao\CoreBundle\Framework\ContaoFramework->initializeFramework() at …\vendor\contao\core-bundle\src\Framework\ContaoFramework.php:122
Contao\CoreBundle\Framework\ContaoFramework->initialize() at …\vendor\contao\core-bundle\src\Command\AutomatorCommand.php:106
Contao\CoreBundle\Command\AutomatorCommand->generateCommandMap() at …\vendor\contao\core-bundle\src\Command\AutomatorCommand.php:95
Contao\CoreBundle\Command\AutomatorCommand->getCommands() at …\vendor\contao\core-bundle\src\Command\AutomatorCommand.php:56
Contao\CoreBundle\Command\AutomatorCommand->configure() at …\vendor\symfony\console\Command\Command.php:77
Symfony\Component\Console\Command\Command->__construct() at …\vendor\contao\core-bundle\src\Command\AutomatorCommand.php:42
Contao\CoreBundle\Command\AutomatorCommand->__construct() at …\var\cache\prod\ContainerQYBIZrK\getConsole_Command_PublicAlias_Contao_Command_AutomatorService.php:14
require() at …\var\cache\prod\ContainerQYBIZrK\appProdProjectContainer.php:473
ContainerQYBIZrK\appProdProjectContainer->load() at …\vendor\symfony\dependency-injection\Container.php:240
Symfony\Component\DependencyInjection\Container->make() at …\vendor\symfony\dependency-injection\Container.php:222
Symfony\Component\DependencyInjection\Container->get() at …\vendor\symfony\framework-bundle\Console\Application.php:186
Symfony\Bundle\FrameworkBundle\Console\Application->registerCommands() at …\vendor\symfony\framework-bundle\Console\Application.php:69
Symfony\Bundle\FrameworkBundle\Console\Application->doRun() at …\vendor\symfony\console\Application.php:145
Symfony\Component\Console\Application->run() at …\vendor\contao\manager-bundle\bin\contao-console:46
When setting up a new project, I typically create a new Contao installation with a
composer.json
that already has all the extensions/packages in it that I need. However, during initial install of the contao/managed-edition, no database connection will be defined yet.RSCE relies on it though at least here: