funny_newb Posted September 30, 2020 Share Posted September 30, 2020 Zdravím vás všetkých, čelým zas a raz nejakej chybe s PrestaShop-om a riešenie som na zahraničných fórach nenašiel, možno ste si tým už niekto prešli: Najprv vypisovalo len Internal Server Error 500, po spustení núdzového režimu v defines.inc.php sa chyba zmenila na nasledovnú: Link to database cannot be established: SQLSTATE[HY000] [2002] No route to host 122. public function connect() 123. { 124. try { 125. $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5); 126. } catch (PDOException $e) { 127. throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage()); 128. } 129. 130. $this->link->exec('SET SESSION sql_mode = \'\''); 131. 132. return $this->link; DbPDOCore->connect - [line 330 - classes/db/Db.php] DbCore->__construct - [line 241 - classes/db/Db.php] - [4 Arguments] DbCore::getInstance - [line 47 - config/alias.php] pSQL - [line 340 - classes/shop/Shop.php] - [1 Arguments] ShopCore::initialize - [line 119 - config/config.inc.php] require - [line 27 - index.php] - [1 Arguments] Nastavenie v defines.php by malo byť v poriadku. Link to comment Share on other sites More sharing options...
eloelic Posted December 7, 2020 Share Posted December 7, 2020 Problem s napojenim na databazu. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now