Jump to content

500 internal error


Recommended Posts

Hi Guys

My website was fine just now and without changing anything i went to it and i get 500 internal error. 

It shows link to db error. Here is the debug mode.

Will this be my isp as they habent come back to me yet with my ticket.

 

Link to database cannot be established: SQLSTATE[HY000] [2006] MySQL server has gone away
at line 127 in file classes/db/DbPDO.php

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]

 

Link to comment
Share on other sites

Kindly check the credentials of database here

/app/config/parameters.php

you have make any change in username/ password ?

if you have set 'database_host' => 'localhost', then also try to change this with

'database_host' => '127.0.0.1',

Link to comment
Share on other sites

8 minutes ago, Razi said:

Kindly check the credentials of database here

/app/config/parameters.php

you have make any change in username/ password ?

if you have set 'database_host' => 'localhost', then also try to change this with

'database_host' => '127.0.0.1',

Sorry about this. It was an issue with the isp and not my side. Its all sorted

Link to comment
Share on other sites

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...