.\limesurvey\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 |
+
–
.\limesurvey\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 |
+
–
.\limesurvey\framework\db\ar\CActiveRecord.php(1359): CDbCommand->queryRow() 1354 if(empty($criteria->with)) 1355 { 1356 if(!$all) 1357 $criteria->limit=1; 1358 $command=$this->getCommandBuilder()->createFindCommand($this->getTableSchema(),$criteria); 1359 return $all ? $this->populateRecords($command->queryAll(), true, $criteria->index) : $this->populateRecord($command->queryRow()); 1360 } 1361 else 1362 { 1363 $finder=$this->getActiveFinder($criteria->with); 1364 return $finder->query($criteria,$all); |
#2 |
+
–
.\limesurvey\application\models\LSActiveRecord.php(73): CActiveRecord->query(CDbCriteria, false) 68 * @since 1.1.7 69 */ 70 protected function query($criteria, $all = false, $asAR = true) 71 { 72 if ($asAR === true) { 73 return parent::query($criteria, $all); 74 } else { 75 $this->beforeFind(); 76 $this->applyScopes($criteria); 77 if (!$all) { 78 $criteria->limit = 1; |
#3 |
+
–
.\limesurvey\framework\db\ar\CActiveRecord.php(1527): LSActiveRecord->query(CDbCriteria) 1522 public function findByAttributes($attributes,$condition='',$params=array()) 1523 { 1524 Yii::trace(get_class($this).'.findByAttributes()','system.db.ar.CActiveRecord'); 1525 $prefix=$this->getTableAlias(true).'.'; 1526 $criteria=$this->getCommandBuilder()->createColumnCriteria($this->getTableSchema(),$attributes,$condition,$params,$prefix); 1527 return $this->query($criteria); 1528 } 1529 1530 /** 1531 * Finds all active records that have the specified attribute values. 1532 * See {@link find()} for detailed explanation about $condition and $params. |
#4 |
+
–
.\limesurvey\application\controllers\admin\checkintegrity.php(537): CActiveRecord->findByAttributes(array("qid" => "33931687481", "language" => "en", "sid" => "152625")) 532 if ((string) intval($sQID) !== $sQID) { 533 throw new \Exception('sQID is not an integer: ' . $sQID); 534 } 535 536 // Here, we get the question as defined in backend 537 $oQuestion = Question::model()->findByAttributes([ 'qid' => $sQID , 'language' => $oSurvey->language, 'sid' => $oSurvey->sid ]); 538 if (is_a($oQuestion, 'Question')){ 539 540 // We check if its GID is the same as the one defined in the column name 541 if ($oQuestion->gid != $sGid){ 542 |
#5 |
+
–
.\limesurvey\application\controllers\admin\checkintegrity.php(40): CheckIntegrity->_checkintegrity() 35 Yii::app()->loadHelper('surveytranslator'); 36 } 37 38 public function index() 39 { 40 $aData = $this->_checkintegrity(); 41 42 43 $aData['fullpagebar']['returnbutton']['url'] = 'admin/index'; 44 $aData['fullpagebar']['returnbutton']['text'] = gT('Return to admin home'); 45 |
#6 |
unknown(0): CheckIntegrity->index()
|
#7 |
+
–
.\limesurvey\framework\web\actions\CAction.php(115): ReflectionMethod->invokeArgs(CheckIntegrity, array()) 110 elseif($param->isDefaultValueAvailable()) 111 $ps[]=$param->getDefaultValue(); 112 else 113 return false; 114 } 115 $method->invokeArgs($object,$ps); 116 return true; 117 } 118 } |
#8 |
+
–
.\limesurvey\application\core\Survey_Common_Action.php(83): CAction->runWithParamsInternal(CheckIntegrity, ReflectionMethod, array("r" => "admin/checkintegrity")) 78 $oMethod = new ReflectionMethod($this, $sDefault); 79 } 80 81 // We're all good to go, let's execute it 82 // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params 83 return parent::runWithParamsInternal($this, $oMethod, $params); 84 } 85 86 /** 87 * Some functions have different parameters, which are just an alias of the 88 * usual parameters we're getting in the url. This function just populates |
#9 |
+
–
.\limesurvey\framework\web\CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/checkintegrity")) 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; |
#10 |
+
–
.\limesurvey\framework\web\CController.php(286): CController->runAction(CheckIntegrity) 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(); |
#11 |
+
–
.\limesurvey\framework\web\CController.php(265): CController->runActionWithFilters(CheckIntegrity, 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); |
#12 |
+
–
.\limesurvey\application\controllers\AdminController.php(165): CController->run("checkintegrity") 160 $this->redirect(array('/admin/authentication/sa/login')); 161 } 162 } 163 } 164 165 return parent::run($action); 166 } 167 168 /** 169 * Routes all the actions to their respective places 170 * |
#13 |
+
–
.\limesurvey\framework\web\CWebApplication.php(282): AdminController->run("checkintegrity") 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))); |
#14 |
+
–
.\limesurvey\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/checkintegrity") 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. |
#15 |
+
–
.\limesurvey\framework\base\CApplication.php(185): CWebApplication->processRequest() 180 public function run() 181 { 182 if($this->hasEventHandler('onBeginRequest')) 183 $this->onBeginRequest(new CEvent($this)); 184 register_shutdown_function(array($this,'end'),0,false); 185 $this->processRequest(); 186 if($this->hasEventHandler('onEndRequest')) 187 $this->onEndRequest(new CEvent($this)); 188 } 189 190 /** |
#16 |
+
–
.\limesurvey\index.php(194): CApplication->run() 189 require_once APPPATH . 'core/LSYii_Application' . EXT; 190 191 $config = require_once(APPPATH . 'config/internal' . EXT); 192 193 Yii::$enableIncludePath = false; 194 Yii::createApplication('LSYii_Application', $config)->run(); 195 196 /* End of file index.php */ 197 /* Location: ./index.php */ |