Warning: PDO::__construct(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/modulsys/public_html/classes/db/DbPDO.php on line 81

Warning: Cannot modify header information - headers already sent by (output started at /home/modulsys/public_html/classes/db/DbPDO.php:81) in /home/modulsys/public_html/classes/exception/PrestaShopException.php on line 41

[PrestaShopException]

Link to database cannot be established: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known
at line 120 in file classes/db/DbPDO.php

115.     public function connect()
116.     {
117.         try {
118.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
119.         } catch (PDOException $e) {
120.             throw new PrestaShopException('Link to database cannot be established: '.$e->getMessage());
121.         }
122. 
123.         $this->link->exec('SET SESSION sql_mode = \'\'');
124. 
125.         return $this->link;