object(ErrorException)#6 (8) {
  ["message":protected]=>
  string(130) "mysqli::__construct() [mysqli.construct]: (HY000/2002): Connection refused"
  ["string":"Exception":private]=>
  string(0) ""
  ["code":protected]=>
  int(0)
  ["file":protected]=>
  string(48) "/var/www/polarprint.se/public_html/functions.php"
  ["line":protected]=>
  int(277)
  ["trace":"Exception":private]=>
  array(3) {
    [0]=>
    array(2) {
      ["function"]=>
      string(13) "error_handler"
      ["args"]=>
      array(5) {
        [0]=>
        int(2)
        [1]=>
        string(130) "mysqli::__construct() [mysqli.construct]: (HY000/2002): Connection refused"
        [2]=>
        string(48) "/var/www/polarprint.se/public_html/functions.php"
        [3]=>
        int(277)
        [4]=>
        array(5) {
          ["e"]=>
          object(DatabaseException)#5 (7) {
            ["message":protected]=>
            string(127) "Database Error: MySQL server has gone away [SELECT active,firstpage,bookable,onlineorder,showweb FROM products WHERE id="4113"]"
            ["string":"Exception":private]=>
            string(0) ""
            ["code":protected]=>
            int(0)
            ["file":protected]=>
            string(54) "/var/www/polarprint.se/public_html/classes/DBQuery.php"
            ["line":protected]=>
            int(24)
            ["trace":"Exception":private]=>
            array(4) {
              [0]=>
              array(6) {
                ["file"]=>
                string(54) "/var/www/polarprint.se/public_html/classes/Product.php"
                ["line"]=>
                int(100)
                ["function"]=>
                string(11) "__construct"
                ["class"]=>
                string(7) "DBQuery"
                ["type"]=>
                string(2) "->"
                ["args"]=>
                array(1) {
                  [0]=>
                  string(82) "SELECT active,firstpage,bookable,onlineorder,showweb FROM products WHERE id="4113""
                }
              }
              [1]=>
              array(6) {
                ["file"]=>
                string(54) "/var/www/polarprint.se/public_html/classes/Product.php"
                ["line"]=>
                int(88)
                ["function"]=>
                string(11) "getSettings"
                ["class"]=>
                string(7) "Product"
                ["type"]=>
                string(2) "->"
                ["args"]=>
                array(0) {
                }
              }
              [2]=>
              array(6) {
                ["file"]=>
                string(51) "/var/www/polarprint.se/public_html/beta/product.php"
                ["line"]=>
                int(28)
                ["function"]=>
                string(8) "isActive"
                ["class"]=>
                string(7) "Product"
                ["type"]=>
                string(2) "->"
                ["args"]=>
                array(0) {
                }
              }
              [3]=>
              array(4) {
                ["file"]=>
                string(46) "/var/www/polarprint.se/public_html/produkt.php"
                ["line"]=>
                int(44)
                ["args"]=>
                array(1) {
                  [0]=>
                  string(51) "/var/www/polarprint.se/public_html/beta/product.php"
                }
                ["function"]=>
                string(12) "require_once"
              }
            }
            ["previous":"Exception":private]=>
            NULL
          }
          ["mysql_server"]=>
          string(19) "mysql58.unoeuro.com"
          ["mysql_database"]=>
          string(37) "polarprint_se_db_application_settings"
          ["mysql_username"]=>
          string(13) "polarprint_se"
          ["mysql_password"]=>
          string(6) "Hurvel"
        }
      }
    }
    [1]=>
    array(6) {
      ["file"]=>
      string(48) "/var/www/polarprint.se/public_html/functions.php"
      ["line"]=>
      int(277)
      ["function"]=>
      string(11) "__construct"
      ["class"]=>
      string(6) "mysqli"
      ["type"]=>
      string(2) "->"
      ["args"]=>
      array(4) {
        [0]=>
        string(19) "mysql58.unoeuro.com"
        [1]=>
        string(13) "polarprint_se"
        [2]=>
        string(6) "Hurvel"
        [3]=>
        string(37) "polarprint_se_db_application_settings"
      }
    }
    [2]=>
    array(2) {
      ["function"]=>
      string(17) "exception_handler"
      ["args"]=>
      array(1) {
        [0]=>
        object(DatabaseException)#5 (7) {
          ["message":protected]=>
          string(127) "Database Error: MySQL server has gone away [SELECT active,firstpage,bookable,onlineorder,showweb FROM products WHERE id="4113"]"
          ["string":"Exception":private]=>
          string(0) ""
          ["code":protected]=>
          int(0)
          ["file":protected]=>
          string(54) "/var/www/polarprint.se/public_html/classes/DBQuery.php"
          ["line":protected]=>
          int(24)
          ["trace":"Exception":private]=>
          array(4) {
            [0]=>
            array(6) {
              ["file"]=>
              string(54) "/var/www/polarprint.se/public_html/classes/Product.php"
              ["line"]=>
              int(100)
              ["function"]=>
              string(11) "__construct"
              ["class"]=>
              string(7) "DBQuery"
              ["type"]=>
              string(2) "->"
              ["args"]=>
              array(1) {
                [0]=>
                string(82) "SELECT active,firstpage,bookable,onlineorder,showweb FROM products WHERE id="4113""
              }
            }
            [1]=>
            array(6) {
              ["file"]=>
              string(54) "/var/www/polarprint.se/public_html/classes/Product.php"
              ["line"]=>
              int(88)
              ["function"]=>
              string(11) "getSettings"
              ["class"]=>
              string(7) "Product"
              ["type"]=>
              string(2) "->"
              ["args"]=>
              array(0) {
              }
            }
            [2]=>
            array(6) {
              ["file"]=>
              string(51) "/var/www/polarprint.se/public_html/beta/product.php"
              ["line"]=>
              int(28)
              ["function"]=>
              string(8) "isActive"
              ["class"]=>
              string(7) "Product"
              ["type"]=>
              string(2) "->"
              ["args"]=>
              array(0) {
              }
            }
            [3]=>
            array(4) {
              ["file"]=>
              string(46) "/var/www/polarprint.se/public_html/produkt.php"
              ["line"]=>
              int(44)
              ["args"]=>
              array(1) {
                [0]=>
                string(51) "/var/www/polarprint.se/public_html/beta/product.php"
              }
              ["function"]=>
              string(12) "require_once"
            }
          }
          ["previous":"Exception":private]=>
          NULL
        }
      }
    }
  }
  ["previous":"Exception":private]=>
  NULL
  ["severity":protected]=>
  int(2)
}
Database Error