CDbException

CDbException

CDbCommand 无法执行 SQL 语句: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away

程序日志
时间 等级 类别 信息
01:53:34.50451 error system.db.CDbCommand
CDbCommand::fetchAll() failed: SQLSTATE[HY000]: General error: 2006 MySQL
server has gone away. The SQL statement executed was: SELECT
`UserProfile`.`Id` AS `t1_c0`, `UserProfile`.`UserId` AS `t1_c1`,
`UserProfile`.`Gender` AS `t1_c2`, `UserProfile`.`Nationality` AS `t1_c3`,
`UserProfile`.`MaritalStatus` AS `t1_c4`, `UserProfile`.`Birthday` AS
`t1_c5`, `UserProfile`.`Address1` AS `t1_c6`, `UserProfile`.`Address2` AS
`t1_c7`, `UserProfile`.`SocialSina` AS `t1_c8`, `UserProfile`.`SocialTx` AS
`t1_c9`, `UserProfile`.`Phone` AS `t1_c10`, `UserProfile`.`Mobile` AS
`t1_c11`, `UserProfile`.`QQ` AS `t1_c12`, `UserProfile`.`Skype` AS
`t1_c13`, `UserProfile`.`Avatar` AS `t1_c14`, `UserProfile`.`Signature` AS
`t1_c15` FROM `user_profiles` `UserProfile`  WHERE
(`UserProfile`.`UserId`=:ypl0). Bound with :ypl0='1'.
01:53:34.50601 error exception.CDbException
CDbException: CDbCommand 无法执行 SQL 语句: SQLSTATE[HY000]: General
error: 2006 MySQL server has gone away in
/home/www/sites/framework/db/CDbCommand.php:541
Stack trace:
#0 /home/www/sites/framework/db/CDbCommand.php(395):
CDbCommand->queryInternal('fetchAll', Array, Array)
#1 /home/www/sites/framework/db/ar/CActiveFinder.php(761):
CDbCommand->queryAll()
#2 /home/www/sites/framework/db/ar/CActiveFinder.php(489):
CJoinElement->runQuery(Object(CJoinQuery))
#3 /home/www/sites/framework/db/ar/CActiveFinder.php(163):
CJoinElement->lazyFind(Object(User))
#4 /home/www/sites/framework/db/ar/CActiveRecord.php(272):
CActiveFinder->lazyFind(Object(User))
#5 /home/www/sites/framework/db/ar/CActiveRecord.php(179):
CActiveRecord->getRelated('UserProfile')
#6
/home/www/sites/techbrood/themes/techbrood/widgets/Project/FiddleCard.php(15):
CActiveRecord->__isset('UserProfile')
#7 /home/www/sites/framework/web/CBaseController.php(126):
require('/home/www/sites...')
#8 /home/www/sites/framework/web/CBaseController.php(95):
CBaseController->renderInternal('/home/www/sites...', Array, true)
#9 /home/www/sites/framework/web/widgets/CWidget.php(243):
CBaseController->renderFile('/home/www/sites...', Array, true)
#10 /home/www/sites/techbrood/protected/base/AppWidget.php(141):
CWidget->render('FiddleCard', Array, true)
#11
/home/www/sites/techbrood/protected/modules/Project/components/FiddleCardWidget.php(49):
AppWidget->render('FiddleCard', Array)
#12
/home/www/sites/techbrood/protected/extensions/helpers/Template.php(38):
FiddleCardWidget->run()
#13 /home/www/sites/techbrood/themes/techbrood/views/detail.php(12):
Template::widget('PROJECT-DETAILS', 'application.mod...')
#14 /home/www/sites/framework/web/CBaseController.php(126):
require('/home/www/sites...')
#15 /home/www/sites/framework/web/CBaseController.php(95):
CBaseController->renderInternal('/home/www/sites...', NULL, true)
#16 /home/www/sites/framework/web/CController.php(869):
CBaseController->renderFile('/home/www/sites...', NULL, true)
#17 /home/www/sites/framework/web/CController.php(782):
CController->renderPartial('/detail', NULL, true)
#18
/home/www/sites/techbrood/protected/controllers/CmsBaseController.php(82):
CController->render('/detail')
#19
/home/www/sites/techbrood/protected/controllers/DefaultController.php(40):
CmsBaseController->showTemplate()
#20 /home/www/sites/framework/web/actions/CInlineAction.php(49):
DefaultController->actionIndex()
#21 /home/www/sites/framework/web/CController.php(308):
CInlineAction->runWithParams(Array)
#22 /home/www/sites/framework/web/CController.php(286):
CController->runAction(Object(CInlineAction))
#23 /home/www/sites/framework/web/CController.php(265):
CController->runActionWithFilters(Object(CInlineAction), Array)
#24 /home/www/sites/framework/web/CWebApplication.php(282):
CController->run('index')
#25 /home/www/sites/framework/web/CWebApplication.php(141):
CWebApplication->runController('default/index')
#26 /home/www/sites/framework/base/CApplication.php(168):
CWebApplication->processRequest()
#27 /home/www/sites/techbrood/index.php(31): CApplication->run()
#28 {main}
REQUEST_URI=/detail?t=fiddle&id=30659
HTTP_REFERER=https://wow.techbrood.com/fiddle/30659
---