PrestaShopException {#53 ▼
#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 active\n
FROM `sk_hook` h\n
WHERE (h.name = "actionDispatcherBefore") LIMIT 1
"""
}
}
/var/www/html/s-e/classes/db/Db.php:697 {▶
›
› if (!$result = $this->getRow($sql, $use_cache)) {
› return false;
arguments: {▶
$sql: """
SELECT active\n
FROM `sk_hook` h\n
WHERE (h.name = "actionDispatcherBefore") LIMIT 1
"""
$use_cache: true
}
}
/var/www/html/s-e/classes/Hook.php:1270 {▶
›
› return (bool) Db::getInstance()->getValue($sql);
› }
arguments: {▶
$sql: """
SELECT active\n
FROM `sk_hook` h\n
WHERE (h.name = "actionDispatcherBefore")\n
"""
}
}
/var/www/html/s-e/classes/Hook.php:776 {▶
› ) {
› if (defined('PS_INSTALLATION_IN_PROGRESS') || !self::getHookStatusByName($hook_name)) {
› return $array_return ? [] : null;
arguments: {▶
$hook_name: "actionDispatcherBefore"
}
}
/var/www/html/s-e/classes/Dispatcher.php:357 {▶
› // Execute hook dispatcher before
› Hook::exec('actionDispatcherBefore', ['controller_type' => $this->front_controller]);
›
arguments: {▶
$hook_name: "actionDispatcherBefore"
$hook_args: array:1 [ …1]
}
}
/var/www/html/s-e/index.php:29 {▶
› \trequire dirname(__FILE__).'/config/config.inc.php';\r
› \tDispatcher::getInstance()->dispatch();\r
› }catch(\Exception $e){\r
}
}
}