E:\WebSite\limesurvey\framework\db\CDbCommand.php(358)
346 { 347 if($this->_connection->enableProfiling) 348 Yii::endProfile('system.db.CDbCommand.execute('.$this->getText().$par.')','system.db.CDbCommand.execute'); 349 350 $errorInfo=$e instanceof PDOException ? $e->errorInfo : null; 351 $message=$e->getMessage(); 352 Yii::log(Yii::t('yii','CDbCommand::execute() failed: {error}. The SQL statement executed was: {sql}.', 353 array('{error}'=>$message, '{sql}'=>$this->getText().$par)),CLogger::LEVEL_ERROR,'system.db.CDbCommand'); 354 355 if(YII_DEBUG) 356 $message.='. The SQL statement executed was: '.$this->getText().$par; 357 358 throw new CDbException(Yii::t('yii','CDbCommand failed to execute the SQL statement: {error}', 359 array('{error}'=>$message)),(int)$e->getCode(),$errorInfo); 360 } 361 } 362 363 /** 364 * Executes the SQL statement and returns query result. 365 * This method is for executing an SQL query that returns result set. 366 * @param array $params input parameters (name=>value) for the SQL execution. This is an alternative 367 * to {@link bindParam} and {@link bindValue}. If you have multiple input parameters, passing 368 * them in this way can improve the performance. Note that if you pass parameters in this way, 369 * you cannot bind parameters or values using {@link bindParam} or {@link bindValue}, and vice versa. 370 * Please also note that all values are treated as strings in this case, if you need them to be handled as
#0 |
+
–
E:\WebSite\limesurvey\framework\db\ar\CActiveRecord.php(1083): CDbCommand->execute() 1078 { 1079 Yii::trace(get_class($this).'.insert()','system.db.ar.CActiveRecord'); 1080 $builder=$this->getCommandBuilder(); 1081 $table=$this->getTableSchema(); 1082 $command=$builder->createInsertCommand($table,$this->getAttributes($attributes)); 1083 if($command->execute()) 1084 { 1085 $primaryKey=$table->primaryKey; 1086 if($table->sequenceName!==null) 1087 { 1088 if(is_string($primaryKey) && $this->$primaryKey===null) |
#1 |
+
–
E:\WebSite\limesurvey\framework\db\ar\CActiveRecord.php(811): CActiveRecord->insert(null) 806 * @return boolean whether the saving succeeds 807 */ 808 public function save($runValidation=true,$attributes=null) 809 { 810 if(!$runValidation || $this->validate($attributes)) 811 return $this->getIsNewRecord() ? $this->insert($attributes) : $this->update($attributes); 812 else 813 return false; 814 } 815 816 /** |
#2 |
+
–
E:\WebSite\limesurvey\application\models\Question.php(1149): CActiveRecord->save() 1144 $oRecord = new self; 1145 foreach ($data as $k => $v) { 1146 $oRecord->$k = $v; 1147 } 1148 if ($oRecord->validate()) { 1149 return $oRecord->save(); 1150 } 1151 Yii::log(\CVarDumper::dumpAsString($oRecord->getErrors()), 'warning', 'application.models.Question.insertRecords'); 1152 } 1153 1154 } |
#3 |
+
–
E:\WebSite\limesurvey\application\controllers\admin\database.php(1377): Question->insertRecords(array("qid" => "491363", "parent_qid" => "491362", "sid" => "999245", "type" => "T", ...)) 1372 } else { // additional languages 1373 $aInsertData['qid'] = $aSubquestionIds[$sSubquestionIndex]; // get qid from array 1374 } 1375 1376 $aInsertData['parent_qid'] = $this->iQuestionID; 1377 if (Question::model()->insertRecords($aInsertData)){ 1378 if ($sLanguageIndex == 0){ // main language 1379 $aSubquestionIds[$sSubquestionIndex] = getLastInsertID('{{questions}}'); // save qid into the array 1380 } 1381 } 1382 } |
#4 |
+
–
E:\WebSite\limesurvey\application\controllers\admin\database.php(127): database->actionInsertCopyQuestion(999245) 122 } 123 if ($sAction == "updatesubquestions" && Permission::model()->hasSurveyPermission($this->iSurveyID, 'surveycontent', 'update')) { 124 $this->actionSubQuestions($this->iSurveyID); 125 } 126 if (in_array($sAction, array('insertquestion', 'copyquestion')) && Permission::model()->hasSurveyPermission($this->iSurveyID, 'surveycontent', 'create')) { 127 $this->actionInsertCopyQuestion($this->iSurveyID); 128 } 129 if ($sAction == "updatequestion" && Permission::model()->hasSurveyPermission($this->iSurveyID, 'surveycontent', 'update')) { 130 $this->actionUpdateQuestion($this->iSurveyID); 131 } 132 if (($sAction == "updatesurveylocalesettings") && (Permission::model()->hasSurveyPermission($this->iSurveyID, 'surveylocale', 'update') || Permission::model()->hasSurveyPermission($iSurveyID, 'surveysettings', 'update'))) { |
#5 |
unknown(0): database->index()
|
#6 |
+
–
E:\WebSite\limesurvey\framework\web\actions\CAction.php(115): ReflectionMethod->invokeArgs(database, 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 } |
#7 |
+
–
E:\WebSite\limesurvey\application\core\Survey_Common_Action.php(83): CAction->runWithParamsInternal(database,
ReflectionMethod, array("r" => "admin/database/index", "index" =>
"", "iGroupId" => "18850", "iSurveyId" => "999245", ...)) 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 |
#8 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(308): Survey_Common_Action->runWithParams(array("r" => "admin/database/index", "index" => "", "iGroupId" => "18850", "iSurveyId" => "999245", ...)) 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; |
#9 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(286): CController->runAction(database) 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(); |
#10 |
+
–
E:\WebSite\limesurvey\framework\web\CController.php(265): CController->runActionWithFilters(database, 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); |
#11 |
+
–
E:\WebSite\limesurvey\application\controllers\AdminController.php(165): CController->run("database") 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 * |
#12 |
+
–
E:\WebSite\limesurvey\framework\web\CWebApplication.php(282): AdminController->run("database") 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))); |
#13 |
+
–
E:\WebSite\limesurvey\framework\web\CWebApplication.php(141): CWebApplication->runController("admin/database/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. |
#14 |
+
–
E:\WebSite\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 /** |
#15 |
+
–
E:\WebSite\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 */ |