PHP warning

Undefined array key "sqsuffix"

/media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(1218)

1206                                     foreach ($this->q2subqInfo[$fqid]['subqs'] as $fsq) {
1207                                         if (!isset($fsq['csuffix'])) {
1208                                             $fsq['csuffix'] = '';
1209                                         }
1210                                         if ($this->q2subqInfo[$fqid]['type'] == Question::QT_R_RANKING) {
1211                                             // we know the suffix exists
1212                                             $fsqs[] = '(' . $sgq . $fsq['csuffix'] . ".NAOK == '" . (string)substr((string) $sq['sqsuffix'], 1) . "')";
1213                                         } elseif ($this->q2subqInfo[$fqid]['type'] == Question::QT_COLON_ARRAY_NUMBERS && isset($this->qattr[$fqid]['multiflexible_checkbox']) && $this->qattr[$fqid]['multiflexible_checkbox'] == '1') {
1214                                             if ($fsq['sqsuffix'] == $sq['sqsuffix']) {
1215                                                 $fsqs[] = $sgq . $fsq['csuffix'] . '.NAOK=="1"';
1216                                             }
1217                                         } else {
1218                                             if ($fsq['sqsuffix'] == $sq['sqsuffix']) {
1219                                                 $fsqs[] = '!is_empty(' . $sgq . $fsq['csuffix'] . '.NAOK)';
1220                                             }
1221                                         }
1222                                     }
1223                                     if (count($fsqs) > 0) {
1224                                         $af_names[] = '(' . implode(' or ', $fsqs) . ')';
1225                                     }
1226                                 }
1227                                 foreach ($cascadedAFE as $_cafe) {
1228                                     $sgq = ((isset($this->qcode2sgq[$_cafe])) ? $this->qcode2sgq[$_cafe] : $_cafe);
1229                                     $fqid = explode('X', (string) $sgq);
1230                                     if (!isset($fqid[2])) {

Stack Trace

#0
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/expressions/em_manager_helper.php(5549): LimeExpressionManager->_CreateSubQLevelRelevanceAndValidationEqns(3)
5544                     $LEM->currentGroupSeq = $qInfo['gseq'];
5545                     if ($LEM->currentGroupSeq > $LEM->maxGroupSeq) {
5546                         $LEM->maxGroupSeq = $LEM->currentGroupSeq;
5547                     }
5548                     $LEM->ProcessAllNeededRelevance($LEM->currentQuestionSeq);
5549                     $LEM->_CreateSubQLevelRelevanceAndValidationEqns($LEM->currentQuestionSeq);
5550                     $result = $LEM->_ValidateQuestion($LEM->currentQuestionSeq, $force);
5551                     $message .= $result['message'];
5552                     $updatedValues = array_merge($updatedValues, $result['updatedValues']);
5553                     $gRelInfo = $LEM->gRelInfo[$LEM->currentGroupSeq];
5554                     $grel = $gRelInfo['result'];
#1
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(1814): LimeExpressionManager::JumpTo(3, "question", false, true)
1809             }
1810         } elseif ($this->previewquestion) {
1811             $_qid       = sanitize_int($this->param['qid']);
1812             LimeExpressionManager::StartSurvey($this->iSurveyid, $this->sSurveyMode, $this->aSurveyOptions, true, $this->LEMdebugLevel);
1813             $qSec = LimeExpressionManager::GetQuestionSeq($_qid);
1814             $this->aMoveResult = LimeExpressionManager::JumpTo($qSec + 1, 'question', false, true);
1815             $this->aStepInfo = LimeExpressionManager::GetStepIndexInfo($this->aMoveResult['seq']);
1816         }
1817     }
1818 
1819 
#2
+
 /media/shnoulle/data/webdev/noplugin/application/helpers/SurveyRuntimeHelper.php(219): SurveyRuntimeHelper->setPreview()
214             $this->saveAllIfNeeded();
215             $this->saveSubmitIfNeeded();
216             // TODO: move somewhere else
217             $this->setNotAnsweredAndNotValidated();
218         } else {
219             $this->setPreview();
220         }
221         $this->moveSubmitIfNeeded();
222         $this->setGroup();
223         $this->fixMaxStep();
224 
2025-04-25 08:44:58 nginx/1.22.1 Yii Framework/1.1.30