PrestaShopException {#54
#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:613 {
›
› $this->result = $this->query($sql);
›
arguments: {
$sql: "SELECT `name`, `alias` FROM `sk_hook_alias`"
}
}
/var/www/html/s-e/classes/Hook.php:291 {
› if (!Cache::isStored($cacheId)) {
› $hookAliasList = Db::getInstance()->executeS('SELECT `name`, `alias` FROM `' . _DB_PREFIX_ . 'hook_alias`');
› $hookAliases = [];
arguments: {
$sql: "SELECT `name`, `alias` FROM `sk_hook_alias`"
}
}
/var/www/html/s-e/classes/Hook.php:322 {
›
› $allAliases = Hook::getAllHookAliases();
›
}
/var/www/html/s-e/classes/Hook.php:732 {
› // add modules that are registered to aliases of this hook
› $aliases = Hook::getHookAliasesFor($hookName);
› if (!empty($aliases)) {
arguments: {
$canonicalHookName: "moduleRoutes"
}
}
/var/www/html/s-e/classes/Hook.php:805 {
›
› if (!$module_list = Hook::getHookModuleExecList($hook_name)) {
› if ($isRegistryEnabled) {
arguments: {
$hookName: "moduleRoutes"
}
}
/var/www/html/s-e/classes/Dispatcher.php:596 {
› // Load custom routes from modules
› $modules_routes = Hook::exec('moduleRoutes', ['id_shop' => $id_shop], null, true, false);
› if (is_array($modules_routes) && count($modules_routes)) {
arguments: {
$hook_name: "moduleRoutes"
$hook_args: array:1 [ …1]
$id_module: null
$array_return: true
$check_exceptions: false
}
}
/var/www/html/s-e/classes/Dispatcher.php:249 {
›
› $this->loadRoutes();
› }
}
/var/www/html/s-e/classes/Dispatcher.php:207 {
› }
› self::$instance = new Dispatcher($request);
› }
arguments: {
$request: Request {#43 …}
}
}
/var/www/html/s-e/index.php:29 {
› \trequire dirname(__FILE__).'/config/config.inc.php';\r
› \tDispatcher::getInstance()->dispatch();\r
› }catch(\Exception $e){\r
}
}
}