Deprecated: Array and string offset access syntax with curly braces is deprecated in /data/sites/web/cybertopiabe/www/store/vendor/icanboogie/common/lib/helpers.php on line 306

Warning: Cannot modify header information - headers already sent by (output started at /data/sites/web/cybertopiabe/www/store/vendor/icanboogie/common/lib/helpers.php:306) in /data/sites/web/cybertopiabe/www/store/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 127 in file classes/db/DbPDO.php

122.     public function connect()
123.     {
124.         try {
125.             $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5);
126.         } catch (PDOException $e) {
127.             throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
128.         }
129. 
130.         $this->link->exec('SET SESSION sql_mode = \'\'');
131. 
132.         return $this->link;