CDbException

CDbCommand не удалось исполнить SQL-запрос: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'lk_usoft_ru.AuthItem' doesn't exist. The SQL statement executed was: SELECT *
FROM `AuthItem`
WHERE name=:name

/var/www/hosts/framework/db/CDbCommand.php(548)

536         {
537             if($this->_connection->enableProfiling)
538                 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query');
539 
540             $errorInfo=$e instanceof PDOException ? $e->errorInfo : null;
541             $message=$e->getMessage();
542             Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.',
543                 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand');
544 
545             if(YII_DEBUG)
546                 $message.='. The SQL statement executed was: '.$this->getText().$par;
547 
548             throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}',
549                 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo);
550         }
551     }
552 
553     /**
554      * Builds a SQL SELECT statement from the given query specification.
555      * @param array $query the query specification in name-value pairs. The following
556      * query options are supported: {@link select}, {@link distinct}, {@link from},
557      * {@link where}, {@link join}, {@link group}, {@link having}, {@link order},
558      * {@link limit}, {@link offset} and {@link union}.
559      * @throws CDbException if "from" key is not present in given query parameter
560      * @return string the SQL statement

Stack Trace

#5
+
 /var/www/hosts/lk.usoft.ru/protected/components/AccessBehavior.php(47): CWebUser->checkAccess()
42             $criteria->compare($alias . $this->deleted_field, 0);
43         }
44         // unpublished
45         if ($this->publish_field) {
46             $rule = get_class($model); // News and banners
47             if (!Yii::app()->user->checkAccess($rule . '.unpublished')) {
48                 $criteria->compare($alias . $this->publish_field, 1);
49             }
50         }
51 
52         // role
#8
+
 /var/www/hosts/lk.usoft.ru/protected/modules/attendance/components/ServiceByIdWidget.php(43): CActiveRecord->__call()
38 
39         ));
40 
41         $criteria = array('limit' => $this->limit, 'condition' => 'pid = 0');
42 
43         $models = $service_instance->isAccess()->isPoolAccess()->findAllByPk($this->ids);
44         if (!empty($models)) {
45             $this->render($this->view, array(
46                 'models' => $models,
47                 'show_text' => $this->show_text,
48             ));
#10
+
 /var/www/hosts/lk.usoft.ru/protected/modules/beo/views/expertbank/questionDetails.php(83): CBaseController->widget()
78         </a>
79     </div>
80 
81     <?php
82     if(isset($serviceElements) and !empty($serviceElements)){
83         Yii::app()->controller->widget('application.modules.attendance.components.ServiceByIdWidget', array('ids' => $serviceElements));
84     }
85     ?>
86 
87     <?php $this->widget('news.components.NewsTop5Widget');?>
88 </div>
2026-01-19 11:27:05 nginx/1.18.0 Yii Framework/1.1.15