PHP notice

Undefined index: active

/home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(569)

557             }
558 
559             resetTimers();
560 
561             //Before doing the "templatereplace()" function, check the $this->aSurveyInfo['url']
562             //field for limereplace stuff, and do transformations!
563             $this->aSurveyInfo['surveyls_url'] = passthruReplace($this->aSurveyInfo['surveyls_url'], $this->aSurveyInfo);
564             $this->aSurveyInfo['surveyls_url'] = templatereplace($this->aSurveyInfo['surveyls_url'], array(), $redata, 'URLReplace', false, NULL, array(), true );   // to do INSERTANS substitutions
565 
566 
567             //THE FOLLOWING DEALS WITH SUBMITTING ANSWERS AND COMPLETING AN ACTIVE SURVEY
568             //don't use cookies if tokens are being used
569             if ($this->aSurveyInfo['active'] == "Y"){
570                 global $tokensexist;
571                 if ($this->aSurveyInfo['usecookie'] == "Y" && $tokensexist != 1) {
572                     setcookie("LS_" . $this->iSurveyid . "_STATUS", "COMPLETE", time() + 31536000); //Cookie will expire in 365 days
573                 }
574             }
575         }
576     }
577 
578 
579     /**
580      * Retreive the survey format (mode?)
581      * TODO: move to survey model

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(1648): SurveyRuntimeHelper->setArgs()
1643     private function setSurveySettings( $surveyid, $args  )
1644     {
1645         $this->setVarFromArgs($args);                                           // Set the private variable from $args
1646         $this->initTemplate();                                                  // Template settings
1647         $this->setJavascriptVar();
1648         $this->setArgs();
1649 
1650         extract($args);
1651 
1652         $this->LEMsessid = 'survey_' . $this->iSurveyid;
1653         $this->aSurveyInfo                 = (!$thissurvey)?getSurveyInfo($this->iSurveyid):$thissurvey;
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/helpers/SurveyRuntimeHelper.php(89): SurveyRuntimeHelper->setSurveySettings("69285", array("surveyid" => "69285", "thissurvey" => array("template" => "default", "language" => "fr", "sid" => "69285", "owner_id" => "1", ...), "thisstep" => "2", "tokensexist" => 0, ...))
84     * @param mixed $args
85     */
86     public function run($surveyid,$args)
87     {
88         // Survey settings
89         $this->setSurveySettings( $surveyid, $args);
90 
91         // Start rendering
92         $this->makeLanguageChanger();                                           //  language changer can be used on any entry screen, so it must be set first
93 
94         extract($args);
#2
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/develop/application/controllers/survey/index.php(580): SurveyRuntimeHelper->run("69285", array("surveyid" => "69285", "thissurvey" => array("template" => "default", "language" => "fr", "sid" => "69285", "owner_id" => "1", ...), "thisstep" => "2", "tokensexist" => 0, ...))
575         //Send local variables to the appropriate survey type
576         unset($redata);
577         $redata = compact(array_keys(get_defined_vars()));
578         Yii::import('application.helpers.SurveyRuntimeHelper');
579         $tmp = new SurveyRuntimeHelper();
580         $tmp->run($surveyid,$redata);
581 
582         if (App()->request->getPost('saveall') || isset($flashmessage)){
583             App()->clientScript->registerScript("saveflashmessage","alert('".gT("Your responses were successfully saved.","js")."');",CClientScript::POS_READY);
584         }
585     }
2017-05-18 16:37:11 Apache/2.2.22 (Debian) Yii Framework/1.1.17