Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /var/www/html/api/Database.php on line 58

Warning: mysqli::__construct(): (HY000/2002): No such file or directory in /var/www/html/api/Database.php on line 58

Fatal error: Uncaught Error: mysqli object is already closed in /var/www/html/api/Database.php:138 Stack trace: #0 /var/www/html/api/Database.php(138): mysqli->query() #1 /var/www/html/api/Money.php(49): Database->query() #2 /var/www/html/api/Money.php(32): Money->init_currencies() #3 /var/www/html/api/Simpla.php(423): Money->__construct() #4 /var/www/html/view/View.php(48): Simpla->__get() #5 /var/www/html/view/IndexView.php(39): View->__construct() #6 /var/www/html/api/ControllerSimpla.php(21): IndexView->__construct() #7 /var/www/html/api/ControllerMaster.php(69): ControllerSimpla->action() #8 /var/www/html/index.php(20): ControllerMaster->action() #9 {main} thrown in /var/www/html/api/Database.php on line 138

Fatal error: Uncaught Error: mysqli object is already closed in /var/www/html/api/Database.php:95 Stack trace: #0 /var/www/html/api/Database.php(95): mysqli->close() #1 /var/www/html/api/Database.php(86): Database->disconnect() #2 [internal function]: Database->__destruct() #3 {main} thrown in /var/www/html/api/Database.php on line 95