PHP notice

Undefined variable: sLoadPass

/data/webdev/3fixes/application/helpers/frontend_helper.php(58)

46         return false;
47     }
48     $oCriteria->params = $aParams;
49     $oResponses = SurveyDynamic::model($surveyid)->with('saved_control')->find($oCriteria);
50 
51     if (!$oResponses) {
52         return false;
53     }
54 
55     if (isset($oResponses->saved_control) && $oResponses->saved_control) {
56         $saved_control = $oResponses->saved_control;
57         $access_code = $oResponses->saved_control->access_code;
58         $md5_code = md5($sLoadPass);
59         $sha256_code = hash('sha256', $sLoadPass);
60         if ($md5_code === $access_code || $sha256_code === $access_code || password_verify($sLoadPass, $access_code)) {
61             //A match has been found. Let's load the values!
62             //If this is from an email, build surveysession first
63             $_SESSION['survey_' . $surveyid]['LEMtokenResume'] = true;
64 
65             // If survey come from reload (GET or POST); some value need to be found on saved_control, not on survey
66             if (Yii::app()->request->getParam('loadall') === "reload") {
67                 // We don't need to control if we have one, because we do the test before
68                 $_SESSION['survey_' . $surveyid]['scid'] = $saved_control->scid;
69                 $_SESSION['survey_' . $surveyid]['step'] = ($saved_control->saved_thisstep > 1) ? $saved_control->saved_thisstep : 1;
70                 $thisstep = $_SESSION['survey_' . $surveyid]['step'] - 1; // deprecated ?

Stack Trace

#0
+
 /data/webdev/3fixes/application/controllers/survey/index.php(556): loadanswers()
551                         // alloweditaftercompletion
552                         if (!empty($oResponse->submitdate)) {
553                             $_SESSION['survey_'.$surveyid]['maxstep'] = $_SESSION['survey_'.$surveyid]['totalsteps'];
554                         }
555 
556                         loadanswers();
557                         randomizationGroupsAndQuestions($surveyid);
558                         initFieldArray($surveyid, $_SESSION['survey_'.$surveyid]['fieldmap']);
559                     }
560                 }
561             }
#1
+
 /data/webdev/3fixes/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;
#9
+
 /data/webdev/3fixes/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 */
2021-07-27 16:48:33 nginx/1.14.2 Yii Framework/1.1.24-dev