CDbException

CDbException

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

程序日志
时间 等级 类别 信息
06:10:49.75927 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`='491146'. Bound
with :yp0=5856.
06:10:49.76081 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('491146', 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/html5/intersectionobserver%EF%BC%88%E7%9B%B8%E4%BA%A4%E8%A7%82%E5%AF%9F%E5%99%A8%EF%BC%89-api%E7%AE%80%E4%BB%8B%E5%8F%8A%E5%9C%A8%E7%BA%BF%E5%AE%9E%E4%BE%8B.html
---