QloApps Forums
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Suddenly Error 500 Started to show

    Technical Help
    2
    3
    702
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      Maurice last edited by

      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

      1. public function connect()
        
      2. {
        
      3.     try {
        
      4.         $this->link = $this->_getPDO($this->server, $this->user, $this->password, $this->database, 5);
        
      5.     } catch (PDOException $e) {
        
      6.         throw new PrestaShopException('Link to database cannot be established:'.$e->getMessage());
        
      7.     }
        
      8.     // UTF-8 support
        
      9.     if ($this->link->exec('SET NAMES \'utf8\'') === false) {
        
      10.         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

      A 1 Reply Last reply Reply Quote 0
      • A
        akr Global Moderator @Maurice last edited by

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

        M 1 Reply Last reply Reply Quote 0
        • M
          Maurice @akr last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post