ErrorException

HTTP 500 Whoops, looks like something went wrong.

mysqli::__construct(): (HY000/1049): Unknown database 'test_t250914729'

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.     }
  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. }
  1. require_once __DIR__ '/../classes/Database/Mysqli/Connector.php';
  2. function DB(): mysqli
  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.     $timeZoneArray explode(' 'DB_TIME_ZONE);
  1. require_once __DIR__ '/database_tables.php';
  2. require_once DIR_WS_FUNCTIONS 'database.php';
  3. require_once __DIR__ '/functions/constants.php';
  4. tep_db_connect() or die('Unable to connect to database server!');
  5. $configurations FileCacheHelper::remember(
  6.     FileCacheHelper::CONFIGURATIONS_KEY,
  7.     function () {
  8.         $configurations tep_db_query(
require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_top.php (line 10)
  1. define('PAGE_PARSE_START_TIME'microtime(true));
  2. define("SECONDS_PER_WEEK"604800);
  3. header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
  4. $saveDbPrepareInput = [];
  5. require_once __DIR__ "/application_main.php";
  6. //redirect to a new domain name not for localhost
  7. $localHosts = [
  8.     'localhost',
  9.     '127.0.0.1',
  10.     '::1'
require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php') in /mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php (line 5)
  1. <?php
  2. $rootPath dirname($_SERVER['SCRIPT_FILENAME']);
  3. $sideApp true;
  4. require $rootPath '/includes/application_top.php';
  5. if (file_exists($rootPath '/ext/export_google_sitemap/check.php')) {
  6.     require_once $rootPath '/ext/export_google_sitemap/check.php';
  7.     $googleSitemapPath $rootPath '/ext/export_google_sitemap/sitemap.php';
  8.     if (file_exists($googleSitemapPath) && defined('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') && constant('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') == 'true') {
  9.         require($googleSitemapPath);

Stack Trace

ErrorException
ErrorException:
mysqli::__construct(): (HY000/1049): Unknown database 'test_t250914729'

  at /home/solomono/web/solomono.net/sites/demo/includes/classes/Database/Mysqli/Connector.php:28
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli->__construct()
     (/home/solomono/web/solomono.net/sites/demo/includes/classes/Database/Mysqli/Connector.php:28)
  at Connector->__construct()
     (/home/solomono/web/solomono.net/sites/demo/includes/classes/Database/Mysqli/Connector.php:41)
  at Connector::getInstance()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:10)
  at DB()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:15)
  at tep_db_connect()
     (/home/solomono/web/solomono.net/sites/demo/includes/application_main.php:24)
  at require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_top.php:10)
  at require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php')
     (/mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php:5)                
Failed to connect to MySQL: Unknown database 'test_t250914729'<br> SERVER_NAME: chasyshop.com.ua<br> SCRIPT_NAME: /sitemap.php<br> REQUEST_URI: /sitemap.xml (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

Failed to connect to MySQL: Unknown database 'test_t250914729'<br>
SERVER_NAME: chasyshop.com.ua<br>
SCRIPT_NAME: /sitemap.php<br>
REQUEST_URI: /sitemap.xml

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.     }
  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.     }
  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. }
  1. require_once __DIR__ '/../classes/Database/Mysqli/Connector.php';
  2. function DB(): mysqli
  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.     $timeZoneArray explode(' 'DB_TIME_ZONE);
  1. require_once __DIR__ '/database_tables.php';
  2. require_once DIR_WS_FUNCTIONS 'database.php';
  3. require_once __DIR__ '/functions/constants.php';
  4. tep_db_connect() or die('Unable to connect to database server!');
  5. $configurations FileCacheHelper::remember(
  6.     FileCacheHelper::CONFIGURATIONS_KEY,
  7.     function () {
  8.         $configurations tep_db_query(
require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_top.php (line 10)
  1. define('PAGE_PARSE_START_TIME'microtime(true));
  2. define("SECONDS_PER_WEEK"604800);
  3. header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
  4. $saveDbPrepareInput = [];
  5. require_once __DIR__ "/application_main.php";
  6. //redirect to a new domain name not for localhost
  7. $localHosts = [
  8.     'localhost',
  9.     '127.0.0.1',
  10.     '::1'
require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php') in /mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php (line 5)
  1. <?php
  2. $rootPath dirname($_SERVER['SCRIPT_FILENAME']);
  3. $sideApp true;
  4. require $rootPath '/includes/application_top.php';
  5. if (file_exists($rootPath '/ext/export_google_sitemap/check.php')) {
  6.     require_once $rootPath '/ext/export_google_sitemap/check.php';
  7.     $googleSitemapPath $rootPath '/ext/export_google_sitemap/sitemap.php';
  8.     if (file_exists($googleSitemapPath) && defined('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') && constant('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') == 'true') {
  9.         require($googleSitemapPath);

Stack Trace

ErrorException
ErrorException:
Failed to connect to MySQL: Unknown database 'test_t250914729'<br>
                SERVER_NAME: chasyshop.com.ua<br>
                SCRIPT_NAME: /sitemap.php<br>
                REQUEST_URI: /sitemap.xml

  at /home/solomono/web/solomono.net/sites/demo/includes/classes/Database/AbstractDbConnection.php:76
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at trigger_error()
     (/home/solomono/web/solomono.net/sites/demo/includes/classes/Database/AbstractDbConnection.php:76)
  at AbstractDbConnection->__construct()
     (/home/solomono/web/solomono.net/sites/demo/includes/classes/Database/Mysqli/Connector.php:31)
  at Connector->__construct()
     (/home/solomono/web/solomono.net/sites/demo/includes/classes/Database/Mysqli/Connector.php:41)
  at Connector::getInstance()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:10)
  at DB()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:15)
  at tep_db_connect()
     (/home/solomono/web/solomono.net/sites/demo/includes/application_main.php:24)
  at require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_top.php:10)
  at require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php')
     (/mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php:5)                
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.     $timeZoneArray explode(' 'DB_TIME_ZONE);
  8.     if ( !empty($timeZoneArray[1])) {
  9.         $link->query("SET @@session.time_zone = '" str_replace(['('')'],''$timeZoneArray[1]) . "';");
  10.     }
  11.     if (getenv('SET_CHARACTER') != false) {
  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.     $timeZoneArray explode(' 'DB_TIME_ZONE);
  8.     if ( !empty($timeZoneArray[1])) {
  9.         $link->query("SET @@session.time_zone = '" str_replace(['('')'],''$timeZoneArray[1]) . "';");
  10.     }
  11.     if (getenv('SET_CHARACTER') != false) {
  1. require_once __DIR__ '/database_tables.php';
  2. require_once DIR_WS_FUNCTIONS 'database.php';
  3. require_once __DIR__ '/functions/constants.php';
  4. tep_db_connect() or die('Unable to connect to database server!');
  5. $configurations FileCacheHelper::remember(
  6.     FileCacheHelper::CONFIGURATIONS_KEY,
  7.     function () {
  8.         $configurations tep_db_query(
require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_top.php (line 10)
  1. define('PAGE_PARSE_START_TIME'microtime(true));
  2. define("SECONDS_PER_WEEK"604800);
  3. header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
  4. $saveDbPrepareInput = [];
  5. require_once __DIR__ "/application_main.php";
  6. //redirect to a new domain name not for localhost
  7. $localHosts = [
  8.     'localhost',
  9.     '127.0.0.1',
  10.     '::1'
require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php') in /mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php (line 5)
  1. <?php
  2. $rootPath dirname($_SERVER['SCRIPT_FILENAME']);
  3. $sideApp true;
  4. require $rootPath '/includes/application_top.php';
  5. if (file_exists($rootPath '/ext/export_google_sitemap/check.php')) {
  6.     require_once $rootPath '/ext/export_google_sitemap/check.php';
  7.     $googleSitemapPath $rootPath '/ext/export_google_sitemap/sitemap.php';
  8.     if (file_exists($googleSitemapPath) && defined('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') && constant('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') == 'true') {
  9.         require($googleSitemapPath);

Stack Trace

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

  at /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:19
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli->query()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:19)
  at tep_db_connect()
     (/home/solomono/web/solomono.net/sites/demo/includes/application_main.php:24)
  at require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_top.php:10)
  at require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php')
     (/mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php:5)                
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.         $link->query("SET NAMES '".getenv('SET_NAMES')."'");
  2.     }
  3.     $link->query("SET SESSION sql_mode=''");
  4.     $timeZoneArray explode(' 'DB_TIME_ZONE);
  5.     if ( !empty($timeZoneArray[1])) {
  6.         $link->query("SET @@session.time_zone = '" str_replace(['('')'],''$timeZoneArray[1]) . "';");
  7.     }
  8.     if (getenv('SET_CHARACTER') != false) {
  9.         $link->query("SET CHARACTER '" getenv('SET_CHARACTER') . "'");
  10.     }
  11.     return $link;
  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.         $link->query("SET NAMES '".getenv('SET_NAMES')."'");
  2.     }
  3.     $link->query("SET SESSION sql_mode=''");
  4.     $timeZoneArray explode(' 'DB_TIME_ZONE);
  5.     if ( !empty($timeZoneArray[1])) {
  6.         $link->query("SET @@session.time_zone = '" str_replace(['('')'],''$timeZoneArray[1]) . "';");
  7.     }
  8.     if (getenv('SET_CHARACTER') != false) {
  9.         $link->query("SET CHARACTER '" getenv('SET_CHARACTER') . "'");
  10.     }
  11.     return $link;
  1. require_once __DIR__ '/database_tables.php';
  2. require_once DIR_WS_FUNCTIONS 'database.php';
  3. require_once __DIR__ '/functions/constants.php';
  4. tep_db_connect() or die('Unable to connect to database server!');
  5. $configurations FileCacheHelper::remember(
  6.     FileCacheHelper::CONFIGURATIONS_KEY,
  7.     function () {
  8.         $configurations tep_db_query(
require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_top.php (line 10)
  1. define('PAGE_PARSE_START_TIME'microtime(true));
  2. define("SECONDS_PER_WEEK"604800);
  3. header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
  4. $saveDbPrepareInput = [];
  5. require_once __DIR__ "/application_main.php";
  6. //redirect to a new domain name not for localhost
  7. $localHosts = [
  8.     'localhost',
  9.     '127.0.0.1',
  10.     '::1'
require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php') in /mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php (line 5)
  1. <?php
  2. $rootPath dirname($_SERVER['SCRIPT_FILENAME']);
  3. $sideApp true;
  4. require $rootPath '/includes/application_top.php';
  5. if (file_exists($rootPath '/ext/export_google_sitemap/check.php')) {
  6.     require_once $rootPath '/ext/export_google_sitemap/check.php';
  7.     $googleSitemapPath $rootPath '/ext/export_google_sitemap/sitemap.php';
  8.     if (file_exists($googleSitemapPath) && defined('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') && constant('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') == 'true') {
  9.         require($googleSitemapPath);

Stack Trace

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

  at /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:22
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli->query()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:22)
  at tep_db_connect()
     (/home/solomono/web/solomono.net/sites/demo/includes/application_main.php:24)
  at require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_top.php:10)
  at require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php')
     (/mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php:5)                
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.     if (isset($queries[$queryHash]) && $queries[$queryHash] instanceof mysqli_result && $cache_queries) {
  2.         $result $queries[$queryHash];
  3.         $result->data_seek(0);
  4.     } else {
  5.         $queries[$queryHash] = $result DB()->query($query);
  6.     }
  7.     //forget cache by tables names
  8.     if ($cache_queries && !empty($tables) && $action && in_array($action, ['insert''update''insertodku''delete'])) {
  9.         $tables is_array($tables) ? $tables : [$tables];
  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.     if (isset($queries[$queryHash]) && $queries[$queryHash] instanceof mysqli_result && $cache_queries) {
  2.         $result $queries[$queryHash];
  3.         $result->data_seek(0);
  4.     } else {
  5.         $queries[$queryHash] = $result DB()->query($query);
  6.     }
  7.     //forget cache by tables names
  8.     if ($cache_queries && !empty($tables) && $action && in_array($action, ['insert''update''insertodku''delete'])) {
  9.         $tables is_array($tables) ? $tables : [$tables];
  1. if (mb_strtolower(SITE_UNDER_MAINTENANCE) === 'false') {
  2.     //Check if migration is needed
  3.     $sqlFiles glob(__DIR__ '/../api/migration/up/*.sql');
  4.     $lastVersion basename(end($sqlFiles));
  5.     if (tep_db_query'select SQL_NO_CACHE configuration_value from ' TABLE_CONFIGURATION ' WHERE configuration_key="MIGRATION_VERSION" # prevent cache' microtime(true)
  6.         )->fetch_row()[0] !== $lastVersion) {
  7.         //check if anyone else started migration
  8.         if (@defined('MIGRATION_IN_PROGRESS') && MIGRATION_IN_PROGRESS && (int)MIGRATION_IN_PROGRESS +60*time()) { //5 min wait
  9.             TryGoForMaintenance();
  10.         } else {
include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_main.php (line 67)
  1. require_once DIR_WS_FUNCTIONS 'general.php';
  2. require_once DIR_WS_FUNCTIONS 'constants.php';
  3. ob_start();
  4. include_once $rootPath DIR_WS_INCLUDES 'migration.php';
  5. ob_get_clean();
  6. require_once DIR_WS_FUNCTIONS 'html_output.php';
  7. require_once DIR_WS_FUNCTIONS 'extra_product_price.php';
  8. require_once DIR_WS_CLASSES 'shopping_cart.php';
require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_top.php (line 10)
  1. define('PAGE_PARSE_START_TIME'microtime(true));
  2. define("SECONDS_PER_WEEK"604800);
  3. header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
  4. $saveDbPrepareInput = [];
  5. require_once __DIR__ "/application_main.php";
  6. //redirect to a new domain name not for localhost
  7. $localHosts = [
  8.     'localhost',
  9.     '127.0.0.1',
  10.     '::1'
require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php') in /mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php (line 5)
  1. <?php
  2. $rootPath dirname($_SERVER['SCRIPT_FILENAME']);
  3. $sideApp true;
  4. require $rootPath '/includes/application_top.php';
  5. if (file_exists($rootPath '/ext/export_google_sitemap/check.php')) {
  6.     require_once $rootPath '/ext/export_google_sitemap/check.php';
  7.     $googleSitemapPath $rootPath '/ext/export_google_sitemap/sitemap.php';
  8.     if (file_exists($googleSitemapPath) && defined('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') && constant('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') == 'true') {
  9.         require($googleSitemapPath);

Stack Trace

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

  at /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:121
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli->query()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:121)
  at tep_db_query()
     (/home/solomono/web/solomono.net/sites/demo/includes/migration.php:29)
  at include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_main.php:67)
  at require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_top.php:10)
  at require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php')
     (/mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php:5)                
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.     \App\Logger\Log::channel('db_query')->info('Query info',[
  7.         'time' => $parseTime,
  8.         'SCRIPT_FILENAME' => $_SERVER["SCRIPT_FILENAME"],
  9.         'query' => tep_db_prepare_input($query),
  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.     \App\Logger\Log::channel('db_query')->info('Query info',[
  7.         'time' => $parseTime,
  8.         'SCRIPT_FILENAME' => $_SERVER["SCRIPT_FILENAME"],
  9.         'query' => tep_db_prepare_input($query),
  1. if (mb_strtolower(SITE_UNDER_MAINTENANCE) === 'false') {
  2.     //Check if migration is needed
  3.     $sqlFiles glob(__DIR__ '/../api/migration/up/*.sql');
  4.     $lastVersion basename(end($sqlFiles));
  5.     if (tep_db_query'select SQL_NO_CACHE configuration_value from ' TABLE_CONFIGURATION ' WHERE configuration_key="MIGRATION_VERSION" # prevent cache' microtime(true)
  6.         )->fetch_row()[0] !== $lastVersion) {
  7.         //check if anyone else started migration
  8.         if (@defined('MIGRATION_IN_PROGRESS') && MIGRATION_IN_PROGRESS && (int)MIGRATION_IN_PROGRESS +60*time()) { //5 min wait
  9.             TryGoForMaintenance();
  10.         } else {
include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_main.php (line 67)
  1. require_once DIR_WS_FUNCTIONS 'general.php';
  2. require_once DIR_WS_FUNCTIONS 'constants.php';
  3. ob_start();
  4. include_once $rootPath DIR_WS_INCLUDES 'migration.php';
  5. ob_get_clean();
  6. require_once DIR_WS_FUNCTIONS 'html_output.php';
  7. require_once DIR_WS_FUNCTIONS 'extra_product_price.php';
  8. require_once DIR_WS_CLASSES 'shopping_cart.php';
require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_top.php (line 10)
  1. define('PAGE_PARSE_START_TIME'microtime(true));
  2. define("SECONDS_PER_WEEK"604800);
  3. header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
  4. $saveDbPrepareInput = [];
  5. require_once __DIR__ "/application_main.php";
  6. //redirect to a new domain name not for localhost
  7. $localHosts = [
  8.     'localhost',
  9.     '127.0.0.1',
  10.     '::1'
require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php') in /mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php (line 5)
  1. <?php
  2. $rootPath dirname($_SERVER['SCRIPT_FILENAME']);
  3. $sideApp true;
  4. require $rootPath '/includes/application_top.php';
  5. if (file_exists($rootPath '/ext/export_google_sitemap/check.php')) {
  6.     require_once $rootPath '/ext/export_google_sitemap/check.php';
  7.     $googleSitemapPath $rootPath '/ext/export_google_sitemap/sitemap.php';
  8.     if (file_exists($googleSitemapPath) && defined('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') && constant('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') == 'true') {
  9.         require($googleSitemapPath);

Stack Trace

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

  at /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:161
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli_errno()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:161)
  at tep_db_query()
     (/home/solomono/web/solomono.net/sites/demo/includes/migration.php:29)
  at include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_main.php:67)
  at require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_top.php:10)
  at require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php')
     (/mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php:5)                
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.     \App\Logger\Log::channel('db_query')->info('Query info',[
  7.         'time' => $parseTime,
  8.         'SCRIPT_FILENAME' => $_SERVER["SCRIPT_FILENAME"],
  9.         'query' => tep_db_prepare_input($query),
  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.     \App\Logger\Log::channel('db_query')->info('Query info',[
  7.         'time' => $parseTime,
  8.         'SCRIPT_FILENAME' => $_SERVER["SCRIPT_FILENAME"],
  9.         'query' => tep_db_prepare_input($query),
  1. if (mb_strtolower(SITE_UNDER_MAINTENANCE) === 'false') {
  2.     //Check if migration is needed
  3.     $sqlFiles glob(__DIR__ '/../api/migration/up/*.sql');
  4.     $lastVersion basename(end($sqlFiles));
  5.     if (tep_db_query'select SQL_NO_CACHE configuration_value from ' TABLE_CONFIGURATION ' WHERE configuration_key="MIGRATION_VERSION" # prevent cache' microtime(true)
  6.         )->fetch_row()[0] !== $lastVersion) {
  7.         //check if anyone else started migration
  8.         if (@defined('MIGRATION_IN_PROGRESS') && MIGRATION_IN_PROGRESS && (int)MIGRATION_IN_PROGRESS +60*time()) { //5 min wait
  9.             TryGoForMaintenance();
  10.         } else {
include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_main.php (line 67)
  1. require_once DIR_WS_FUNCTIONS 'general.php';
  2. require_once DIR_WS_FUNCTIONS 'constants.php';
  3. ob_start();
  4. include_once $rootPath DIR_WS_INCLUDES 'migration.php';
  5. ob_get_clean();
  6. require_once DIR_WS_FUNCTIONS 'html_output.php';
  7. require_once DIR_WS_FUNCTIONS 'extra_product_price.php';
  8. require_once DIR_WS_CLASSES 'shopping_cart.php';
require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_top.php (line 10)
  1. define('PAGE_PARSE_START_TIME'microtime(true));
  2. define("SECONDS_PER_WEEK"604800);
  3. header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
  4. $saveDbPrepareInput = [];
  5. require_once __DIR__ "/application_main.php";
  6. //redirect to a new domain name not for localhost
  7. $localHosts = [
  8.     'localhost',
  9.     '127.0.0.1',
  10.     '::1'
require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php') in /mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php (line 5)
  1. <?php
  2. $rootPath dirname($_SERVER['SCRIPT_FILENAME']);
  3. $sideApp true;
  4. require $rootPath '/includes/application_top.php';
  5. if (file_exists($rootPath '/ext/export_google_sitemap/check.php')) {
  6.     require_once $rootPath '/ext/export_google_sitemap/check.php';
  7.     $googleSitemapPath $rootPath '/ext/export_google_sitemap/sitemap.php';
  8.     if (file_exists($googleSitemapPath) && defined('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') && constant('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') == 'true') {
  9.         require($googleSitemapPath);

Stack Trace

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

  at /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:161
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
  at mysqli_error()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:161)
  at tep_db_query()
     (/home/solomono/web/solomono.net/sites/demo/includes/migration.php:29)
  at include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_main.php:67)
  at require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_top.php:10)
  at require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php')
     (/mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php:5)                
tep_db_error(): Couldn't fetch mysqli (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

tep_db_error(): Couldn't fetch mysqli

Exception

ErrorException

  1.     // Sometimes mysqli_errno/mysqli_error can be empty/false depending on PHP/MySQLi state.
  2.     // Try to extract the most relevant error details directly from the current connection.
  3.     try {
  4.         $conn DB();
  5.         if (($errno === false || $errno === null || $errno === || $errno === '0') && $conn instanceof mysqli) {
  6.             $errno $conn->errno ?: $conn->connect_errno;
  7.         }
  8.         if (($error === false || $error === null || $error === '') && $conn instanceof mysqli) {
  9.             $error $conn->error ?: $conn->connect_error;
  10.         }
  11.     } catch (Throwable $e) {
  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}() in /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php (line 49)
  1.     // Sometimes mysqli_errno/mysqli_error can be empty/false depending on PHP/MySQLi state.
  2.     // Try to extract the most relevant error details directly from the current connection.
  3.     try {
  4.         $conn DB();
  5.         if (($errno === false || $errno === null || $errno === || $errno === '0') && $conn instanceof mysqli) {
  6.             $errno $conn->errno ?: $conn->connect_errno;
  7.         }
  8.         if (($error === false || $error === null || $error === '') && $conn instanceof mysqli) {
  9.             $error $conn->error ?: $conn->connect_error;
  10.         }
  11.     } catch (Throwable $e) {
  1.     }
  2.     $query_total_time += $parseTime;
  3.     if (!$result) {
  4.         tep_db_error($querymysqli_errno(DB()), mysqli_error(DB()));
  5.     }
  6.     \App\Logger\Log::channel('db_query')->info('Query info',[
  7.         'time' => $parseTime,
  8.         'SCRIPT_FILENAME' => $_SERVER["SCRIPT_FILENAME"],
  9.         'query' => tep_db_prepare_input($query),
  1. if (mb_strtolower(SITE_UNDER_MAINTENANCE) === 'false') {
  2.     //Check if migration is needed
  3.     $sqlFiles glob(__DIR__ '/../api/migration/up/*.sql');
  4.     $lastVersion basename(end($sqlFiles));
  5.     if (tep_db_query'select SQL_NO_CACHE configuration_value from ' TABLE_CONFIGURATION ' WHERE configuration_key="MIGRATION_VERSION" # prevent cache' microtime(true)
  6.         )->fetch_row()[0] !== $lastVersion) {
  7.         //check if anyone else started migration
  8.         if (@defined('MIGRATION_IN_PROGRESS') && MIGRATION_IN_PROGRESS && (int)MIGRATION_IN_PROGRESS +60*time()) { //5 min wait
  9.             TryGoForMaintenance();
  10.         } else {
include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_main.php (line 67)
  1. require_once DIR_WS_FUNCTIONS 'general.php';
  2. require_once DIR_WS_FUNCTIONS 'constants.php';
  3. ob_start();
  4. include_once $rootPath DIR_WS_INCLUDES 'migration.php';
  5. ob_get_clean();
  6. require_once DIR_WS_FUNCTIONS 'html_output.php';
  7. require_once DIR_WS_FUNCTIONS 'extra_product_price.php';
  8. require_once DIR_WS_CLASSES 'shopping_cart.php';
require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_top.php (line 10)
  1. define('PAGE_PARSE_START_TIME'microtime(true));
  2. define("SECONDS_PER_WEEK"604800);
  3. header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
  4. $saveDbPrepareInput = [];
  5. require_once __DIR__ "/application_main.php";
  6. //redirect to a new domain name not for localhost
  7. $localHosts = [
  8.     'localhost',
  9.     '127.0.0.1',
  10.     '::1'
require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php') in /mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php (line 5)
  1. <?php
  2. $rootPath dirname($_SERVER['SCRIPT_FILENAME']);
  3. $sideApp true;
  4. require $rootPath '/includes/application_top.php';
  5. if (file_exists($rootPath '/ext/export_google_sitemap/check.php')) {
  6.     require_once $rootPath '/ext/export_google_sitemap/check.php';
  7.     $googleSitemapPath $rootPath '/ext/export_google_sitemap/sitemap.php';
  8.     if (file_exists($googleSitemapPath) && defined('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') && constant('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') == 'true') {
  9.         require($googleSitemapPath);

Stack Trace

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

  at /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:49
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:49)
  at tep_db_error()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:161)
  at tep_db_query()
     (/home/solomono/web/solomono.net/sites/demo/includes/migration.php:29)
  at include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_main.php:67)
  at require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_top.php:10)
  at require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php')
     (/mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php:5)                
tep_db_error(): Couldn't fetch mysqli (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

tep_db_error(): Couldn't fetch mysqli

Exception

ErrorException

  1.         $conn DB();
  2.         if (($errno === false || $errno === null || $errno === || $errno === '0') && $conn instanceof mysqli) {
  3.             $errno $conn->errno ?: $conn->connect_errno;
  4.         }
  5.         if (($error === false || $error === null || $error === '') && $conn instanceof mysqli) {
  6.             $error $conn->error ?: $conn->connect_error;
  7.         }
  8.     } catch (Throwable $e) {
  9.         // ignore - we still want to log the original values
  10.     }
  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}() in /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php (line 52)
  1.         $conn DB();
  2.         if (($errno === false || $errno === null || $errno === || $errno === '0') && $conn instanceof mysqli) {
  3.             $errno $conn->errno ?: $conn->connect_errno;
  4.         }
  5.         if (($error === false || $error === null || $error === '') && $conn instanceof mysqli) {
  6.             $error $conn->error ?: $conn->connect_error;
  7.         }
  8.     } catch (Throwable $e) {
  9.         // ignore - we still want to log the original values
  10.     }
  1.     }
  2.     $query_total_time += $parseTime;
  3.     if (!$result) {
  4.         tep_db_error($querymysqli_errno(DB()), mysqli_error(DB()));
  5.     }
  6.     \App\Logger\Log::channel('db_query')->info('Query info',[
  7.         'time' => $parseTime,
  8.         'SCRIPT_FILENAME' => $_SERVER["SCRIPT_FILENAME"],
  9.         'query' => tep_db_prepare_input($query),
  1. if (mb_strtolower(SITE_UNDER_MAINTENANCE) === 'false') {
  2.     //Check if migration is needed
  3.     $sqlFiles glob(__DIR__ '/../api/migration/up/*.sql');
  4.     $lastVersion basename(end($sqlFiles));
  5.     if (tep_db_query'select SQL_NO_CACHE configuration_value from ' TABLE_CONFIGURATION ' WHERE configuration_key="MIGRATION_VERSION" # prevent cache' microtime(true)
  6.         )->fetch_row()[0] !== $lastVersion) {
  7.         //check if anyone else started migration
  8.         if (@defined('MIGRATION_IN_PROGRESS') && MIGRATION_IN_PROGRESS && (int)MIGRATION_IN_PROGRESS +60*time()) { //5 min wait
  9.             TryGoForMaintenance();
  10.         } else {
include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_main.php (line 67)
  1. require_once DIR_WS_FUNCTIONS 'general.php';
  2. require_once DIR_WS_FUNCTIONS 'constants.php';
  3. ob_start();
  4. include_once $rootPath DIR_WS_INCLUDES 'migration.php';
  5. ob_get_clean();
  6. require_once DIR_WS_FUNCTIONS 'html_output.php';
  7. require_once DIR_WS_FUNCTIONS 'extra_product_price.php';
  8. require_once DIR_WS_CLASSES 'shopping_cart.php';
require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php') in /home/solomono/web/solomono.net/sites/demo/includes/application_top.php (line 10)
  1. define('PAGE_PARSE_START_TIME'microtime(true));
  2. define("SECONDS_PER_WEEK"604800);
  3. header("Content-Security-Policy: default-src data: * 'unsafe-inline' 'unsafe-eval'; frame-ancestors 'none';");
  4. $saveDbPrepareInput = [];
  5. require_once __DIR__ "/application_main.php";
  6. //redirect to a new domain name not for localhost
  7. $localHosts = [
  8.     'localhost',
  9.     '127.0.0.1',
  10.     '::1'
require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php') in /mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php (line 5)
  1. <?php
  2. $rootPath dirname($_SERVER['SCRIPT_FILENAME']);
  3. $sideApp true;
  4. require $rootPath '/includes/application_top.php';
  5. if (file_exists($rootPath '/ext/export_google_sitemap/check.php')) {
  6.     require_once $rootPath '/ext/export_google_sitemap/check.php';
  7.     $googleSitemapPath $rootPath '/ext/export_google_sitemap/sitemap.php';
  8.     if (file_exists($googleSitemapPath) && defined('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') && constant('EXPORT_GOOGLE_SITEMAP_MODULE_ENABLED') == 'true') {
  9.         require($googleSitemapPath);

Stack Trace

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

  at /home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:52
  at Bootstrap\HandleExceptions->handleError()
     (/home/solomono/web/solomono.net/sites/demo/bootstrap/HandleExceptions.php:32)
  at Bootstrap\HandleExceptions->Bootstrap\{closure}()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:52)
  at tep_db_error()
     (/home/solomono/web/solomono.net/sites/demo/includes/functions/database.php:161)
  at tep_db_query()
     (/home/solomono/web/solomono.net/sites/demo/includes/migration.php:29)
  at include_once('/home/solomono/web/solomono.net/sites/demo/includes/migration.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_main.php:67)
  at require_once('/home/solomono/web/solomono.net/sites/demo/includes/application_main.php')
     (/home/solomono/web/solomono.net/sites/demo/includes/application_top.php:10)
  at require('/home/solomono/web/solomono.net/sites/demo/includes/application_top.php')
     (/mnt/test_sites/sites_new/chasyshop.com.ua/sitemap.php:5)                
{"error":true,"message":"Internal DB error."}