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/modules/news/views/news/view.php(111): CWebUser->checkAccess()
106                             </svg>
107                             Настройка ленты
108                         </a>
109                     <?php endif; ?>
110 
111                     <?php if (Yii::app()->user->checkAccess('News:News:Update')): ?>
112                         <a href="/manager.php/news/news/update/id/<?= $model->id ?>"
113                            class="news-options d-flex align-items-center text-inline-hover"
114                            target="_blank">
115                             <svg width="22" height="22" class="me-1">
116                                 <use xlink:href="/x-style/images/sprite.svg#pencil"></use>
#10
+
 /var/www/hosts/lk.usoft.ru/protected/fcomponents/Controller.php(390): CController->render()
385                 echo $this->externalTemplate($content);
386                 return true;
387             }
388         } else {
389 
390             return parent::render($view, $data, $return); // TODO: Change the autogenerated stub
391         }
392     }
393 
394 }
#11
+
 /var/www/hosts/lk.usoft.ru/protected/modules/news/controllers/NewsController.php(105): Controller->render()
100             'userTagsList' => $userTagsList,
101             'last5News' => $this->getLast5NewsByCategory((int)$companyNews->category_id, (int)$companyNews->id),
102             'widgetsBlock' => $this->renderPartial('companyNewsWidgets', ['widgets' => $widgets], true),
103             'subscribe' => $this->getIsSubscribe(),
104             'links' => $this->getNewsLinks((int)$companyNews->id),
105             'also' => Tag::findAlso($model->tags, $model->id, 'news')
106         ]);
107     }
108 
109     /**
110      * Displays a particular model.
2026-06-08 12:07:30 nginx/1.18.0 Yii Framework/1.1.15