PHP notice

Trying to get property of non-object

/home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/admin/htmleditor_helper.php(28)

16     function initKcfinder()
17     {
18      Yii::app()->session['KCFINDER'] = array();
19 
20         $sAllowedExtensions = implode(' ', array_map('trim', explode(',', Yii::app()->getConfig('allowedresourcesuploads'))));
21         $_SESSION['KCFINDER']['types'] = array(
22             'files' => $sAllowedExtensions,
23             'flash' => $sAllowedExtensions,
24             'images' => $sAllowedExtensions
25         );
26         if (Yii::app()->getRequest()->enableCsrfValidation)
27         {
28             $_SESSION['KCFINDER']['cookieDomain'] = Yii::app()->getRequest()->csrfCookie->domain;
29         }
30 
31         if (Yii::app()->getConfig('demoMode') === false &&
32                 isset(Yii::app()->session['loginID']) &&
33                 isset(Yii::app()->session['FileManagerContext']))
34         {
35             // disable upload at survey creation time
36             // because we don't know the sid yet
37             if (preg_match('/^(create|edit):(question|group|answer)/', Yii::app()->session['FileManagerContext']) != 0 ||
38                     preg_match('/^edit:survey/', Yii::app()->session['FileManagerContext']) != 0 ||
39                     preg_match('/^edit:assessments/', Yii::app()->session['FileManagerContext']) != 0 ||
40                     preg_match('/^edit:emailsettings/', Yii::app()->session['FileManagerContext']) != 0)

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/helpers/admin/htmleditor_helper.php(133): initKcfinder()
128         }
129     }
130 
131     function getEditor($fieldtype,$fieldname,$fieldtext, $surveyID=null,$gID=null,$qID=null,$action=null)
132     {
133         initKcfinder();
134         //error_log("TIBO fieldtype=$fieldtype,fieldname=$fieldname,fieldtext=$fieldtext,surveyID=$surveyID,gID=$gID,qID=$qID,action=$action");
135         $session = &Yii::app()->session;
136 
137         if ($session['htmleditormode'] &&
138         $session['htmleditormode'] == 'none')
#1
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/views/admin/survey/Question/question_subviews/_tabs.php(47): getEditor("question-text", "question_en", "[Question:](en)", "666412", ...)
42         <div class="form-group">
43                 <label class="col-sm-3 control-label" for='question_<?php echo $eqrow['language']; ?>' class=""><?php eT("Question:"); ?></label>
44                 <div class="col-sm-9">
45                 <div class="htmleditor input-group">
46                     <?php echo CHtml::textArea("question_{$eqrow['language']}",$eqrow['question'],array('class'=>'form-control','cols'=>'60','rows'=>'8','id'=>"question_{$eqrow['language']}")); ?>
47                     <?php echo getEditor("question-text","question_".$eqrow['language'], "[".gT("Question:", "js")."](".$eqrow['language'].")",$surveyid,$gid,$qid,$action); ?>
48                 </div>
49                 </div>
50         </div>
51 
52         <!-- Question Help -->
#5
+
 /home/sondages.pro/htdocs/limesurvey_GIT/LimeSurvey/application/views/admin/survey/Question/editQuestion_view.php(59): CController->renderPartial("./survey/Question/question_subviews/_tabs", array("eqrow" => array("qid" => "51349", "parent_qid" => "0", "sid" => "666412", "gid" => "2653", ...), "addlanguages" => array(), "surveyid" => "666412", "gid" => "2653", ...))
54                                     'gid'=>$gid, 'qid'=>$qid,
55                                     'adding'=>$adding,
56                                     'aqresult'=>$aqresult,
57                                     'action'=>$action
58                                 )
59                             ); ?>
60 
61                     <?php endif;?>
62                 </div>
63 
64                 <!-- The Accordion -->
2016-05-11 16:38:22 Apache/2.2.22 (Debian) Yii Framework/1.1.17