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 73
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
18 Db_MySQLiDriver->connect(()) /phproad/modules/db/classes/db_mysqlidriver.php 94
17 Db_MySQLiDriver->execute('DESCRIBE core_configuration_records') /phproad/modules/db/classes/db_mysqlidriver.php 212
16 Db_MySQLiDriver->fetchAll('DESCRIBE core_configuration_records') /phproad/modules/db/classes/db_mysqlidriver.php 188
15 Db_MySQLiDriver->describe_table('core_configuration_records') /phproad/modules/db/classes/db_sqlbase.php 466
14 Db_SqlBase->describe_table('core_configuration_records') /phproad/modules/db/classes/db_activerecord.php 1333
13 Db_ActiveRecord->fields(()) /phproad/modules/db/classes/db_activerecord.php 399
12 Db_ActiveRecord->initialize(()) /phproad/modules/db/classes/db_activerecord.php 352
11 Db_ActiveRecord->__construct(()) /modules/core/classes/core_configuration_model.php 25
10 Core_Configuration_Model->__construct(()) /modules/cms/models/cms_maintenanceparams.php 9
9 Cms_MaintenanceParams::create(()) /controllers/application.php 10
8 Application->resolve_page(array(0)) /controllers/application.php 72
7 Application->On404(()) /phproad/modules/phpr/classes/phpr_controller.php 170
6 Phpr_Controller->executeAction('On404', array(0)) /phproad/modules/phpr/classes/phpr_controller.php 84
5 Phpr_Controller->_run('On404', array(0)) /phproad/modules/phpr/classes/phpr_response.php 64
4 Phpr_Response->open404(()) /phproad/modules/phpr/classes/phpr_response.php 37
3 Phpr_Response->open('/category/bestsellers/category/paul-turner/category/richard-leonard/category/richard-leonard') /phproad/system/phproad.php 31
2 include('/home/garrattpublishin/public_html/phproad/system/phproad.php') /boot.php 113
1 require_once('/home/garrattpublishin/public_html/boot.php') /index.php 3

Warning: mcrypt_enc_get_key_size(): supplied resource is not a valid MCrypt resource in /home/garrattpublishin/public_html/phproad/modules/phpr/classes/phpr_securityframework.php on line 44

Warning: mcrypt_enc_get_iv_size(): supplied resource is not a valid MCrypt resource in /home/garrattpublishin/public_html/phproad/modules/phpr/classes/phpr_securityframework.php on line 55

Warning: mcrypt_create_iv(): Cannot create an IV with a size of less than 1 or greater than 2147483647 in /home/garrattpublishin/public_html/phproad/modules/phpr/classes/phpr_securityframework.php on line 55

Warning: mcrypt_generic_init(): supplied resource is not a valid MCrypt resource in /home/garrattpublishin/public_html/phproad/modules/phpr/classes/phpr_securityframework.php on line 57

Warning: mcrypt_generic(): supplied resource is not a valid MCrypt resource in /home/garrattpublishin/public_html/phproad/modules/phpr/classes/phpr_securityframework.php on line 58

Warning: mcrypt_generic_deinit(): supplied resource is not a valid MCrypt resource in /home/garrattpublishin/public_html/phproad/modules/phpr/classes/phpr_securityframework.php on line 59

Fatal error: Uncaught PHP Warning: Unknown: write failed: Cannot allocate memory (12) thrown in Unknown on line 0