Hạnh Phúc Đầy Nhà, Một Phường Tuấn Nam - Ảnh Phương Thư Các
Có thể bạn quan tâm
CDbCommand failed to execute the SQL statement: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'and cheapter_id=0) AND (likes=1)' at line 1. The SQL statement executed was: SELECT COUNT(*) FROM `user_cheapter` `t` WHERE (story_id= and cheapter_id=0) AND (likes=1)
/home/anhphuon/public_html/yii/db/CDbCommand.php(543)
531 { 532 if($this->_connection->enableProfiling) 533 Yii::endProfile('system.db.CDbCommand.query('.$this->getText().$par.')','system.db.CDbCommand.query'); 534 535 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 536 $message=$e->getMessage(); 537 Yii::log(Yii::t('yii','CDbCommand::{method}() failed: {error}. The SQL statement executed was: {sql}.', 538 array('{method}'=>$method, '{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 539 540 if(YII_DEBUG) 541 $message.='. The SQL statement executed was: '.$this->getText().$par; 542 543 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 544 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 545 } 546 } 547 548 /** 549 * Builds a SQL SELECT statement from the given query specification. 550 * @param array $query the query specification in name-value pairs. The following 551 * query options are supported: {@link select}, {@link distinct}, {@link from}, 552 * {@link where}, {@link join}, {@link group}, {@link having}, {@link order}, 553 * {@link limit}, {@link offset} and {@link union}. 554 * @throws CDbException if "from" key is not present in given query parameter 555 * @return string the SQL statementStack Trace
| #0 | + – /home/anhphuon/public_html/yii/db/CDbCommand.php(433): CDbCommand->queryInternal("fetchColumn", 0, array()) 428 * @return mixed the value of the first column in the first row of the query result. False is returned if there is no value. 429 * @throws CException execution failed 430 */ 431 public function queryScalar($params=array()) 432 { 433 $result=$this->queryInternal('fetchColumn',0,$params); 434 if(is_resource($result) && get_resource_type($result)==='stream') 435 return stream_get_contents($result); 436 else 437 return $result; 438 } |
| #1 | + – /home/anhphuon/public_html/yii/db/ar/CActiveRecord.php(1601): CDbCommand->queryScalar() 1596 $this->beforeCount(); 1597 $criteria=$builder->createCriteria($condition,$params); 1598 $this->applyScopes($criteria); 1599 1600 if(empty($criteria->with)) 1601 return $builder->createCountCommand($this->getTableSchema(),$criteria)->queryScalar(); 1602 else 1603 { 1604 $finder=$this->getActiveFinder($criteria->with); 1605 return $finder->count($criteria); 1606 } |
| #2 | + – /home/anhphuon/public_html/protected/models/UserCheapter.php(128): CActiveRecord->count(CDbCriteria) 123 { 124 $criteria = new CDbCriteria; 125 $criteria->addCondition('story_id=' . $story_id . ' and cheapter_id=' . $cheapter_id); 126 if ($type == 'likes') { 127 $criteria->addCondition('likes=1'); 128 return UserCheapter::model()->count($criteria); 129 } else { 130 $criteria->addCondition('follows=1'); 131 return UserCheapter::model()->count($criteria); 132 } 133 } |
| #3 | + – /home/anhphuon/public_html/protected/helpers/ExtraHelper.php(253): UserCheapter->totalRecordByType(null, 0, "likes") 248 $total_views = $cheapterModel['view_number']; 249 } else { 250 $total_views = $model['views']; 251 } 252 253 $total_likes = UserCheapter::model()->totalRecordByType($story_id, $cheapter_id, 'likes'); 254 255 $listFollows = UserStoryFollows::model()->getListFollowStory($story_id); 256 //$user_follows = UserStoryFollows::model()->getStoryUser(Yii::app()->user->id, $story_id); 257 $img_url = 'uploads/cover'; 258 if ( |
| #4 | + – /home/anhphuon/public_html/protected/views/story/view.php(59): ExtraHelper::StoryShort(null, 0, null) 54 <img src="<?php echo Yii::app()->baseUrl ?>/uploads/banner/<?php echo $banner['name']; ?>" class="img-responsive"> 55 <section class="box story"> 56 <div class="box-inner"> 57 <div class="box-inner2"> 58 <h1 class="title"><span><?php echo $model['name']; ?></span></h1> 59 <?php ExtraHelper::StoryShort($model['id'], 0, $model); ?> 60 61 <div class="row"> 62 <div class="col-sm-12"> 63 <h3 class="thesis">Vài lời giới thiệu:</h3> 64 <?php echo $model['thesis']; ?> |
| #5 | + – /home/anhphuon/public_html/yii/web/CBaseController.php(126): require("/home/anhphuon/public_html/protected/views/story/view.php") 121 $data=$_data_; 122 if($_return_) 123 { 124 ob_start(); 125 ob_implicit_flush(false); 126 require($_viewFile_); 127 return ob_get_clean(); 128 } 129 else 130 require($_viewFile_); 131 } |
| #6 | + – /home/anhphuon/public_html/yii/web/CBaseController.php(95): CBaseController->renderInternal("/home/anhphuon/public_html/protected/views/story/view.php", array("model" => null, "banner" => Banner, "page_var" => 2, "report" => Reportstory), true) 090 { 091 $widgetCount=count($this->_widgetStack); 092 if(($renderer=Yii::app()->getViewRenderer())!==null && $renderer->fileExtension==='.'.CFileHelper::getExtension($viewFile)) 093 $content=$renderer->renderFile($this,$viewFile,$data,$return); 094 else 095 $content=$this->renderInternal($viewFile,$data,$return); 096 if(count($this->_widgetStack)===$widgetCount) 097 return $content; 098 else 099 { 100 $widget=end($this->_widgetStack); |
| #7 | + – /home/anhphuon/public_html/yii/web/CController.php(869): CBaseController->renderFile("/home/anhphuon/public_html/protected/views/story/view.php", array("model" => null, "banner" => Banner, "page_var" => 2, "report" => Reportstory), true) 864 */ 865 public function renderPartial($view,$data=null,$return=false,$processOutput=false) 866 { 867 if(($viewFile=$this->getViewFile($view))!==false) 868 { 869 $output=$this->renderFile($viewFile,$data,true); 870 if($processOutput) 871 $output=$this->processOutput($output); 872 if($return) 873 return $output; 874 else |
| #8 | + – /home/anhphuon/public_html/yii/web/CController.php(782): CController->renderPartial("view", array("model" => null, "banner" => Banner, "page_var" => 2, "report" => Reportstory), true) 777 */ 778 public function render($view,$data=null,$return=false) 779 { 780 if($this->beforeRender($view)) 781 { 782 $output=$this->renderPartial($view,$data,true); 783 if(($layoutFile=$this->getLayoutFile($this->layout))!==false) 784 $output=$this->renderFile($layoutFile,array('content'=>$output),true); 785 786 $this->afterRender($view,$output); 787 |
| #9 | + – /home/anhphuon/public_html/protected/controllers/StoryController.php(73): CController->render("view", array("model" => null, "banner" => Banner, "page_var" => 2, "report" => Reportstory)) 68 $thumbnail = 'banner/' . $model['thumbnail']; 69 } 70 ExtraHelper::seoUrl($this, $model['slug'], $thumbnail, 1, $model['name']); 71 } 72 $report = new Reportstory(); 73 $this->render('view', compact(array('model', 'banner', 'page_var', 'report'))); 74 } 75 public function actionDetail($story, $slug_story, $slug_cheapter) 76 { 77 //$arr_page = array('thu-phong' => 1, 'kho-phong' => 2, 'tran-bao-phong' => 3, 'hoa-vien' => 4); 78 $page_config = Yii::app()->params['story_category']; |
| #10 | unknown(0): StoryController->actionView("kho-phong", "hanh-phuc-day-nha-mot-phuong-tuan-nam-") |
| #11 | + – /home/anhphuon/public_html/yii/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(StoryController, array("kho-phong", "hanh-phuc-day-nha-mot-phuong-tuan-nam-")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
| #12 | + – /home/anhphuon/public_html/yii/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(StoryController, ReflectionMethod, array("story" => "kho-phong", "slug" => "hanh-phuc-day-nha-mot-phuong-tuan-nam-")) 42 { 43 $methodName='action'.$this->getId(); 44 $controller=$this->getController(); 45 $method=new ReflectionMethod($controller, $methodName); 46 if($method->getNumberOfParameters()>0) 47 return $this->runWithParamsInternal($controller, $method, $params); 48 else 49 return $controller->$methodName(); 50 } 51 52 } |
| #13 | + – /home/anhphuon/public_html/yii/web/CController.php(308): CInlineAction->runWithParams(array("story" => "kho-phong", "slug" => "hanh-phuc-day-nha-mot-phuong-tuan-nam-")) 303 { 304 $priorAction=$this->_action; 305 $this->_action=$action; 306 if($this->beforeAction($action)) 307 { 308 if($action->runWithParams($this->getActionParams())===false) 309 $this->invalidActionParams($action); 310 else 311 $this->afterAction($action); 312 } 313 $this->_action=$priorAction; |
| #14 | + – /home/anhphuon/public_html/yii/web/CController.php(286): CController->runAction(CInlineAction) 281 * @see runAction 282 */ 283 public function runActionWithFilters($action,$filters) 284 { 285 if(empty($filters)) 286 $this->runAction($action); 287 else 288 { 289 $priorAction=$this->_action; 290 $this->_action=$action; 291 CFilterChain::create($this,$action,$filters)->run(); |
| #15 | + – /home/anhphuon/public_html/yii/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array()) 260 { 261 if(($parent=$this->getModule())===null) 262 $parent=Yii::app(); 263 if($parent->beforeControllerAction($this,$action)) 264 { 265 $this->runActionWithFilters($action,$this->filters()); 266 $parent->afterControllerAction($this,$action); 267 } 268 } 269 else 270 $this->missingAction($actionID); |
| #16 | + – /home/anhphuon/public_html/yii/web/CWebApplication.php(282): CController->run("view") 277 { 278 list($controller,$actionID)=$ca; 279 $oldController=$this->_controller; 280 $this->_controller=$controller; 281 $controller->init(); 282 $controller->run($actionID); 283 $this->_controller=$oldController; 284 } 285 else 286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the request "{route}".', 287 array('{route}'=>$route===''?$this->defaultController:$route))); |
| #17 | + – /home/anhphuon/public_html/yii/web/CWebApplication.php(141): CWebApplication->runController("story/view") 136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value) 137 $_GET[$name]=$value; 138 } 139 else 140 $route=$this->getUrlManager()->parseUrl($this->getRequest()); 141 $this->runController($route); 142 } 143 144 /** 145 * Registers the core application components. 146 * This method overrides the parent implementation by registering additional core components. |
| #18 | + – /home/anhphuon/public_html/yii/base/CApplication.php(180): CWebApplication->processRequest() 175 public function run() 176 { 177 if($this->hasEventHandler('onBeginRequest')) 178 $this->onBeginRequest(new CEvent($this)); 179 register_shutdown_function(array($this,'end'),0,false); 180 $this->processRequest(); 181 if($this->hasEventHandler('onEndRequest')) 182 $this->onEndRequest(new CEvent($this)); 183 } 184 185 /** |
| #19 | + – /home/anhphuon/public_html/index.php(17): CApplication->run() 12 defined('YII_DEBUG') or define('YII_DEBUG',true); 13 // specify how many levels of call stack should be shown in each log message 14 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3); 15 16 require_once($yii); 17 Yii::createWebApplication($config)->run(); |
Từ khóa » Tuấn Nam Phường
-
Tuấn Nam Phường (俊男坊) - Mạt Quả - Wattpad
-
Tuấn Nam Phường - Wiki Dịch Tiếng Hoa
-
Tuấn Nam Phường-Mạt Quả | Truyện Convert Nữ Sinh - Hố Truyện
-
Tuấn Nam Phường | ๋• Tiểu Yết ๋•
-
Truyện Tuấn Nam Phường (俊男坊) - Mạt Quả - Amy9xx - ZingTruyen
-
Truyện Tuấn Nam Phường P2 (t1) - Loveu4ever1202 - ZingTruyen
-
Tuấn Nam Phường (Xuyên Không, NP) | Kênh Sinh Viên
-
Ngồi Hưởng Tuấn Nam Chi Phường - Audio Truyện Ngôn Tình Hay ...
-
Đọc Truyện Tuấn Nam Phường ( NP) - Todongdong - TruyenFun
-
Đọc Truyện Tuấn Nam Phường (俊男坊) - Mạt Quả | Amy9xx
-
Hậu Cung Chúng Ta Thiếu Tuấn Nam - Truyện FULL
-
3602454447 - CÔNG TY TNHH TUẤN NAM PHÁT - MaSoThue
-
4900883161 - CÔNG TY TNHH MTV TUẤN NAM GREAT - MaSoThue