数据流量逆战老是出现数据异常E

CDbException
CDbException
数据库中无法找到 active record class &QuestionAnswer1& 对应的 table &{{question_answer_1}}&.
/mnt/ftp/www/framework/yiilite.php(8289)
8277 class CActiveRecordMetaData
public $tableS
public $relations=array();
public $attributeDefaults=array();
private $_modelClassN
public function __construct($model)
$this-&_modelClassName=get_class($model);
$tableName=$model-&tableName();
if(($table=$model-&getDbConnection()-&getSchema()-&getTable($tableName))===null)
throw new CDbException(Yii::t('yii','The table &{table}& for active record class &{class}& cannot be found in the database.',
array('{class}'=&$this-&_modelClassName,'{table}'=&$tableName)));
if($table-&primaryKey===null)
$table-&primaryKey=$model-&primaryKey();
if(is_string($table-&primaryKey) && isset($table-&columns[$table-&primaryKey]))
$table-&columns[$table-&primaryKey]-&isPrimaryKey=
elseif(is_array($table-&primaryKey))
foreach($table-&primaryKey as $name)
if(isset($table-&columns[$name]))
$table-&columns[$name]-&isPrimaryKey=
Stack Trace
&/mnt/ftp/www/framework/yiilite.php(7392): CActiveRecordMetaData->__construct(QuestionAnswer1)
$className=get_class($this);
if(!array_key_exists($className,self::$_md))
self::$_md[$className]= // preventing recursive invokes of {@link getMetaData()} via {@link __get()}
self::$_md[$className]=new CActiveRecordMetaData($this);
return self::$_md[$className];
public function refreshMetaData()
&/mnt/ftp/www/framework/yiilite.php(7463): CActiveRecord->getMetaData()
return isset($this-&getMetaData()-&relations[$name]) ? $this-&getMetaData()-&relations[$name] :
public function getTableSchema()
return $this-&getMetaData()-&tableS
public function getCommandBuilder()
return $this-&getDbConnection()-&getSchema()-&getCommandBuilder();
&/mnt/ftp/www/framework/yiilite.php(7944): CActiveRecord->getTableSchema()
$builder=$this-&getCommandBuilder();
$this-&beforeCount();
$criteria=$builder-&createCriteria($condition,$params);
$this-&applyScopes($criteria);
if(empty($criteria-&with))
return $builder-&createCountCommand($this-&getTableSchema(),$criteria)-&queryScalar();
$finder=$this-&getActiveFinder($criteria-&with);
return $finder-&count($criteria);
&/mnt/ftp/www/dashi/protected/extensions/widgets/question/QuestionContent.php(31): CActiveRecord->count(&show_flag=:show_flag and question_id=:question_id&, array(&:show_flag& =& 1, &:question_id& =& &1141338&))
switch ($tab) {
case 'a':
$count = QuestionAnswer1::model()-&count('show_flag=:show_flag and question_id=:question_id', array(
':show_flag' =& 1,
':question_id' =& $qid
$pages = new CPagination();
$pages-&setItemCount($count);
$pages-&setPageSize(10);
$pages-&setCurrentPage($pages-&getCurrentPage());
$pages-&pageVar = urlencode('问题回答');
&/mnt/ftp/www/framework/zii/widgets/CPortlet.php(97): QuestionContent->renderContent()
* Renders the content of the portlet.
public function run()
$this-&renderContent();
$content=ob_get_clean();
if($this-&hideOnEmpty && trim($content)==='')
echo $this-&_openT
&/mnt/ftp/www/common/CPortletExt.php(16): CPortlet->run()
public function run() {
if (!$this-&renderDirect) {
parent::run();
$this-&renderContent();
&/mnt/ftp/www/framework/yiilite.php(3444): CPortletExt->run()
return ob_get_clean();
$widget=$this-&createWidget($className,$properties);
$widget-&run();
public function beginWidget($className,$properties=array())
&/mnt/ftp/www/dashi/protected/views/question/detail.php(21): CBaseController->widget(&ext.widgets.question.QuestionContent&)
20 &div class=&col-xs-12 col-sm-8 col-md-8 question_left1&&
&?php $this-&widget('ext.widgets.question.QuestionContent'); ?&
&?php $this-&widget('ext.widgets.product.Recommend', array('title' =& '强力推荐')); ?&
25 &div class=&col-xs-12 col-sm-4 col-md-4&&
&div class=&question_right&&
&/mnt/ftp/www/framework/yiilite.php(3419): require(&/mnt/ftp/www/dashi/protected/views/question/detail.php&)
$data=$_data_;
if($_return_)
ob_start();
ob_implicit_flush(false);
require($_viewFile_);
return ob_get_clean();
require($_viewFile_);
&/mnt/ftp/www/framework/yiilite.php(3398): CBaseController->renderInternal(&/mnt/ftp/www/dashi/protected/views/question/detail.php&, null, true)
$widgetCount=count($this-&_widgetStack);
if(($renderer=Yii::app()-&getViewRenderer())!==null && $renderer-&fileExtension==='.'.CFileHelper::getExtension($viewFile))
$content=$renderer-&renderFile($this,$viewFile,$data,$return);
$content=$this-&renderInternal($viewFile,$data,$return);
if(count($this-&_widgetStack)===$widgetCount)
$widget=end($this-&_widgetStack);
&/mnt/ftp/www/framework/yiilite.php(3822): CBaseController->renderFile(&/mnt/ftp/www/dashi/protected/views/question/detail.php&, null, true)
public function renderPartial($view,$data=null,$return=false,$processOutput=false)
if(($viewFile=$this-&getViewFile($view))!==false)
$output=$this-&renderFile($viewFile,$data,true);
if($processOutput)
$output=$this-&processOutput($output);
if($return)
&/mnt/ftp/www/framework/yiilite.php(3790): CController->renderPartial(&detail&, null, true)
public function render($view,$data=null,$return=false)
if($this-&beforeRender($view))
$output=$this-&renderPartial($view,$data,true);
if(($layoutFile=$this-&getLayoutFile($this-&layout))!==false)
$output=$this-&renderFile($layoutFile,array('content'=&$output),true);
$this-&afterRender($view,$output);
$output=$this-&processOutput($output);
if($return)
&/mnt/ftp/www/dashi/protected/controllers/QuestionController.php(64): CController->render(&detail&)
public function actionDetail() {
if (Util::isMobile()) {
$this-&layout = 'mobile_transition';
$this-&render('mobile_detail');
$this-&render('detail');
public function actionMobileDetail() {
$this-&layout = 'mobile_detail';
&/mnt/ftp/www/framework/yiilite.php(4058): QuestionController->actionDetail()
$controller=$this-&getController();
$method=new ReflectionMethod($controller, $methodName);
if($method-&getNumberOfParameters()&0)
return $this-&runWithParamsInternal($controller, $method, $params);
return $controller-&$methodName();
4061 class CWebUser extends CApplicationComponent implements IWebUser
const FLASH_KEY_PREFIX='Yii.CWebUser.flash.';
&/mnt/ftp/www/framework/yiilite.php(3570): CInlineAction->runWithParams(array(&id& =& &1141338&))
$priorAction=$this-&_
$this-&_action=$
if($this-&beforeAction($action))
if($action-&runWithParams($this-&getActionParams())===false)
$this-&invalidActionParams($action);
$this-&afterAction($action);
$this-&_action=$priorA
&/mnt/ftp/www/framework/yiilite.php(3555): CController->runAction(CInlineAction)
$this-&missingAction($actionID);
public function runActionWithFilters($action,$filters)
if(empty($filters))
$this-&runAction($action);
$priorAction=$this-&_
$this-&_action=$
CFilterChain::create($this,$action,$filters)-&run();
&/mnt/ftp/www/framework/yiilite.php(3545): CController->runActionWithFilters(CInlineAction, array())
if(($parent=$this-&getModule())===null)
$parent=Yii::app();
if($parent-&beforeControllerAction($this,$action))
$this-&runActionWithFilters($action,$this-&filters());
$parent-&afterControllerAction($this,$action);
$this-&missingAction($actionID);
&/mnt/ftp/www/framework/yiilite.php(1746): CController->run(&detail&)
list($controller,$actionID)=$
$oldController=$this-&_
$this-&_controller=$
$controller-&init();
$controller-&run($actionID);
$this-&_controller=$oldC
throw new CHttpException(404,Yii::t('yii','Unable to resolve the request &{route}&.',
array('{route}'=&$route===''?$this-&defaultController:$route)));
&/mnt/ftp/www/framework/yiilite.php(1666): CWebApplication->runController(&question/detail&)
foreach(array_splice($this-&catchAllRequest,1) as $name=&$value)
$_GET[$name]=$
$route=$this-&getUrlManager()-&parseUrl($this-&getRequest());
$this-&runController($route);
protected function registerCoreComponents()
parent::registerCoreComponents();
$components=array(
&/mnt/ftp/www/framework/yiilite.php(1191): CWebApplication->processRequest()
public function run()
if($this-&hasEventHandler('onBeginRequest'))
$this-&onBeginRequest(new CEvent($this));
register_shutdown_function(array($this,'end'),0,false);
$this-&processRequest();
if($this-&hasEventHandler('onEndRequest'))
$this-&onEndRequest(new CEvent($this));
public function end($status=0,$exit=true)
&/mnt/ftp/www/dashi/index.php(39): CApplication->run()
34 defined('APP') or define('APP', 'dashi');
35 define('BAIDUAD_ONOFF','1');//百度广告开关,1:开,0:关
37 require(dirname(__FILE__) . '/../common/Ossconstant.php');
38 require_once($yii);
39 Yii::createWebApplication($config)-&run();
11:17:20 nginx/1.4.6 /1.1.14

我要回帖

更多关于 手机流量老是自动开启 的文章

 

随机推荐