PrestaShopException {#35
#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: """
SELECT *\n
FROM `sk_lang` a\n
LEFT JOIN `sk_lang_shop` `c` ON a.`id_lang` = c.`id_lang` AND c.`id_shop` = 1\n
WHERE (a.`id_lang` = 3) LIMIT 1
"""
}
}
/var/www/html/s-e/src/Adapter/EntityMapper.php:76 {
›
› if ($object_datas = Db::getInstance()->getRow($sql)) {
› $objectVars = get_object_vars($entity);
arguments: {
$sql: """
SELECT *\n
FROM `sk_lang` a\n
LEFT JOIN `sk_lang_shop` `c` ON a.`id_lang` = c.`id_lang` AND c.`id_shop` = 1\n
WHERE (a.`id_lang` = 3) LIMIT 1
"""
}
}
/var/www/html/s-e/classes/ObjectModel.php:265 {
› $entity_mapper = ServiceLocator::get('\\PrestaShop\\PrestaShop\\Adapter\\EntityMapper');
› $entity_mapper->load($id, $this->id_lang, $this, $this->def, $this->id_shop, self::$cache_objects);
› }
arguments: {
$id: "3"
$id_lang: null
$entity: Language {#32 …}
$entity_defs: array:4 [ …4]
$id_shop: 1
$should_cache_objects: true
}
}
/var/www/html/s-e/config/config.inc.php:222 {
› if (isset($cookie->id_lang) && $cookie->id_lang) {
› $language = new Language($cookie->id_lang);
› }
arguments: {
$id: "3"
}
}
/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"
}
}
}
}