[FLOW3-general] Uncaught Exception: 1046 No database selected.

bby bby at bby.de
Sun Feb 26 18:42:31 CET 2012


Hello,

I'm pretty new to FLOW3 and tried to wade through the quickstart guide. 
Download (1.0.3), install and configure for mysql went fine. kickstarting my first package (Bby.DocDemo) did also work. 

Then I've kickstarted the actioncontroller CoffeeBean. All files for the model were created, after a doctrine:update I've found all expected tables (with phpMyAdmin)

But when I try to open the url http://localhost/FLOW3/Web/index.php/Bby.DocDemo/CoffeeBean I get a formatted version of the following (I've posted the more complete log file here):

Uncaught exception #3D000 in line 633 of /Library/WebServer/Documents/FLOW3/Packages/Framework/Doctrine/Classes/DBAL/Connection.php: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected

40 PDO::query((SELECT count(DISTINCT b0_.flow3_persistence_identifier) AS sclr0 FROM bby_docdemo_domain_model_coffeebean b0_)SELECT count(DISTINCT b0_.flow3_persistence_identi…sclr0 FROM bby_docdemo_domain_model_coffeebean b0_)
39 Doctrine\DBAL\Connection::executeQuery((SELECT count(DISTINCT b0_.flow3_persistence_identifier) AS sclr0 FROM bby_docdemo_domain_model_coffeebean b0_)SELECT count(DISTINCT b0_.flow3_persistence_identi…sclr0 FROM bby_docdemo_domain_model_coffeebean b0_, array, array, NULL)
38 Doctrine\ORM\Query\Exec\SingleSelectExecutor::execute(Doctrine\DBAL\Connection, array, array)
37 Doctrine\ORM\Query::_doExecute()
36 Doctrine\ORM\AbstractQuery::execute(array, 4)

...snip...

As far as I can see in process(?) 39 and 40 the SELECT count(DISTINCT... query is created two times with a false (ASCII/Unicode problem?) string in the second (...flow3_persistence_identi…sclr0 FROM ...)

Is this false argument array from the CoffeeBean model or in FLOW3? When doctrine is creating the tables, there is a database connection, so my Settings.yaml seems to be ok.

Maybe someone can validate this or tell me what I've made wrong.

Regards
Roland

Btw. I'm working on a MacBook with OS 10.6.8


More information about the FLOW3-general mailing list