PHP warning

Illegal string offset 'fr'

/home/sondages.pro/htdocs/limesurvey_GIT/testing/masterall/application/models/Question.php(232)

220         else
221         {
222             $aLanguages = array($sLanguage);
223         }
224 
225         if ($iQuestionID)
226         {
227             $oAttributeValues = QuestionAttribute::model()->findAll("qid=:qid",array('qid'=>$iQuestionID));
228             $aAttributeValues=array();
229             foreach($oAttributeValues as $oAttributeValue)
230             {
231                 if($oAttributeValue->language){
232                     $aAttributeValues[$oAttributeValue->attribute][$oAttributeValue->language]=$oAttributeValue->value;
233                 }else{
234                     $aAttributeValues[$oAttributeValue->attribute]=$oAttributeValue->value;
235                 }
236             }
237         }
238         $aAttributeNames = \ls\helpers\questionHelper::getQuestionAttributesSettings($sQuestionType);
239         uasort($aAttributeNames, 'categorySort');
240         foreach ($aAttributeNames as $iKey => $aAttribute)
241         {
242             if ($aAttribute['i18n'] == false)
243             {
244                 if (isset($aAttributeValues[$aAttribute['name']]))

Stack Trace

#0
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/masterall/application/controllers/admin/questions.php(82): Question->getAdvancedSettingsWithValues("174", "1", "44899", "fr")
77         $aData['surveyid'] = $iSurveyID;
78         $aData['qid'] = $qid;
79         $aData['gid'] = $gid;
80         $aData['qrrow'] = $qrrow;
81         $aData['baselang'] = $baselang;
82         $aAttributesWithValues = Question::model()->getAdvancedSettingsWithValues($qid, $qrrow['type'], $iSurveyID, $baselang);
83         $DisplayArray = array();
84 
85         foreach ($aAttributesWithValues as $aAttribute)
86         {
87             if (($aAttribute['i18n'] == false && isset($aAttribute['value']) && $aAttribute['value'] != $aAttribute['default']) || ($aAttribute['i18n'] == true && isset($aAttribute['value'][$baselang]) && $aAttribute['value'][$baselang] != $aAttribute['default']))
#3
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/masterall/application/core/Survey_Common_Action.php(101): CAction->runWithParamsInternal(questions, ReflectionMethod, array("surveyid" => "44899", "gid" => "41", "qid" => "174", "sa" => "view", ...))
096             $oMethod = new ReflectionMethod($this, $sDefault);
097         }
098 
099         // We're all good to go, let's execute it
100         // runWithParamsInternal would automatically get the parameters of the method and populate them as required with the params
101         return parent::runWithParamsInternal($this, $oMethod, $params);
102     }
103 
104     /**
105     * Some functions have different parameters, which are just an alias of the
106     * usual parameters we're getting in the url. This function just populates
#7
+
 /home/sondages.pro/htdocs/limesurvey_GIT/testing/masterall/application/controllers/AdminController.php(168): CController->run("questions")
163                     $this->redirect(array('/admin/authentication/sa/login'));
164                 }
165 
166             }
167 
168             return parent::run($action);
169     }
170 
171     /**
172     * Routes all the actions to their respective places
173     *
2016-09-20 08:58:34 Apache/2.2.22 (Debian) Yii Framework/1.1.17