Unhandled Error!

MySQL error executing query: Lost connection to MySQL server during query

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_mysqldriver.php
Document type PHP document
Line 114
Exception class Phpr_DatabaseException

Code Highlight

 
			// execute the statement
			$handle = @mysql_query($sql, Db::$connection);
 
			// If error, generate exception
			if ($err = @mysql_errno(Db::$connection) != 0) {
				$exception = new Phpr_DatabaseException('MySQL error executing query: '.@mysql_error(Db::$connection));
				$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;
			}
 
			return $handle;
		}
# Call Stack Code Document Line
18 Db_MySQLDriver->execute('select * from moduleparams') /phproad/modules/db/classes/db_sqlbase.php 604
17 Db_SqlBase->execute('select * from moduleparams') /phproad/modules/db/classes/db_sqlbase.php 437
16 Db_SqlBase->query('select * from moduleparams') /phproad/modules/db/classes/db_sqlbase.php 499
15 Db_SqlBase->fetchAll('select * from moduleparams', array(0)) /phproad/modules/db/classes/db_dbhelper.php 71
14 Db_DbHelper::queryArray('select * from moduleparams') /phproad/modules/db/classes/db_moduleparameters.php 14
13 Db_ModuleParameters::initCache(()) /phproad/modules/db/classes/db_moduleparameters.php 41
12 Db_ModuleParameters::get('cms', 'enable_theming') /modules/cms/models/cms_theme.php 336
11 Cms_Theme::is_theming_enabled(()) /modules/cms/models/cms_page.php 471
10 Cms_Page::findByUrl('/rss', null) /controllers/application.php 36
9 Application->resolve_page(null) /controllers/application.php 72
8 Application->On404(())
7 call_user_func_array(array(2) [0 => object(Application), 1 => 'On404'], array(0)) /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('/rss') /phproad/system/phproad.php 31
2 include('/home/ribbedt/public_html/phproad/system/phproad.php') /boot.php 114
1 require_once('/home/ribbedt/public_html/boot.php') /index.php 3