PrestaShopException {#34
#message: "Link to database cannot be established: SQLSTATE[HY000] [2002] Connection refused"
#code: 0
#file: "/var/www/html/s-e/classes/db/DbPDO.php"
#line: 136
trace: {
/var/www/html/s-e/classes/db/DbPDO.php:136 {
› } catch (PDOException $e) {
› throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage());
› }
}
/var/www/html/s-e/classes/db/Db.php:379 {
› if (!$this->result && $this->getNumberError() == 2006) {
› if ($this->connect()) {
› $this->result = $this->_query($sql);
}
/var/www/html/s-e/classes/db/Db.php:663 {
›
› $this->result = $this->query($sql);
› if (!$this->result) {
arguments: {
$sql: """
\n
\t\t\t\tSELECT id_shop\n
\t\t\t\tFROM `sk_lang_shop`\n
\t\t\t\tWHERE `id_lang` = 1\n
\t\t\t\tAND id_shop = 1 LIMIT 1
"""
}
}
/var/www/html/s-e/classes/db/Db.php:697 {
›
› if (!$result = $this->getRow($sql, $use_cache)) {
› return false;
arguments: {
$sql: """
\n
\t\t\t\tSELECT id_shop\n
\t\t\t\tFROM `sk_lang_shop`\n
\t\t\t\tWHERE `id_lang` = 1\n
\t\t\t\tAND id_shop = 1 LIMIT 1
"""
$use_cache: true
}
}
/var/www/html/s-e/classes/ObjectModel.php:1647 {
› \t\t\t\tWHERE `' . $this->def['primary'] . '` = ' . (int) $this->id . '
› \t\t\t\tAND id_shop = ' . (int) $id_shop
› );
arguments: {
$sql: """
\n
\t\t\t\tSELECT id_shop\n
\t\t\t\tFROM `sk_lang_shop`\n
\t\t\t\tWHERE `id_lang` = 1\n
\t\t\t\tAND id_shop = 1
"""
}
}
/var/www/html/s-e/config/config.inc.php:224 {
› }
› if (!isset($language) || !Validate::isLoadedObject($language) || !$language->isAssociatedToShop()) {
› $language = new Language(Configuration::get('PS_LANG_DEFAULT'));
}
/var/www/html/s-e/index.php:28 {
›
› require dirname(__FILE__).'/config/config.inc.php';\r
› Dispatcher::getInstance()->dispatch();\r
arguments: {
"/var/www/html/s-e/config/config.inc.php"
}
}
}
}