ErrorException

HTTP 500 Whoops, looks like something went wrong.

mysqli::__construct(): (HY000/2002): Permission denied

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__ '/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. $configurations FileCacheHelper::remember(
  7.     'config',
  8.     fn() => tep_db_query(
  9.         'select configuration_key as cfgKey, configuration_value as cfgValue from ' TABLE_CONFIGURATION
require_once('/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php') in /mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php (line 8)
  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
  7. if(getConstantValue('DOMEN_URL','') != '' && getConstantValue('DOMEN_URL') != $_SERVER['HTTP_HOST']){
  8.     header('Location: http://' getConstantValue('DOMEN_URL'));
  9.     exit();
  10. }
require('/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php') in /mnt/test_sites/sites_new/newagriservices.com/product_info.php (line 8)
  1. use JsonLd\Container;
  2. use JsonLd\Product;
  3. use JsonLd\ProductReview;
  4. require('includes/application_top.php');
  5. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_PRODUCT_INFO);
  6. // define current template constants:
  7. $productAvailable false;
  8. $productReviewsArr = [];

Stack Trace

ErrorException
ErrorException:
mysqli::__construct(): (HY000/2002): Permission denied

  at /mnt/test_sites/sites_new/newagriservices.com/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()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/classes/Database/Mysqli/Connector.php:28)
  at Connector->__construct()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/classes/Database/Mysqli/Connector.php:41)
  at Connector::getInstance()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/functions/database.php:9)
  at DB()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/functions/database.php:14)
  at tep_db_connect()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php:25)
  at require_once('/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php')
     (/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php:8)
  at require('/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php')
     (/mnt/test_sites/sites_new/newagriservices.com/product_info.php:8)                
Failed to connect to MySQL: Permission denied<br> SERVER_NAME: www.newagriservices.com<br> SCRIPT_NAME: /product_info.php<br> REQUEST_URI: /bich-az10690-john-deere-/p-179161.html (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

Failed to connect to MySQL: Permission denied<br>
SERVER_NAME: www.newagriservices.com<br>
SCRIPT_NAME: /product_info.php<br>
REQUEST_URI: /bich-az10690-john-deere-/p-179161.html

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__ '/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. $configurations FileCacheHelper::remember(
  7.     'config',
  8.     fn() => tep_db_query(
  9.         'select configuration_key as cfgKey, configuration_value as cfgValue from ' TABLE_CONFIGURATION
require_once('/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php') in /mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php (line 8)
  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
  7. if(getConstantValue('DOMEN_URL','') != '' && getConstantValue('DOMEN_URL') != $_SERVER['HTTP_HOST']){
  8.     header('Location: http://' getConstantValue('DOMEN_URL'));
  9.     exit();
  10. }
require('/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php') in /mnt/test_sites/sites_new/newagriservices.com/product_info.php (line 8)
  1. use JsonLd\Container;
  2. use JsonLd\Product;
  3. use JsonLd\ProductReview;
  4. require('includes/application_top.php');
  5. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_PRODUCT_INFO);
  6. // define current template constants:
  7. $productAvailable false;
  8. $productReviewsArr = [];

Stack Trace

ErrorException
ErrorException:
Failed to connect to MySQL: Permission denied<br>
                SERVER_NAME: www.newagriservices.com<br>
                SCRIPT_NAME: /product_info.php<br>
                REQUEST_URI: /bich-az10690-john-deere-/p-179161.html

  at /mnt/test_sites/sites_new/newagriservices.com/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()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/classes/Database/AbstractDbConnection.php:76)
  at AbstractDbConnection->__construct()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/classes/Database/Mysqli/Connector.php:31)
  at Connector->__construct()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/classes/Database/Mysqli/Connector.php:41)
  at Connector::getInstance()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/functions/database.php:9)
  at DB()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/functions/database.php:14)
  at tep_db_connect()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php:25)
  at require_once('/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php')
     (/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php:8)
  at require('/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php')
     (/mnt/test_sites/sites_new/newagriservices.com/product_info.php:8)                
Failed to connect to MySQL: Permission denied<br> SERVER_NAME: www.newagriservices.com<br> SCRIPT_NAME: /product_info.php<br> REQUEST_URI: /bich-az10690-john-deere-/p-179161.html (500 Whoops, looks like something went wrong.)

ErrorException

HTTP 500 Whoops, looks like something went wrong.

Failed to connect to MySQL: Permission denied<br>
SERVER_NAME: www.newagriservices.com<br>
SCRIPT_NAME: /product_info.php<br>
REQUEST_URI: /bich-az10690-john-deere-/p-179161.html

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__ '/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. $configurations FileCacheHelper::remember(
  7.     'config',
  8.     fn() => tep_db_query(
  9.         'select configuration_key as cfgKey, configuration_value as cfgValue from ' TABLE_CONFIGURATION
require_once('/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php') in /mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php (line 8)
  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
  7. if(getConstantValue('DOMEN_URL','') != '' && getConstantValue('DOMEN_URL') != $_SERVER['HTTP_HOST']){
  8.     header('Location: http://' getConstantValue('DOMEN_URL'));
  9.     exit();
  10. }
require('/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php') in /mnt/test_sites/sites_new/newagriservices.com/product_info.php (line 8)
  1. use JsonLd\Container;
  2. use JsonLd\Product;
  3. use JsonLd\ProductReview;
  4. require('includes/application_top.php');
  5. includeLanguages(DIR_WS_LANGUAGES $language '/' FILENAME_PRODUCT_INFO);
  6. // define current template constants:
  7. $productAvailable false;
  8. $productReviewsArr = [];

Stack Trace

ErrorException
ErrorException:
Failed to connect to MySQL: Permission denied<br>
                SERVER_NAME: www.newagriservices.com<br>
                SCRIPT_NAME: /product_info.php<br>
                REQUEST_URI: /bich-az10690-john-deere-/p-179161.html

  at /mnt/test_sites/sites_new/newagriservices.com/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()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/classes/Database/AbstractDbConnection.php:76)
  at AbstractDbConnection->__construct()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/classes/Database/Mysqli/Connector.php:31)
  at Connector->__construct()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/classes/Database/Mysqli/Connector.php:41)
  at Connector::getInstance()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/functions/database.php:9)
  at DB()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/functions/database.php:14)
  at tep_db_connect()
     (/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php:25)
  at require_once('/mnt/test_sites/sites_new/newagriservices.com/includes/application_main.php')
     (/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php:8)
  at require('/mnt/test_sites/sites_new/newagriservices.com/includes/application_top.php')
     (/mnt/test_sites/sites_new/newagriservices.com/product_info.php:8)