CDbException

CDbCommand failed to execute the SQL statement: SQLSTATE[70100]: <<Unknown error>>: 1317 Query execution was interrupted. The SQL statement executed was: SELECT `data`
FROM `session`
WHERE expire>:expire AND id=:id. Bound with :expire=1711715750, :id='04p6ek8okt6njkcjnquqg1rln7'

/var/www/html/protected/components/BaseController.php(50)

38         $this->isMainSite = $site->is_main == 1;
39         $this->personalyList = Personaly::getActiveList();
40 
41         shuffle($this->personalyList);
42 
43         $this->initiativeCategory = InitiativeArticleCategory::getUsedInitiativeCategories();
44 
45         $this->sitesList = Site::model()->findAll([
46             'condition' => 't.name NOT LIKE \'http%\'',
47             'order' => 't.is_main DESC, name',
48         ]);
49 
50         if (Yii::app()->user->getState('chronicle') === null) {
51             Yii::app()->user->setState('chronicle', 1);
52         }
53 
54         if ($this->isMainSite) {
55             $this->specialRegionNewsList = Article::model()->with(['newsInfo', 'newsInfo.site'])->findAll([
56                 'condition' => 't.status = "published" AND t.is_verified = "1" AND t.type = "news" AND newsInfo.site_id != :site_id AND newsInfo.on_main_site = "1"',
57                 'params' => [':site_id' => $this->currentSiteId],
58                 'order' => 'newsInfo.starting_date DESC',
59                 'limit' => 10,
60             ]);
61         } else {
62             $this->specialRegionNewsList = Article::model()->with(['newsInfo', 'newsInfo.site'])->findAll([

Stack Trace

#10
+
 /var/www/html/protected/components/BaseController.php(50): CModule->__get("user")
45         $this->sitesList = Site::model()->findAll([
46             'condition' => 't.name NOT LIKE \'http%\'',
47             'order' => 't.is_main DESC, name',
48         ]);
49 
50         if (Yii::app()->user->getState('chronicle') === null) {
51             Yii::app()->user->setState('chronicle', 1);
52         }
53 
54         if ($this->isMainSite) {
55             $this->specialRegionNewsList = Article::model()->with(['newsInfo', 'newsInfo.site'])->findAll([
#11
+
 /var/www/html/protected/controllers/SiteController.php(20): BaseController->init()
15     public $bugReportForm;
16 
17     public $slogan;
18 
19     public function init() {
20         parent::init();
21 
22         if (!Yii::app()->user->isGuest && Yii::app()->user->getState('role') == 'user') {
23             $this->siteUser = User::model()->with(['avatar', 'cityInfo'])->findByPk(Yii::app()->user->id, 'deleted IS NULL');
24         } elseif (!Yii::app()->user->isGuest && Yii::app()->user->getState('role') == 'admin') {
25             $admin = Admin::model()->with('user')->findByPk(Yii::app()->user->id);
#15
+
 /var/www/html/index.php(17): CApplication->run()
12 defined('YII_DEBUG') or define('YII_DEBUG', Config::$debug);
13 
14 require_once ROOT_PATH . '/protected/libs/framework/yii.php' ;
15 $config = ROOT_PATH . '/configs/yii.php';
16 
17 Yii::createWebApplication($config)->run();
2024-03-29 15:35:51 Apache/2.4.7 (Ubuntu) Yii Framework/1.1.14
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away. The SQL statement executed was: SELECT `id` FROM `session` WHERE id=:id. Bound with :id='04p6ek8okt6njkcjnquqg1rln7'