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 `page_id`, `page_pid`, `page_title`, `page_url`, `page_type`, `is_arch`
FROM `pages`
WHERE `page_url` = ?
AND `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

#1
+
 /var/www/hosts/lk.usoft.ru/protected/modules/navigator/components/NavigatorUrlRule.php(164): CDbCommand->queryRow()
159             $dataArr = array(
160                 $page_step,
161                 $page_pid,
162 
163             );
164             $temp_row = $command->queryRow(true,$dataArr);
165 
166             if ( $temp_row === false) {
167                 //todo вернуть параметры для экшена
168                break;
169             }
#2
+
 /var/www/hosts/lk.usoft.ru/protected/modules/navigator/components/NavigatorUrlRule.php(64): NavigatorUrlRule->find_by_path()
59             $last_item = $_req[count($_req) - 1];
60 
61             if(is_numeric($last_item)) {
62                 $action_param = $last_item;
63             }
64             $result = $this->find_by_path($REQ);
65             //назначить page_id
66 
67             if($result && $result['page_id']) {
68 
69                 $CModuleNavigator->setCurrentPageId($result['page_id']);
#6
+
 /var/www/hosts/lk.usoft.ru/index.php(58): CApplication->run()
53 //Yii::setPathOfAlias('templates', $dirname_file .DIRECTORY_SEPARATOR.'templates');
54 Yii::setPathOfAlias('core',INDEX_DIR.DIRECTORY_SEPARATOR.'core');
55 require_once(__DIR__.DIRECTORY_SEPARATOR.'protected' .DIRECTORY_SEPARATOR.'vendors' .DIRECTORY_SEPARATOR.'Loader.php');
56 Yii::registerAutoloader(array('Loader','systemMainAutoload'));
57 
58 Yii::createWebApplication($config_yii_path)->run();
2025-10-13 10:22:10 nginx/1.18.0 Yii Framework/1.1.15