CDbException

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

/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

#3
+
 /var/www/hosts/lk.usoft.ru/protected/modules/navigator/components/pageTree.php(58): CActiveRecord->find()
53         $pagePid = 0;
54         $i = 0;
55         $REQ = is_array($REQ) ? $REQ : array($REQ);
56         foreach ($REQ as $url) {
57 
58             $modelPage = Pages::model()->find('page_url=:page_url AND page_pid=:page_pid', array('page_url' => $url, 'page_pid' => $pagePid));
59 
60             if ($modelPage) {
61 
62                 $lnk .= '/' . $modelPage->page_url;
63                 $bread_nuts[$i] = self::breadItem($lnk, $modelPage->page_title, $modelPage->page_type);
#4
+
 /var/www/hosts/lk.usoft.ru/protected/modules/navigator/NavigatorModule.php(58): pageTree::getBreadcrumbs()
53      * @return array|bool
54      */
55     public function getBreadcrumbs()
56     {
57         if ($this->_bread === false) {
58             $this->_bread = pageTree::getBreadcrumbs($this->REQ);
59         }
60         return $this->_bread;
61     }
62 
63     public function addBreadItem($link, $title)
#5
+
 /var/www/hosts/lk.usoft.ru/protected/modules/navigator/NavigatorModule.php(75): NavigatorModule->getBreadcrumbs()
70         $this->_bread[] = pageTree::breadItem($last_link . $link, $title);
71     }
72 
73     public function delLastBreadItem()
74     {
75         $this->getBreadcrumbs();
76 
77         unset($this->_bread[count($this->_bread) - 1]);
78         if($this->_bread){
79             $temp = $this->_bread;
80             $this->_bread = array();
2026-01-19 11:26:49 nginx/1.18.0 Yii Framework/1.1.15