PHP notice

Trying to get property of non-object

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/Statistics_userController.php(357)

345         $thissurvey = getSurveyInfo($surveyid,$sLanguage);
346 
347         //SET THE TEMPLATE DIRECTORY
348         $data['sTemplatePath'] = $surveyinfo['template'];// surveyinfo=getSurveyInfo and if survey don't exist : stop before.
349 
350 
351         //---------- CREATE STATISTICS ----------
352         $redata = compact(array_keys(get_defined_vars()));
353         doHeader();
354 
355         /// $oTemplate is a global variable defined in controller/survey/index
356         global $oTemplate;
357         echo templatereplace(file_get_contents($oTemplate->viewPath."startpage.pstpl"),array(), $redata);
358 
359 
360         //some progress bar stuff
361 
362         // Create progress bar which is shown while creating the results
363         $prb = new ProgressBar();
364         $prb->pedding = 2;    // Bar Pedding
365         $prb->brd_color = "#404040 #dfdfdf #dfdfdf #404040";    // Bar Border Color
366 
367         $prb->setFrame();    // set ProgressBar Frame
368         $prb->frame['left'] = 50;    // Frame position from left
369         $prb->frame['top'] =     80;    // Frame position from top

Stack Trace

#9
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/index.php(211): CApplication->run()
206         die (sprintf('%s should be writable by the webserver (766 or 776).', $runtimePath));
207     }
208 }
209 
210 Yii::$enableIncludePath = false;
211 Yii::createApplication('LSYii_Application', $config)->run();
212 
213 /* End of file index.php */
214 /* Location: ./index.php */
2016-02-06 19:24:24 Apache/2.2.22 (Debian) Yii Framework/1.1.16