caffe663 Posted September 28, 2021 Share Posted September 28, 2021 (edited) I can't open the page, so i turn on the debug mode and here are the problem. What should i do to solve this: Link to database cannot be established: SQLSTATE[08004] [1040] Too many connections at line 136 in file classes/db/DbPDO.php 131. public function connect() 132. { 133. try { 134. $this->link = $this->getPDO($this->server, $this->user, $this->password, $this->database, 5); 135. } catch (PDOException $e) { 136. throw new PrestaShopException('Link to database cannot be established: ' . $e->getMessage()); 137. } 138. 139. $this->link->exec('SET SESSION sql_mode = \'\''); 140. 141. 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 1336 - classes/shop/Shop.php] - [1 Arguments] ShopCore::findShopByHost - [line 337 - classes/shop/Shop.php] - [1 Arguments] ShopCore::initialize - [line 118 - config/config.inc.php] require - [line 27 - index.php] - [1 Arguments] Someone please help i can't open my page. Thank you Edited September 28, 2021 by caffe663 (see edit history) 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