Suddenly Error 500 Started to show
-
Hi. Websites were working fine and suddenly started to show Error 500 withour chance to even enter admin backend. Error log didnt have erros just warnings I changed defines.inc.php to TRUE and got this:
Deprecated: Function get_magic_quotes_gpc() is deprecated in /home/myserver/public_html/mydomain.com/qlo/config/defines.inc.php on line 143
[PrestaShopException]
Link to database cannot be established:SQLSTATE[HY000] [1045] Access denied for user 'my user'@'localhost' (using password: YES)
at line 102 in file classes/db/DbPDO.php-
public function connect()
-
{
-
try {
-
$this->link = $this->_getPDO($this->server, $this->user, $this->password, $this->database, 5);
-
} catch (PDOException $e) {
-
throw new PrestaShopException('Link to database cannot be established:'.$e->getMessage());
-
}
-
// UTF-8 support
-
if ($this->link->exec('SET NAMES \'utf8\'') === false) {
-
throw new PrestaShopException('PrestaShop Fatal error: no utf-8 support. Please check your server configuration.');
DbPDOCore->connect - [line 319 - classes/db/Db.php]
DbCore->__construct - [line 239 - classes/db/Db.php] - [4 Arguments]
DbCore::getInstance - [line 66 - config/alias.php]
pSQL - [line 329 - classes/shop/Shop.php] - [1 Arguments]
ShopCore::initialize - [line 114 - config/config.inc.php]
require - [line 27 - index.php] - [1 Arguments]Is this a bug or what is the issue ? Security ? To solve this I need change passoword on my database and which files on qlo and/or qlo database. Thx
-
-
@maurice Hi.
Please contact your hosting provider regarding database connection issues.
QloApps stores database credentials in file: qloapps_root_dir/config/settings.inc.php
Be cautious while editing this file because it may cause irrecoverable loss.
-
@akr Thx. It is a security issue and I havent found where an how. It has happened to me two times in 6 months. I have recovered systems just creating the database user again on server and assigning to qlo databases again according to /config/settings.inc.php. Have changed passwords & users on databases and Cpanel but happened again. I just wanted to know if someone else had this issue. Thx again.