CDbException

CDbException

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

程序日志
时间 等级 类别 信息
11:46:39.363341 error system.db.CDbCommand
CDbCommand::execute() failed: SQLSTATE[HY000]: General error: 2006 MySQL
server has gone away. The SQL statement executed was: UPDATE
`news_articles` SET `Views`=:yp0 WHERE `news_articles`.`Id`='397'. Bound
with :yp0=4681.
11:46:39.363476 error exception.CDbException
CDbException: CDbCommand 无法执行 SQL 语句: SQLSTATE[HY000]: General
error: 2006 MySQL server has gone away in
/home/www/sites/framework/db/CDbCommand.php:357
Stack trace:
#0 /home/www/sites/framework/db/ar/CActiveRecord.php(1691):
CDbCommand->execute()
#1
/home/www/sites/techbrood/protected/modules/News/components/ArticleDetailsWidget.php(51):
CActiveRecord->updateByPk('397', Array)
#2 /home/www/sites/techbrood/protected/extensions/helpers/Template.php(38):
ArticleDetailsWidget->run()
#3 /home/www/sites/techbrood/themes/techbrood/views/news-details.php(7):
Template::widget('ARTICLE_DETAIL', 'application.mod...')
#4 /home/www/sites/framework/web/CBaseController.php(126):
require('/home/www/sites...')
#5 /home/www/sites/framework/web/CBaseController.php(95):
CBaseController->renderInternal('/home/www/sites...', NULL, true)
#6 /home/www/sites/framework/web/CController.php(869):
CBaseController->renderFile('/home/www/sites...', NULL, true)
#7 /home/www/sites/framework/web/CController.php(782):
CController->renderPartial('/news-details', NULL, true)
#8
/home/www/sites/techbrood/protected/controllers/CmsBaseController.php(82):
CController->render('/news-details')
#9
/home/www/sites/techbrood/protected/controllers/DefaultController.php(40):
CmsBaseController->showTemplate()
#10 /home/www/sites/framework/web/actions/CInlineAction.php(49):
DefaultController->actionIndex()
#11 /home/www/sites/framework/web/CController.php(308):
CInlineAction->runWithParams(Array)
#12 /home/www/sites/framework/web/CController.php(286):
CController->runAction(Object(CInlineAction))
#13 /home/www/sites/framework/web/CController.php(265):
CController->runActionWithFilters(Object(CInlineAction), Array)
#14 /home/www/sites/framework/web/CWebApplication.php(282):
CController->run('index')
#15 /home/www/sites/framework/web/CWebApplication.php(141):
CWebApplication->runController('default/index')
#16 /home/www/sites/framework/base/CApplication.php(168):
CWebApplication->processRequest()
#17 /home/www/sites/techbrood/index.php(31): CApplication->run()
#18 {main}
REQUEST_URI=/zh/news/webgl/%e5%be%ae%e4%bf%a1%e5%85%ac%e4%bc%97%e5%8f%b7%e5%9c%a8%e7%ba%bf%e7%94%9f%e6%88%90%e4%ba%8c%e7%bb%b4%e7%a0%81%e5%b8%a6%e5%8f%82%e6%95%b0%e6%80%8e%e4%b9%88%e6%90%9e%ef%bc%9f.html
HTTP_REFERER=http://www.techbrood.com/zh/news/webgl/%E5%BE%AE%E4%BF%A1%E5%85%AC%E4%BC%97%E5%8F%B7%E5%9C%A8%E7%BA%BF%E7%94%9F%E6%88%90%E4%BA%8C%E7%BB%B4%E7%A0%81%E5%B8%A6%E5%8F%82%E6%95%B0%E6%80%8E%E4%B9%88%E6%90%9E%EF%BC%9F.html
---