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:663 {
›
› $this->result = $this->query($sql);
› if (!$this->result) {
arguments: {
$sql: "SELECT `id_module` FROM `sk_module` WHERE `name` = "mpsellerstaff" LIMIT 1"
}
}
/var/www/html/s-e/classes/db/Db.php:697 {
›
› if (!$result = $this->getRow($sql, $use_cache)) {
› return false;
arguments: {
$sql: "SELECT `id_module` FROM `sk_module` WHERE `name` = "mpsellerstaff" LIMIT 1"
$use_cache: true
}
}
/var/www/html/s-e/classes/module/Module.php:2840 {
› if (!Cache::isStored($cache_id)) {
› $result = (int) Db::getInstance()->getValue('SELECT `id_module` FROM `' . _DB_PREFIX_ . 'module` WHERE `name` = "' . pSQL($name) . '"');
› Cache::store($cache_id, $result);
arguments: {
$sql: "SELECT `id_module` FROM `sk_module` WHERE `name` = "mpsellerstaff""
}
}
/var/www/html/s-e/classes/module/Module.php:2327 {
› $active = false;
› $id_module = Module::getModuleIdByName($module_name);
› if (Db::getInstance()->getValue('SELECT `id_module` FROM `' . _DB_PREFIX_ . 'module_shop` WHERE `id_module` = ' . (int) $id_module . ' AND `id_shop` = ' . (int) Context::getContext()->shop->id)) {
arguments: {
$name: "mpsellerstaff"
}
}
/var/www/html/s-e/modules/marketplace/marketplace.php:28 {
› require_once dirname(__FILE__) . '/classes/WkMpRequiredClasses.php';
› if (Module::isEnabled('mpsellerstaff')) {
› include_once dirname(__FILE__) . '/../mpsellerstaff/classes/WkMpStaffRequiredClasses.php';
arguments: {
$module_name: "mpsellerstaff"
}
}
/var/www/html/s-e/classes/module/Module.php:1178 {
› {
› include_once _PS_MODULE_DIR_ . $module_name . '/' . $module_name . '.php';
›
arguments: {
"/var/www/html/s-e/modules/marketplace/marketplace.php"
}
}
/var/www/html/s-e/classes/module/Module.php:1170 {
›
› return Module::coreLoadModule($module_name);
› }
arguments: {
$module_name: "marketplace"
}
}
/var/www/html/s-e/classes/Hook.php:911 {
›
› if (!($moduleInstance = Module::getInstanceByName($hookRegistration['module']))) {
› continue;
arguments: {
$module_name: "marketplace"
}
}
/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:3 [ …3]
$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
}
}
}