Unhandled Error!

Error connecting to the database.

Hint

This problem could be caused by the LemonStand MySQL connection configuration errors. Please log into the LemonStand Configuration Tool and update the database connection parameters. Also please make sure that MySQL server is running.

Document /phproad/modules/db/classes/db_mysqlidriver.php
Document type PHP document
Line 83
Exception class Phpr_DatabaseException

Code Highlight

 
            // Set SQL Mode
            mysqli_query(Db::$connection, 'SET sql_mode=""');
 
            Phpr_ErrorLog::$disable_db_logging = false;
        } catch (Exception $ex) {
            $exception = new Phpr_DatabaseException($ex->getMessage());
            $exception->hint_message = 'This problem could be caused by the LemonStand MySQL connection configuration errors. Please log into the LemonStand Configuration Tool and update the database connection parameters. Also please make sure that MySQL server is running.';
            throw $exception;
        }
    }
 
    public function reconnect()
# Call Stack Code Document Line
17 Db_MySQLiDriver->connect(()) /phproad/modules/db/classes/db_mysqlidriver.php 102
16 Db_MySQLiDriver->execute(()) /phproad/modules/db/classes/db_mysqlidriver.php 219
15 Db_MySQLiDriver->fetchAll(()) /phproad/modules/db/classes/db_mysqlidriver.php 195
14 Db_MySQLiDriver->describe_table(()) /phproad/modules/db/classes/db_sqlbase.php 491
13 Db_SqlBase->describe_table(()) /phproad/modules/db/classes/db_activerecord.php 1453
12 Db_ActiveRecord->fields(()) /phproad/modules/db/classes/db_activerecord.php 423
11 Db_ActiveRecord->initialize(()) /phproad/modules/db/classes/db_activerecord.php 375
10 Db_ActiveRecord->__construct(()) /modules/cms/models/cms_partial.php 43
9 Cms_Partial::create(()) /modules/shopproductfilters/classes/shopproductfilters_module.php 30
8 ShopProductFilters_module->registerPartials(()) /modules/shopproductfilters/classes/shopproductfilters_module.php 26
7 ShopProductFilters_module->subscribeEvents(()) /modules/core/classes/core_modulemanager.php 64
6 Core_ModuleManager::listModules(()) /modules/backend/init/custom_helpers.php 13
5 include('/var/www/vhosts/tradeproductsdirect.co.uk/httpdocs/modules/backend/init/custom_helpers.php') /phproad/system/initialize.php 175
4 init_lemonstand_modules(()) /phproad/system/initialize.php 184
3 include('/var/www/vhosts/tradeproductsdirect.co.uk/httpdocs/phproad/system/initialize.php') /phproad/system/phproad.php 24
2 include('/var/www/vhosts/tradeproductsdirect.co.uk/httpdocs/phproad/system/phproad.php') /boot.php 120
1 require_once('/var/www/vhosts/tradeproductsdirect.co.uk/httpdocs/boot.php') /index.php 3