/home/www/demo.sondages.me/htdocs/framework/db/ar/CActiveRecord.php(2390)
2378 2379 /** 2380 * Constructor. 2381 * @param CActiveRecord $model the model instance 2382 * @throws CDbException if specified table for active record class cannot be found in the database 2383 */ 2384 public function __construct($model) 2385 { 2386 $this->_modelClassName=get_class($model); 2387 2388 $tableName=$model->tableName(); 2389 if(($table=$model->getDbConnection()->getSchema()->getTable($tableName))===null) 2390 throw new CDbException(Yii::t('yii','The table "{table}" for active record class "{class}" cannot be found in the database.', 2391 array('{class}'=>$this->_modelClassName,'{table}'=>$tableName))); 2392 2393 if(($modelPk=$model->primaryKey())!==null || $table->primaryKey===null) 2394 { 2395 $table->primaryKey=$modelPk; 2396 if(is_string($table->primaryKey) && isset($table->columns[$table->primaryKey])) 2397 $table->columns[$table->primaryKey]->isPrimaryKey=true; 2398 elseif(is_array($table->primaryKey)) 2399 { 2400 foreach($table->primaryKey as $name) 2401 { 2402 if(isset($table->columns[$name]))
#0 |
+
–
/home/www/demo.sondages.me/htdocs/framework/db/ar/CActiveRecord.php(413): CActiveRecordMetaData->__construct(Response_653142) 408 { 409 $className=get_class($this); 410 if(!array_key_exists($className,self::$_md)) 411 { 412 self::$_md[$className]=null; // preventing recursive invokes of {@link getMetaData()} via {@link __get()} 413 self::$_md[$className]=new CActiveRecordMetaData($this); 414 } 415 return self::$_md[$className]; 416 } 417 418 /** |
#1 |
+
–
/home/www/demo.sondages.me/htdocs/framework/db/ar/CActiveRecord.php(682): CActiveRecord->getMetaData() 677 * @param string $name attribute name 678 * @return boolean whether this AR has the named attribute (table column). 679 */ 680 public function hasAttribute($name) 681 { 682 return isset($this->getMetaData()->columns[$name]); 683 } 684 685 /** 686 * Returns the named attribute value. 687 * If this is a new record and the attribute is not set before, |
#2 |
+
–
/home/www/demo.sondages.me/htdocs/application/models/LSActiveRecord.php(34): CActiveRecord->hasAttribute("created") 29 * @return array 30 */ 31 public function behaviors() 32 { 33 $aBehaviors = array(); 34 $sCreateFieldName = ($this->hasAttribute('created') ? 'created' : null); 35 $sUpdateFieldName = ($this->hasAttribute('modified') ? 'modified' : null); 36 $sDriverName = Yii::app()->db->getDriverName(); 37 if ($sDriverName == 'sqlsrv' || $sDriverName == 'dblib') { 38 $sTimestampExpression = new CDbExpression('GETDATE()'); 39 } else { |
#3 |
+
–
/home/www/demo.sondages.me/htdocs/framework/db/ar/CActiveRecord.php(398): LSActiveRecord->behaviors() 393 if(isset(self::$_models[$className])) 394 return self::$_models[$className]; 395 else 396 { 397 $model=self::$_models[$className]=new $className(null); 398 $model->attachBehaviors($model->behaviors()); 399 return $model; 400 } 401 } 402 403 /** |
#4 |
+
–
/home/www/demo.sondages.me/htdocs/application/models/Dynamic.php(38): CActiveRecord::model("Response_653142") 33 $className = get_called_class(); 34 } elseif (is_numeric($className)) { 35 $className = get_called_class().'_'.$className; 36 } 37 /** @var self $model */ 38 $model = parent::model($className); 39 return $model; 40 } 41 42 /** 43 * @param string $scenario |
#5 |
+
–
/home/www/demo.sondages.me/htdocs/application/models/Response.php(25): Dynamic::model("Response_653142") 20 * @return Response 21 */ 22 public static function model($className = null) 23 { 24 /** @var self $model */ 25 $model = parent::model($className); 26 return $model; 27 } 28 /** 29 * 30 * @param int $surveyId |
#6 |
+
–
/home/www/demo.sondages.me/htdocs/application/libraries/MersenneTwister.php(16): Response::model("653142") 11 */ 12 function setSeed($surveyid) 13 { 14 //traceVar(@$_SESSION['survey_' . $surveyid]['srid']); 15 if (isset($_SESSION['survey_'.$surveyid]['srid'])) { 16 $oResponse = \Response::model($surveyid)->findByPk($_SESSION['survey_'.$surveyid]['srid']); 17 $seed = $oResponse->seed; 18 /* fix empty seed, this allow broken seed (not number) */ 19 if(empty($seed)) { 20 $seed = mt_rand(); 21 $oResponse->seed = $seed; |
#7 |
+
–
/home/www/demo.sondages.me/htdocs/application/helpers/frontend_helper.php(997): ls\mersenne\setSeed("653142") 0992 */ 0993 function randomizationGroupsAndQuestions($surveyid, $preview = false, $fieldmap = array()) 0994 { 0995 // Initialize the randomizer. Seed will be stored in response. 0996 // TODO: rewrite this THE YII WAY !!!! (application/third_party + internal config for namespace + aliases; etc) 0997 ls\mersenne\setSeed($surveyid); 0998 0999 $fieldmap = (empty($fieldmap)) ? $_SESSION['survey_'.$surveyid]['fieldmap'] : $fieldmap; 1000 1001 list($fieldmap, $randomized1) = randomizationGroup($surveyid, $fieldmap, $preview); // Randomization groups for groups 1002 list($fieldmap, $randomized2) = randomizationQuestion($surveyid, $fieldmap, $preview); // Randomization groups for questions |
#8 |
+
–
/home/www/demo.sondages.me/htdocs/application/helpers/SurveyRuntimeHelper.php(663): randomizationGroupsAndQuestions("653142") 658 659 // First time the survey is loaded 660 if (!isset($_SESSION[$this->LEMsessid]['step']) || ($this->previewquestion || $this->previewgrp) ) { 661 // Init session, randomization and filed array 662 buildsurveysession($this->iSurveyid); 663 $fieldmap = randomizationGroupsAndQuestions($this->iSurveyid); 664 initFieldArray($this->iSurveyid, $fieldmap); 665 666 // Check surveyid coherence 667 if ($this->iSurveyid != LimeExpressionManager::getLEMsurveyId()) { 668 LimeExpressionManager::SetDirtyFlag(); |
#9 |
+
–
/home/www/demo.sondages.me/htdocs/application/helpers/SurveyRuntimeHelper.php(529): SurveyRuntimeHelper->initFirstStep() 524 * + Is the survey finished? 525 * + Are all the answer validated? (like: participant didn't answered to a mandatory question) 526 */ 527 private function initMove() 528 { 529 $this->initFirstStep(); // If it's the first time user load this survey, will init session and LEM 530 $this->initTotalAndMaxSteps(); 531 $this->checkIfUseBrowserNav(); // Check if user used browser navigation, or relaoded page 532 if ($this->sMove != 'clearcancel' && $this->sMove != 'confirmquota') { 533 $this->checkPrevStep(); // Check if prev step is set, else set it 534 $this->setMoveResult(); |
#10 |
+
–
/home/www/demo.sondages.me/htdocs/application/helpers/SurveyRuntimeHelper.php(104): SurveyRuntimeHelper->initMove() 099 if (!isset($_SESSION[$this->LEMsessid]['step'])) { 100 $this->showTokenOrCaptchaFormsIfNeeded(); 101 } 102 103 $this->checkForDataSecurityAccepted(); 104 $this->initMove(); // main methods to init session, LEM, moves, errors, etc 105 if (!$this->previewgrp && !$this->previewquestion) { 106 $this->checkQuotas(); // check quotas (then the process will stop here) 107 $this->displayFirstPageIfNeeded(); 108 $this->saveAllIfNeeded(); 109 $this->saveSubmitIfNeeded(); |
#11 |
+
–
/home/www/demo.sondages.me/htdocs/application/controllers/survey/index.php(590): SurveyRuntimeHelper->run("653142",
array("surveyid" => "653142", "thissurvey" => array("htmlemail"
=> "Y", "format" => "G", "template" => "skelvanilla",
"language" => "fr", ...), "thisstep" => null, "tokensexist" =>
0, ...)) 585 unset($redata); 586 $redata = compact(array_keys(get_defined_vars())); 587 Yii::import('application.helpers.SurveyRuntimeHelper'); 588 $tmp = new SurveyRuntimeHelper(); 589 // try { 590 $tmp->run($surveyid, $redata); 591 // } catch (WrongTemplateVersionException $ex) { 592 // echo $ex->getMessage(); 593 // } 594 } 595 |
#12 |
+
–
/home/www/demo.sondages.me/htdocs/application/controllers/survey/index.php(24): index->action() 19 public $oTemplate; 20 21 public function run() 22 { 23 useFirebug(); 24 $this->action(); 25 } 26 27 public function action() 28 { 29 global $surveyid; |
#13 |
+
–
/home/www/demo.sondages.me/htdocs/framework/web/actions/CAction.php(76): index->run() 71 { 72 $method=new ReflectionMethod($this, 'run'); 73 if($method->getNumberOfParameters()>0) 74 return $this->runWithParamsInternal($this, $method, $params); 75 76 $this->run(); 77 return true; 78 } 79 80 /** 81 * Executes a method of an object with the supplied named parameters. |
#14 |
+
–
/home/www/demo.sondages.me/htdocs/framework/web/CController.php(308): CAction->runWithParams(array("action" => "previewgroup", "sid" => "653142", "gid" => "75")) 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; |
#15 |
+
–
/home/www/demo.sondages.me/htdocs/framework/web/CController.php(286): CController->runAction(index) 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(); |
#16 |
+
–
/home/www/demo.sondages.me/htdocs/framework/web/CController.php(265): CController->runActionWithFilters(index, 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); |
#17 |
+
–
/home/www/demo.sondages.me/htdocs/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))); |
#18 |
+
–
/home/www/demo.sondages.me/htdocs/framework/web/CWebApplication.php(141): CWebApplication->runController("survey/index/action/previewgroup/sid/653142/gid/75") 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. |
#19 |
+
–
/home/www/demo.sondages.me/htdocs/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 /** |
#20 |
+
–
/home/www/demo.sondages.me/htdocs/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 */ |
Journal d'application | ||||
---|---|---|---|---|
Heure | Niveau | Categorie | Message | |
18:12:34.660566 | error | system.db.CDbCommand | CDbCommand::fetchAll() failed: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'sm_demo.limeliste_survey_653142' doesn't exist. The SQL statement executed was: SHOW FULL COLUMNS FROM `limeliste_survey_653142`. |
|
18:12:34.660892 | error | exception.CDbException | CDbException: La table « {{survey_653142}} » associée à la classe Active record « Response_653142 » est introuvable dans la base de données. in /home/www/demo.sondages.me/htdocs/framework/db/ar/CActiveRecord.php:2390 Stack trace: #0 /home/www/demo.sondages.me/htdocs/framework/db/ar/CActiveRecord.php(413): CActiveRecordMetaData->__construct(Object(Response_653142)) #1 /home/www/demo.sondages.me/htdocs/framework/db/ar/CActiveRecord.php(682): CActiveRecord->getMetaData() #2 /home/www/demo.sondages.me/htdocs/application/models/LSActiveRecord.php(34): CActiveRecord->hasAttribute('created') #3 /home/www/demo.sondages.me/htdocs/framework/db/ar/CActiveRecord.php(398): LSActiveRecord->behaviors() #4 /home/www/demo.sondages.me/htdocs/application/models/Dynamic.php(38): CActiveRecord::model('Response_653142') #5 /home/www/demo.sondages.me/htdocs/application/models/Response.php(25): Dynamic::model('Response_653142') #6 /home/www/demo.sondages.me/htdocs/application/libraries/MersenneTwister.php(16): Response::model('653142') #7 /home/www/demo.sondages.me/htdocs/application/helpers/frontend_helper.php(997): ls\mersenne\setSeed('653142') #8 /home/www/demo.sondages.me/htdocs/application/helpers/SurveyRuntimeHelper.php(663): randomizationGroupsAndQuestions('653142') #9 /home/www/demo.sondages.me/htdocs/application/helpers/SurveyRuntimeHelper.php(529): SurveyRuntimeHelper->initFirstStep() #10 /home/www/demo.sondages.me/htdocs/application/helpers/SurveyRuntimeHelper.php(104): SurveyRuntimeHelper->initMove() #11 /home/www/demo.sondages.me/htdocs/application/controllers/survey/index.php(590): SurveyRuntimeHelper->run('653142', Array) #12 /home/www/demo.sondages.me/htdocs/application/controllers/survey/index.php(24): index->action() #13 /home/www/demo.sondages.me/htdocs/framework/web/actions/CAction.php(76): index->run() #14 /home/www/demo.sondages.me/htdocs/framework/web/CController.php(308): CAction->runWithParams(Array) #15 /home/www/demo.sondages.me/htdocs/framework/web/CController.php(286): CController->runAction(Object(index)) #16 /home/www/demo.sondages.me/htdocs/framework/web/CController.php(265): CController->runActionWithFilters(Object(index), Array) #17 /home/www/demo.sondages.me/htdocs/framework/web/CWebApplication.php(282): CController->run('index') #18 /home/www/demo.sondages.me/htdocs/framework/web/CWebApplication.php(141): CWebApplication->runController('survey/index/ac...') #19 /home/www/demo.sondages.me/htdocs/framework/base/CApplication.php(185): CWebApplication->processRequest() #20 /home/www/demo.sondages.me/htdocs/index.php(194): CApplication->run() #21 {main} REQUEST_URI=/survey/index/action/previewgroup/sid/653142/gid/75 HTTP_REFERER=https://demo.sondages.me/admin/questions/sa/view/surveyid/653142/gid/75/qid/363 --- |