/home/www/new.stlyrics.com/html/yii/framework/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 statement
#0 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/db/CDbCommand.php(415): CDbCommand->queryInternal("fetch", array(2), array()) 410 * @return mixed the first row (in terms of an array) of the query result, false if no result. 411 * @throws CException execution failed 412 */ 413 public function queryRow($fetchAssociative=true,$params=array()) 414 { 415 return $this->queryInternal('fetch',$fetchAssociative ? $this->_fetchMode : PDO::FETCH_NUM, $params); 416 } 417 418 /** 419 * Executes the SQL statement and returns the value of the first column in the first row of data. 420 * This is a convenient method of {@link query} when only a single scalar |
#1 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/db/ar/CActiveRecord.php(1351): CDbCommand->queryRow() 1346 if(empty($criteria->with)) 1347 { 1348 if(!$all) 1349 $criteria->limit=1; 1350 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria,$this->getTableAlias()); 1351 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1352 } 1353 else 1354 { 1355 $finder=$this->getActiveFinder($criteria->with); 1356 return $finder->query($criteria,$all); |
#2 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/db/ar/CActiveRecord.php(1456): CActiveRecord->query(CDbCriteria) 1451 */ 1452 public function find($condition='',$params=array()) 1453 { 1454 Yii::trace(get_class($this).'.find()','system.db.ar.CActiveRecord'); 1455 $criteria=$this->getCommandBuilder()->createCriteria($condition,$params); 1456 return $this->query($criteria); 1457 } 1458 1459 /** 1460 * Finds all active records satisfying the specified condition. 1461 * See {@link find()} for detailed explanation about $condition and $params. |
#3 |
+
–
/home/www/new.stlyrics.com/html/themes/front/widgets/NextSong.php(105): CActiveRecord->find(CDbCriteria) 100 $criteria -> addCondition("c.tbl_db_canonical_id IS NULL"); 101 $criteria -> addCondition("t.id > {$this->near_id_search}"); 102 $criteria -> addCondition("t.text <> '' AND t.text is not null"); 103 $criteria -> order = 't.id ASC'; 104 105 $next_song = DbText::model()->artistid($this->model->id)->find($criteria); 106 107 if ($next_song == null) { 108 $criteria = new CDbCriteria(); 109 $criteria -> join = 'left join tbl_db_canonical as c on c.tbl_db_text_id = t.id '; 110 $criteria -> addCondition("c.tbl_db_canonical_id IS NULL"); |
#4 |
+
–
/home/www/new.stlyrics.com/html/themes/front/widgets/NextSong.php(60): NextSong->process() 55 */ 56 public function run() 57 { 58 if($this->beginCache(su($this->model->name.$this->near_id_search.Yii::app()->theme->name.'v0.1.2'), array('varyByRoute'=>false, 'varyBySession'=>false, 'duration'=>60*60*24*7))) { 59 60 $this->process(); 61 if ($this->model==null) $this->_status = self::NO_ITEMS; 62 if ($this->_status === self::OK) { 63 echo "<a class=\"pull-left\" href=\"{$this->data['prev_uri']}\"><span class=\"pull-left l\">‹</span> {$this->data['prev_song']}</a><a class=\"pull-right\" href=\"{$this->data['next_uri']}\">{$this->data['next_song']} <span class=\"pull-right r\">›</span></a>"; 64 } 65 $this->endCache(); |
#5 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/CBaseController.php(173): NextSong->run() 168 return ob_get_clean(); 169 } 170 else 171 { 172 $widget=$this->createWidget($className,$properties); 173 $widget->run(); 174 return $widget; 175 } 176 } 177 178 /** |
#6 |
+
–
/home/www/new.stlyrics.com/html/themes/front/views/songs/text/index.php(270): CBaseController->widget("webroot.themes.front.widgets.NextSong", array("model" => DbArtist, "near_id_search" => "3142262")) 265 266 <div class="row"> 267 <div class="col-xs-12 song-navigation"> 268 <!-- Navigation below song of artist db --> 269 270 <?php $this->widget('webroot.themes.'.Yii::app()->theme->name.'.widgets.NextSong', array('model' => $model->artist, 'near_id_search' => $model->id)); ?> 271 </div> 272 </div> 273 274 <br> 275 |
#7 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/CBaseController.php(126): require("/home/www/new.stlyrics.com/html/themes/front/views/songs/text/in...") 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 } |
#8 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/CBaseController.php(95): CBaseController->renderInternal("/home/www/new.stlyrics.com/html/themes/front/views/songs/text/in...", array("model" => DbText), 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); |
#9 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/CController.php(869): CBaseController->renderFile("/home/www/new.stlyrics.com/html/themes/front/views/songs/text/in...", array("model" => DbText), 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 |
#10 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/CController.php(782): CController->renderPartial("index", array("model" => DbText), 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 |
#11 |
+
–
/home/www/new.stlyrics.com/html/protected/controllers/songs/songs/TextController.php(25): CController->render("index", array("model" => DbText)) 20 $this->setParams($model); 21 $model->attachBehavior('AdvInsertBehavior', array( 22 'class' => 'application.components.AdvInsertBehavior', 23 )); 24 25 $this->render('index', array('model'=>$model)); 26 } 27 28 public function setParams($model) 29 { 30 // -- SONGNAME Lyrics - ARTISTNAME |
#12 |
unknown(0): TextController->actionIndex("gangstalove3142262")
|
#13 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/actions/CAction.php(108): ReflectionMethod->invokeArgs(TextController, array("gangstalove3142262")) 103 elseif($param->isDefaultValueAvailable()) 104 $ps[]=$param->getDefaultValue(); 105 else 106 return false; 107 } 108 $method->invokeArgs($object,$ps); 109 return true; 110 } 111 } |
#14 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/actions/CInlineAction.php(47): CAction->runWithParamsInternal(TextController, ReflectionMethod, array("sym" => "r", "artist" => "rockcity71807", "text" => "gangstalove3142262", "theme" => "front")) 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 } |
#15 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("sym" => "r", "artist" => "rockcity71807", "text" => "gangstalove3142262", "theme" => "front")) 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; |
#16 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/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(); |
#17 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/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); |
#18 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/CWebApplication.php(282): CController->run("index") 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))); |
#19 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("//songs/text/index") 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. |
#20 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/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 /** |
#21 |
+
–
/home/www/new.stlyrics.com/html/protected/components/WebApplicationEndBehavior.php(25): CApplication->run() 20 // Attach the changeModulePaths event handler 21 // and raise it. 22 $this->onModuleCreate = array($this, 'changeModulePaths'); 23 $this->onModuleCreate(new CEvent($this->owner)); 24 25 $this->owner->run(); // Run application. 26 } 27 28 // This event should be raised when CWebApplication 29 // or CWebModule instances are being initialized. 30 public function onModuleCreate($event) |
#22 |
unknown(0): WebApplicationEndBehavior->runEnd("songs")
|
#23 |
+
–
/home/www/new.stlyrics.com/html/yii/framework/base/CComponent.php(261): call_user_func_array(array(WebApplicationEndBehavior, "runEnd"), array("songs")) 256 if($this->_m!==null) 257 { 258 foreach($this->_m as $object) 259 { 260 if($object->getEnabled() && method_exists($object,$name)) 261 return call_user_func_array(array($object,$name),$parameters); 262 } 263 } 264 if(class_exists('Closure', false) && $this->canGetProperty($name) && $this->$name instanceof Closure) 265 return call_user_func_array($this->$name, $parameters); 266 throw new CException(Yii::t('yii','{class} and its behaviors do not have a method or closure named "{name}".', |
#24 |
+
–
/home/www/new.stlyrics.com/html/index.php(117): CComponent->__call("runEnd", array("songs")) 112 date_default_timezone_set($timezone); 113 114 $global = dirname(__FILE__).'/yii/global.php'; 115 require_once($global); 116 require_once(dirname(__FILE__).'/yii/framework/'.$yii); 117 Yii::createWebApplication(dirname(__FILE__).'/protected/config/'.$config)->runEnd($end); |
#25 |
+
–
/home/www/new.stlyrics.com/html/index.php(117): CWebApplication->runEnd("songs") 112 date_default_timezone_set($timezone); 113 114 $global = dirname(__FILE__).'/yii/global.php'; 115 require_once($global); 116 require_once(dirname(__FILE__).'/yii/framework/'.$yii); 117 Yii::createWebApplication(dirname(__FILE__).'/protected/config/'.$config)->runEnd($end); |