PHP notice

Undefined variable: surveyid

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/controllers/SurveysController.php(30)

18             {
19                 App()->setLanguage(App()->getConfig('defaultlang'));
20             }
21             //$oTemplate = Template::model()->getInstance(Yii::app()->getConfig("defaulttemplate"));
22 
23             // To avoid to reinstanciate again the object in the helpers, libraries, views
24             // we must make $oTemplate global.
25             // using a "getInstance" method without parsing the template model from the controllers
26             // to the helpers/libraries/view will not resolve magically the problem. It will just create
27             // second instance.
28             global $oTemplate;            
29             $oTemplate = new TemplateConfiguration;
30             $oTemplate->setTemplateConfiguration('',$surveyid);
31 
32             if($oTemplate->cssFramework == 'bootstrap')
33             {
34                 App()->bootstrap->register();
35             }
36             $this->render('publicSurveyList', array(
37                 'publicSurveys' => Survey::model()->active()->open()->public()->with('languagesettings')->findAll(),
38                 'futureSurveys' => Survey::model()->active()->registration()->public()->with('languagesettings')->findAll(),
39             ));
40         }
41     }
42 ?>

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-03-09 09:35:35 Apache/2.2.22 (Debian) Yii Framework/1.1.17