Notice: Trying to access array offset on value of type null in /var/www/html/lib/database/connection.php on line 52

Fatal error: Uncaught PDOException: SQLSTATE[3D000]: Invalid catalog name: 1046 No database selected in /var/www/html/lib/database/repository.php:113 Stack trace: #0 /var/www/html/lib/database/repository.php(113): PDO->query() #1 /var/www/html/portal/controller/frotaController.php(62): Lib\DataBase\Repository->load() #2 [internal function]: frotaController->show() #3 /var/www/html/lib/control/controller.php(42): call_user_func() #4 /var/www/html/portal/load.php(45): Lib\Control\Controller->load() #5 {main} thrown in /var/www/html/lib/database/repository.php on line 113