PHP warning

A non-numeric value encountered

/mnt/data/shnoulle/nginx/www/master/application/core/QuestionTypes/ArrayFlexibleRow/RenderArrayFlexibleRow.php(82)

70             if (preg_match("/^[^|]+\|[^|]+$/", $oSubQuestions->questionl10ns[$this->sLanguage]->question)) {
71                 $combined++;
72             }
73             return $combined;
74         }, 0);
75         // $right_exists is a flag to find out if there are any right hand answer parts. 
76         // If there arent we can leave out the right td column
77         $this->rightExists = ($iCount > 0);
78 
79         $this->answerwidth = $this->setDefaultIfEmpty($this->getQuestionAttribute('answer_width'), 33);
80         $this->defaultWidth = ($this->answerwidth===33);
81         
82         $this->columnswidth = 100 - $this->answerwidth;
83 
84         if($this->rightExists) {
85         /* put the right answer to same width : take place in answer width only if it's not default */
86             if ($this->defaultWidth) {
87                 $this->columnswidth -= $this->answerwidth;
88             } else {
89                 $this->answerwidth = $this->answerwidth / 2;
90             }
91         }
92         if($this->getQuestionCount() > 0) {
93             $this->cellwidth = round(($this->columnswidth / $this->getAnswerCount()), 1);
94         }

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/master/application/models/Question.php(1159): RenderArrayFlexibleRow->__construct(array("5246", "275575X344X5246", "Q00", "A first example question. Please answer this question:", ...))
1154             case Question::QT_K_MULTIPLE_NUMERICAL_QUESTION: $oRenderer = new RenderMultipleNumerical($aFieldArray); break;
1155             case Question::QT_A_ARRAY_5_CHOICE_QUESTIONS: $oRenderer = new RenderArray5ChoiceQuestion($aFieldArray); break;
1156             case Question::QT_B_ARRAY_10_CHOICE_QUESTIONS: $oRenderer = new RenderArray10ChoiceQuestion($aFieldArray); break;
1157             case Question::QT_C_ARRAY_YES_UNCERTAIN_NO: $oRenderer = new RenderArrayYesUncertainNo($aFieldArray); break;
1158             case Question::QT_E_ARRAY_OF_INC_SAME_DEC_QUESTIONS: $oRenderer = new RenderArrayOfIncSameDecQuestions($aFieldArray); break;
1159             case Question::QT_F_ARRAY_FLEXIBLE_ROW: $oRenderer = new RenderArrayFlexibleRow($aFieldArray); break;
1160             case Question::QT_G_GENDER_DROPDOWN: $oRenderer = new RenderGenderDropdown($aFieldArray); break;
1161             case Question::QT_H_ARRAY_FLEXIBLE_COLUMN: $oRenderer = new RendererArrayFlexibleColumn($aFieldArray); break;
1162             case Question::QT_N_NUMERICAL: $oRenderer = new RenderNumerical($aFieldArray); break;
1163             case Question::QT_S_SHORT_FREE_TEXT: $oRenderer = new RenderShortFreeText($aFieldArray); break;
1164             case Question::QT_Y_YES_NO_RADIO: $oRenderer = new RenderYesNoRadio($aFieldArray); break;
#1
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/qanda_helper.php(152): Question->getRenderererObject(array("5246", "275575X344X5246", "Q00", "A first example question. Please answer this question:", ...))
147     );
148 
149     $oQuestion = Question::model()->findByPk($ia[0]);
150     $oQuestionTemplate = QuestionTemplate::getNewInstance($oQuestion);
151     $oQuestionTemplate->registerAssets(); // Register the custom assets of the question template, if needed
152     $oRenderer = $oQuestion->getRenderererObject($ia);
153     $values = $oRenderer->render();
154 
155 
156     if (isset($values)) {
157         //Break apart $values array returned from switch
#2
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/SurveyRuntimeHelper.php(280): retrieveAnswers(array("5246", "275575X344X5246", "Q00", "A first example question. Please answer this question:", ...))
275                         }
276 
277                         //Get the answers/inputnames
278                         // TMSW - can content of retrieveAnswers() be provided by LEM?  Review scope of what it provides.
279                         // TODO - retrieveAnswers is slow - queries database separately for each question. May be fixed in _CI or _YII ports, so ignore for now
280                         list($plus_qanda, $plus_inputnames) = retrieveAnswers($ia);
281 
282                         if ($plus_qanda) {
283                             $plus_qanda[] = $ia[4];
284                             $plus_qanda[] = $ia[6]; // adds madatory identifyer for adding mandatory class to question wrapping div
285 
2020-10-20 06:37:42 nginx/1.18.0 Yii Framework/1.1.22-dev