Running Task DNADesign\Populate\PopulateTask

  • Processing app/fixtures/dev-populate.yml
  • Creating org-1 (Virtimed\Organisation)
  • GET /dev/tasks/PopulateTask

    [Emergency] Uncaught SilverStripe\ORM\Connect\DatabaseException: Couldn't run query: SELECT DISTINCT count(DISTINCT "Virtimed_Organisation"."ID") AS "Count" FROM "Virtimed_Organisation" WHERE ("Virtimed_Organisation"."Name" = ?) SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected

    GET /dev/tasks/PopulateTask

    Line 64 in /home/snorlax/public_html/vendor/silverstripe/framework/src/ORM/Connect/DBConnector.php

    Source

    55         if (!empty($sql)) {
    56             $formatter = new SQLFormatter();
    57             $formattedSQL = $formatter->formatPlain($sql);
    58             $msg = "Couldn't run query:\n\n{$formattedSQL}\n\n{$msg}";
    59         }
    60 
    61         if ($errorLevel === E_USER_ERROR) {
    62             // Treating errors as exceptions better allows for responding to errors
    63             // in code, such as credential checking during installation
    64             throw new DatabaseException($msg, 0, null, $sql, $parameters);
    65         } else {
    66             user_error($msg ?? '', $errorLevel ?? 0);
    67         }
    68     }
    69 
    70     /**
    

    Trace