ErrorException

HTTP 500 Whoops, looks like something went wrong.

mysqli::__construct(): (HY000/1040): Too many connections

Exception

ErrorException

  1.         $this->setConnection(new mysqli(
  2.             getenv('DB_HOST'),
  3.             getenv('DB_USERNAME'),
  4.             getenv('DB_PASSWORD'),
  5.             getenv('DB_DATABASE')
  6.         ));
  7.         parent::__construct();
  8.     }
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.         $this->setConnection(new mysqli(
  2.             getenv('DB_HOST'),
  3.             getenv('DB_USERNAME'),
  4.             getenv('DB_PASSWORD'),
  5.             getenv('DB_DATABASE')
  6.         ));
  7.         parent::__construct();
  8.     }
  1.      */
  2.     public static function getInstance()
  3.     {
  4.         if (!self::$instance) { // If no instance then make one
  5.             self::$instance = new self();
  6.         }
  7.         return self::$instance;
  8.     }
  9. }
Connector::getInstance() in /var/www/astina/includes/functions/database.php (line 9)
  1. require_once __DIR__ '/../classes/Database/Mysqli/Connector.php';
  2. function DB()
  3. {
  4.     return Connector::getInstance()->getConnection();
  5. }
  6. function tep_db_connect()
  7. {
  8.     $link DB();
  1.     return Connector::getInstance()->getConnection();
  2. }
  3. function tep_db_connect()
  4. {
  5.     $link DB();
  6.     /*if(getenv('SET_NAMES')!=false){
  7.         $link->query("SET NAMES '".getenv('SET_NAMES')."'");
  8.     }*/
  9.     $link->query("SET SESSION sql_mode=''");
  10.     /*
  1. require_once __DIR__ '/configure.php';
  2. require_once __DIR__ '/filenames.php';
  3. require_once __DIR__ '/database_tables.php';
  4. require_once DIR_WS_FUNCTIONS 'database.php';
  5. tep_db_connect() or die('Unable to connect to database server!');
  6. if($_GET['test_debug'] == '123') {
  7.     $timer_current_main microtime(true) - $timerMain;
  8.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 1 - ' basename(__FILE__) . ' - ' $timer_current_main PHP_EOL,    FILE_APPEND);
  9. }
  10. $configuration_query tep_db_query(
require_once('/var/www/astina/includes/application_main.php') in /var/www/astina/includes/application_top.php (line 13)
  1.     $timer microtime(true);
  2.     $fileName basename(__FILE__);
  3.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $fileName ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  4. }
  5. require_once __DIR__ "/application_main.php";
  6. require_once "app/Classes/Cache/Helpers/FileCacheHelper.php";
  7. $timeZone getenv('TIME_ZONE');
  8. $timeZoneArray explode(' ',$timeZone);
  9. if(!empty($timeZoneArray[0])){
require('/var/www/astina/includes/application_top.php') in /var/www/astina/product_info.php (line 12)
  1. if($_GET['test_debug'] == '123') {
  2.     $timer_product_info microtime(true);
  3.     $file basename(__FILE__);
  4.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $file ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  5. }
  6. require('includes/application_top.php');
  7. checkTime('application_top');
  8. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_PRODUCT_INFO);
  9. if ($languages_id != $lng->defaultLanguage['id']) {

Stack Trace

ErrorException
ErrorException:
mysqli::__construct(): (HY000/1040): Too many connections

  at /var/www/astina/includes/classes/Database/Mysqli/Connector.php:28
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli->__construct()
     (/var/www/astina/includes/classes/Database/Mysqli/Connector.php:28)
  at Connector->__construct()
     (/var/www/astina/includes/classes/Database/Mysqli/Connector.php:41)
  at Connector::getInstance()
     (/var/www/astina/includes/functions/database.php:9)
  at DB()
     (/var/www/astina/includes/functions/database.php:14)
  at tep_db_connect()
     (/var/www/astina/includes/application_main.php:24)
  at require_once('/var/www/astina/includes/application_main.php')
     (/var/www/astina/includes/application_top.php:13)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/product_info.php:12)                
Failed to connect to MySQL: Too many connections<br> SERVER_NAME: www.astina.dk<br> SCRIPT_NAME: /product_info.php<br> REQUEST_URI: /03-04-xenon-d2s/bmw-e60-e61-forlygter-sonar-angeleyes-ccfl-sort-03-04-xenon-d2s-p-30119.html?cPath=32_946 (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

Failed to connect to MySQL: Too many connections<br>
SERVER_NAME: www.astina.dk<br>
SCRIPT_NAME: /product_info.php<br>
REQUEST_URI: /03-04-xenon-d2s/bmw-e60-e61-forlygter-sonar-angeleyes-ccfl-sort-03-04-xenon-d2s-p-30119.html?cPath=32_946

Exception

ErrorException

  1.                 SERVER_NAME: {$_SERVER["SERVER_NAME"]}<br>
  2.                 SCRIPT_NAME: {$_SERVER["SCRIPT_NAME"]}<br>
  3.                 REQUEST_URI: {$_SERVER["REQUEST_URI"]}";
  4.             trigger_error(
  5.                 "Failed to connect to MySQL: " mysqli_connect_error() . $message,
  6.                 E_USER_ERROR
  7.             );
  8.         }
  9.     }
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.                 SERVER_NAME: {$_SERVER["SERVER_NAME"]}<br>
  2.                 SCRIPT_NAME: {$_SERVER["SCRIPT_NAME"]}<br>
  3.                 REQUEST_URI: {$_SERVER["REQUEST_URI"]}";
  4.             trigger_error(
  5.                 "Failed to connect to MySQL: " mysqli_connect_error() . $message,
  6.                 E_USER_ERROR
  7.             );
  8.         }
  9.     }
AbstractDbConnection->__construct() in /var/www/astina/includes/classes/Database/Mysqli/Connector.php (line 31)
  1.             getenv('DB_USERNAME'),
  2.             getenv('DB_PASSWORD'),
  3.             getenv('DB_DATABASE')
  4.         ));
  5.         parent::__construct();
  6.     }
  7.     /**
  8.      * @return Connector
  9.      */
  1.      */
  2.     public static function getInstance()
  3.     {
  4.         if (!self::$instance) { // If no instance then make one
  5.             self::$instance = new self();
  6.         }
  7.         return self::$instance;
  8.     }
  9. }
Connector::getInstance() in /var/www/astina/includes/functions/database.php (line 9)
  1. require_once __DIR__ '/../classes/Database/Mysqli/Connector.php';
  2. function DB()
  3. {
  4.     return Connector::getInstance()->getConnection();
  5. }
  6. function tep_db_connect()
  7. {
  8.     $link DB();
  1.     return Connector::getInstance()->getConnection();
  2. }
  3. function tep_db_connect()
  4. {
  5.     $link DB();
  6.     /*if(getenv('SET_NAMES')!=false){
  7.         $link->query("SET NAMES '".getenv('SET_NAMES')."'");
  8.     }*/
  9.     $link->query("SET SESSION sql_mode=''");
  10.     /*
  1. require_once __DIR__ '/configure.php';
  2. require_once __DIR__ '/filenames.php';
  3. require_once __DIR__ '/database_tables.php';
  4. require_once DIR_WS_FUNCTIONS 'database.php';
  5. tep_db_connect() or die('Unable to connect to database server!');
  6. if($_GET['test_debug'] == '123') {
  7.     $timer_current_main microtime(true) - $timerMain;
  8.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 1 - ' basename(__FILE__) . ' - ' $timer_current_main PHP_EOL,    FILE_APPEND);
  9. }
  10. $configuration_query tep_db_query(
require_once('/var/www/astina/includes/application_main.php') in /var/www/astina/includes/application_top.php (line 13)
  1.     $timer microtime(true);
  2.     $fileName basename(__FILE__);
  3.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $fileName ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  4. }
  5. require_once __DIR__ "/application_main.php";
  6. require_once "app/Classes/Cache/Helpers/FileCacheHelper.php";
  7. $timeZone getenv('TIME_ZONE');
  8. $timeZoneArray explode(' ',$timeZone);
  9. if(!empty($timeZoneArray[0])){
require('/var/www/astina/includes/application_top.php') in /var/www/astina/product_info.php (line 12)
  1. if($_GET['test_debug'] == '123') {
  2.     $timer_product_info microtime(true);
  3.     $file basename(__FILE__);
  4.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $file ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  5. }
  6. require('includes/application_top.php');
  7. checkTime('application_top');
  8. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_PRODUCT_INFO);
  9. if ($languages_id != $lng->defaultLanguage['id']) {

Stack Trace

ErrorException
ErrorException:
Failed to connect to MySQL: Too many connections<br>
                SERVER_NAME: www.astina.dk<br>
                SCRIPT_NAME: /product_info.php<br>
                REQUEST_URI: /03-04-xenon-d2s/bmw-e60-e61-forlygter-sonar-angeleyes-ccfl-sort-03-04-xenon-d2s-p-30119.html?cPath=32_946

  at /var/www/astina/includes/classes/Database/AbstractDbConnection.php:76
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at trigger_error()
     (/var/www/astina/includes/classes/Database/AbstractDbConnection.php:76)
  at AbstractDbConnection->__construct()
     (/var/www/astina/includes/classes/Database/Mysqli/Connector.php:31)
  at Connector->__construct()
     (/var/www/astina/includes/classes/Database/Mysqli/Connector.php:41)
  at Connector::getInstance()
     (/var/www/astina/includes/functions/database.php:9)
  at DB()
     (/var/www/astina/includes/functions/database.php:14)
  at tep_db_connect()
     (/var/www/astina/includes/application_main.php:24)
  at require_once('/var/www/astina/includes/application_main.php')
     (/var/www/astina/includes/application_top.php:13)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/product_info.php:12)                
mysqli::query(): Couldn't fetch mysqli (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

mysqli::query(): Couldn't fetch mysqli

Exception

ErrorException

  1. {
  2.     $link DB();
  3.     /*if(getenv('SET_NAMES')!=false){
  4.         $link->query("SET NAMES '".getenv('SET_NAMES')."'");
  5.     }*/
  6.     $link->query("SET SESSION sql_mode=''");
  7.     /*
  8.     $timeZoneArray = explode(' ', DB_TIME_ZONE);
  9.     if ( !empty($timeZoneArray[1])) {
  10.         $link->query("SET @@session.time_zone = '" . str_replace(['(', ')'],'', $timeZoneArray[1]) . "';");
  11.     }
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1. {
  2.     $link DB();
  3.     /*if(getenv('SET_NAMES')!=false){
  4.         $link->query("SET NAMES '".getenv('SET_NAMES')."'");
  5.     }*/
  6.     $link->query("SET SESSION sql_mode=''");
  7.     /*
  8.     $timeZoneArray = explode(' ', DB_TIME_ZONE);
  9.     if ( !empty($timeZoneArray[1])) {
  10.         $link->query("SET @@session.time_zone = '" . str_replace(['(', ')'],'', $timeZoneArray[1]) . "';");
  11.     }
  1. require_once __DIR__ '/configure.php';
  2. require_once __DIR__ '/filenames.php';
  3. require_once __DIR__ '/database_tables.php';
  4. require_once DIR_WS_FUNCTIONS 'database.php';
  5. tep_db_connect() or die('Unable to connect to database server!');
  6. if($_GET['test_debug'] == '123') {
  7.     $timer_current_main microtime(true) - $timerMain;
  8.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 1 - ' basename(__FILE__) . ' - ' $timer_current_main PHP_EOL,    FILE_APPEND);
  9. }
  10. $configuration_query tep_db_query(
require_once('/var/www/astina/includes/application_main.php') in /var/www/astina/includes/application_top.php (line 13)
  1.     $timer microtime(true);
  2.     $fileName basename(__FILE__);
  3.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $fileName ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  4. }
  5. require_once __DIR__ "/application_main.php";
  6. require_once "app/Classes/Cache/Helpers/FileCacheHelper.php";
  7. $timeZone getenv('TIME_ZONE');
  8. $timeZoneArray explode(' ',$timeZone);
  9. if(!empty($timeZoneArray[0])){
require('/var/www/astina/includes/application_top.php') in /var/www/astina/product_info.php (line 12)
  1. if($_GET['test_debug'] == '123') {
  2.     $timer_product_info microtime(true);
  3.     $file basename(__FILE__);
  4.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $file ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  5. }
  6. require('includes/application_top.php');
  7. checkTime('application_top');
  8. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_PRODUCT_INFO);
  9. if ($languages_id != $lng->defaultLanguage['id']) {

Stack Trace

ErrorException
ErrorException:
mysqli::query(): Couldn't fetch mysqli

  at /var/www/astina/includes/functions/database.php:18
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli->query()
     (/var/www/astina/includes/functions/database.php:18)
  at tep_db_connect()
     (/var/www/astina/includes/application_main.php:24)
  at require_once('/var/www/astina/includes/application_main.php')
     (/var/www/astina/includes/application_top.php:13)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/product_info.php:12)                
mysqli::query(): Couldn't fetch mysqli (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

mysqli::query(): Couldn't fetch mysqli

Exception

ErrorException

  1.     $queryHash md5($query);
  2.     if (isset($queries[$queryHash]) && $queries[$queryHash] instanceof mysqli_result && $cache_queries) {
  3.         $result $queries[$queryHash];
  4.         $result->data_seek(0);
  5.     } else {
  6.         $queries[$queryHash] = $result DB()->query($query);
  7.     }
  8.     //forget cache by tables names
  9.     if ($cache_queries && !empty($tables) && $action && in_array($action, ['insert''update''insertodku''delete'])) {
  10.         $tables is_array($tables) ? $tables : [$tables];
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.     $queryHash md5($query);
  2.     if (isset($queries[$queryHash]) && $queries[$queryHash] instanceof mysqli_result && $cache_queries) {
  3.         $result $queries[$queryHash];
  4.         $result->data_seek(0);
  5.     } else {
  6.         $queries[$queryHash] = $result DB()->query($query);
  7.     }
  8.     //forget cache by tables names
  9.     if ($cache_queries && !empty($tables) && $action && in_array($action, ['insert''update''insertodku''delete'])) {
  10.         $tables is_array($tables) ? $tables : [$tables];
  1. }
  2. $configuration_query tep_db_query(
  3.     '
  4.     select configuration_key as cfgKey
  5.          , configuration_value as cfgValue
  6.     from ' TABLE_CONFIGURATION
  7. );
  8. while ($configuration tep_db_fetch_array($configuration_query)) {
  9.     $check_modules_folders explode(':'$configuration['cfgValue']);
  10.     if (
require_once('/var/www/astina/includes/application_main.php') in /var/www/astina/includes/application_top.php (line 13)
  1.     $timer microtime(true);
  2.     $fileName basename(__FILE__);
  3.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $fileName ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  4. }
  5. require_once __DIR__ "/application_main.php";
  6. require_once "app/Classes/Cache/Helpers/FileCacheHelper.php";
  7. $timeZone getenv('TIME_ZONE');
  8. $timeZoneArray explode(' ',$timeZone);
  9. if(!empty($timeZoneArray[0])){
require('/var/www/astina/includes/application_top.php') in /var/www/astina/product_info.php (line 12)
  1. if($_GET['test_debug'] == '123') {
  2.     $timer_product_info microtime(true);
  3.     $file basename(__FILE__);
  4.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $file ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  5. }
  6. require('includes/application_top.php');
  7. checkTime('application_top');
  8. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_PRODUCT_INFO);
  9. if ($languages_id != $lng->defaultLanguage['id']) {

Stack Trace

ErrorException
ErrorException:
mysqli::query(): Couldn't fetch mysqli

  at /var/www/astina/includes/functions/database.php:91
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli->query()
     (/var/www/astina/includes/functions/database.php:91)
  at tep_db_query()
     (/var/www/astina/includes/application_main.php:33)
  at require_once('/var/www/astina/includes/application_main.php')
     (/var/www/astina/includes/application_top.php:13)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/product_info.php:12)                
mysqli_errno(): Couldn't fetch mysqli (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

mysqli_errno(): Couldn't fetch mysqli

Exception

ErrorException

  1.     }
  2.     $query_total_time += $parseTime;
  3.     if (!$result) {
  4.         tep_db_error($querymysqli_errno(DB()), mysqli_error(DB()));
  5.     }
  6.     return $result;
  7. }
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.     }
  2.     $query_total_time += $parseTime;
  3.     if (!$result) {
  4.         tep_db_error($querymysqli_errno(DB()), mysqli_error(DB()));
  5.     }
  6.     return $result;
  7. }
  1. }
  2. $configuration_query tep_db_query(
  3.     '
  4.     select configuration_key as cfgKey
  5.          , configuration_value as cfgValue
  6.     from ' TABLE_CONFIGURATION
  7. );
  8. while ($configuration tep_db_fetch_array($configuration_query)) {
  9.     $check_modules_folders explode(':'$configuration['cfgValue']);
  10.     if (
require_once('/var/www/astina/includes/application_main.php') in /var/www/astina/includes/application_top.php (line 13)
  1.     $timer microtime(true);
  2.     $fileName basename(__FILE__);
  3.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $fileName ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  4. }
  5. require_once __DIR__ "/application_main.php";
  6. require_once "app/Classes/Cache/Helpers/FileCacheHelper.php";
  7. $timeZone getenv('TIME_ZONE');
  8. $timeZoneArray explode(' ',$timeZone);
  9. if(!empty($timeZoneArray[0])){
require('/var/www/astina/includes/application_top.php') in /var/www/astina/product_info.php (line 12)
  1. if($_GET['test_debug'] == '123') {
  2.     $timer_product_info microtime(true);
  3.     $file basename(__FILE__);
  4.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $file ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  5. }
  6. require('includes/application_top.php');
  7. checkTime('application_top');
  8. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_PRODUCT_INFO);
  9. if ($languages_id != $lng->defaultLanguage['id']) {

Stack Trace

ErrorException
ErrorException:
mysqli_errno(): Couldn't fetch mysqli

  at /var/www/astina/includes/functions/database.php:129
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli_errno()
     (/var/www/astina/includes/functions/database.php:129)
  at tep_db_query()
     (/var/www/astina/includes/application_main.php:33)
  at require_once('/var/www/astina/includes/application_main.php')
     (/var/www/astina/includes/application_top.php:13)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/product_info.php:12)                
mysqli_error(): Couldn't fetch mysqli (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

mysqli_error(): Couldn't fetch mysqli

Exception

ErrorException

  1.     }
  2.     $query_total_time += $parseTime;
  3.     if (!$result) {
  4.         tep_db_error($querymysqli_errno(DB()), mysqli_error(DB()));
  5.     }
  6.     return $result;
  7. }
HandleExceptions->handleError() in /var/www/astina/bootstrap/HandleExceptions.php (line 32)
  1.         //ini_set('error_log' , '/home/solomono/web/solomono.net/sites/dev/php.log');
  2.         error_reporting(E_ALL);
  3.         set_error_handler(function ($level$message$file ''$line 0) {
  4.             $this->handleError($level$message$file$line);
  5.         });
  6.         set_exception_handler(function ($e) {
  7.             $this->handleException($e);
  8.         });
HandleExceptions->Bootstrap\{closure}()
  1.     }
  2.     $query_total_time += $parseTime;
  3.     if (!$result) {
  4.         tep_db_error($querymysqli_errno(DB()), mysqli_error(DB()));
  5.     }
  6.     return $result;
  7. }
  1. }
  2. $configuration_query tep_db_query(
  3.     '
  4.     select configuration_key as cfgKey
  5.          , configuration_value as cfgValue
  6.     from ' TABLE_CONFIGURATION
  7. );
  8. while ($configuration tep_db_fetch_array($configuration_query)) {
  9.     $check_modules_folders explode(':'$configuration['cfgValue']);
  10.     if (
require_once('/var/www/astina/includes/application_main.php') in /var/www/astina/includes/application_top.php (line 13)
  1.     $timer microtime(true);
  2.     $fileName basename(__FILE__);
  3.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $fileName ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  4. }
  5. require_once __DIR__ "/application_main.php";
  6. require_once "app/Classes/Cache/Helpers/FileCacheHelper.php";
  7. $timeZone getenv('TIME_ZONE');
  8. $timeZoneArray explode(' ',$timeZone);
  9. if(!empty($timeZoneArray[0])){
require('/var/www/astina/includes/application_top.php') in /var/www/astina/product_info.php (line 12)
  1. if($_GET['test_debug'] == '123') {
  2.     $timer_product_info microtime(true);
  3.     $file basename(__FILE__);
  4.     file_put_contents('test_speed.log',    date('c') . ' "' $_SERVER['REQUEST_URI'].'" Label 0 - ' $file ' - Start speed debug ' PHP_EOL,FILE_APPEND);
  5. }
  6. require('includes/application_top.php');
  7. checkTime('application_top');
  8. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_PRODUCT_INFO);
  9. if ($languages_id != $lng->defaultLanguage['id']) {

Stack Trace

ErrorException
ErrorException:
mysqli_error(): Couldn't fetch mysqli

  at /var/www/astina/includes/functions/database.php:129
  at Bootstrap\HandleExceptions->handleError()
     (/var/www/astina/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli_error()
     (/var/www/astina/includes/functions/database.php:129)
  at tep_db_query()
     (/var/www/astina/includes/application_main.php:33)
  at require_once('/var/www/astina/includes/application_main.php')
     (/var/www/astina/includes/application_top.php:13)
  at require('/var/www/astina/includes/application_top.php')
     (/var/www/astina/product_info.php:12)                
{"errno":false,"error":false,"query":"\n select configuration_key as cfgKey\n , configuration_value as cfgValue\n from configuration","SERVER_NAME":"www.astina.dk","REMOTE_ADDR":"3.15.195.87","HTTP_REFERER":"https:\/\/astina.dk\/03-04-xenon-d2s\/bmw-e60-e61-forlygter-sonar-angeleyes-ccfl-sort-03-04-xenon-d2s-p-30119.html?cPath=32_946","REQUEST_URI":"\/03-04-xenon-d2s\/bmw-e60-e61-forlygter-sonar-angeleyes-ccfl-sort-03-04-xenon-d2s-p-30119.html?cPath=32_946"}