Running Task Invalidate All Login Sessions Task

GET /dev/tasks/InvalidateAllSessions

[Emergency] Uncaught SilverStripe\ORM\Connect\DatabaseException: Couldn't run query: SELECT DISTINCT "LoginSession"."ClassName", "LoginSession"."LastEdited", "LoginSession"."Created", "LoginSession"."LastAccessed", "LoginSession"."IPAddress", "LoginSession"."UserAgent", "LoginSession"."Persistent", "LoginSession"."MemberID", "LoginSession"."ID", CASE WHEN "LoginSession"."ClassName" IS NOT NULL THEN "LoginSession"."ClassName" ELSE 'SilverStripe\\SessionManager\\Models\\LoginSession' END AS "RecordClassName" FROM "LoginSession" ORDER BY "LoginSession"."LastAccessed" DESC No database selected

GET /dev/tasks/InvalidateAllSessions

Line 64 in /home/webpages/lima-city/slamprecht/pbprototype/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