Jump to content
  • 0

Problem - baza danych


user_1337

Question

Z dnia na dzień podczas normalnego użytkowania sklepu, bez instalacji dziwnych modułów czy działań na bazie danych nagle nie można wejść na sklep, ani do katalogu /admin. Po włączeniu DEV_MODE i debugowaniu sql otrzymuję coś takiego. W ogóle nie wiem jak sobie z tym poradzić. Bardzo pilny temat!

 

 

Warning: PDO::__construct(): MySQL server has gone away in /classes/db/DbPDO.php on line 64

Warning: PDO::__construct(): Error while reading greeting packet. PID=4215 in /classes/db/DbPDO.php on line 64

Warning: Cannot modify header information - headers already sent by (output started at /classes/db/DbPDO.php:64) in /classes/exception/PrestaShopException.php on line 37

[PrestaShopException]

Link to database cannot be established:SQLSTATE[HY000] [2006] MySQL server has gone away
at line 102 in file classesdbDbPDO.php

97. public function connect()
98. {
99. try {
100. $this->link = $this->_getPDO($this->server, $this->user, $this->password, $this->database, 5);
101. } catch (PDOException $e) {
102. throw new PrestaShopException('Link to database cannot be established:'.$e->getMessage());
103. }
104.
105. // UTF-8 support
106. if ($this->link->exec('SET NAMES \'utf8\'') === false) {
107. throw new PrestaShopException('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.');

 

Link to comment
Share on other sites

4 answers to this question

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...