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(6877): LimeExpressionManager->_CreateSubQLevelRelevanceAndValidationEqns()
6872                     $LEM->maxGroupSeq = $gseq;
6873                 }
6874 
6875                 if (!$LEM->allOnOnePage || ($LEM->allOnOnePage && !$LEM->processedRelevance)) {
6876                     $LEM->ProcessAllNeededRelevance();  // TODO - what if this is called using Survey or Data Entry format?
6877                     $LEM->_CreateSubQLevelRelevanceAndValidationEqns();
6878                     $LEM->processedRelevance = true;
6879                 }
6880             }
6881         }
6882     }
#1
+
 /media/shnoulle/data/webdev/noplugin/application/controllers/SurveyAdministrationController.php(2326): LimeExpressionManager::StartProcessingGroup(299, true, 416533)
2321             LimeExpressionManager::UpgradeConditionsToRelevance($aImportResults['newsid']);
2322             @LimeExpressionManager::StartSurvey($oSurvey->sid, 'survey', $oSurvey->attributes, true);
2323             LimeExpressionManager::StartProcessingPage(true, true);
2324             $aGrouplist = QuestionGroup::model()->findAllByAttributes(['sid' => $aImportResults['newsid']]);
2325             foreach ($aGrouplist as $aGroup) {
2326                 LimeExpressionManager::StartProcessingGroup($aGroup['gid'], $oSurvey->anonymized != 'Y', $aImportResults['newsid']);
2327                 LimeExpressionManager::FinishProcessingGroup();
2328             }
2329             LimeExpressionManager::FinishProcessingPage();
2330 
2331             // Make the link point to the first group/question if available
#10
+
 /media/shnoulle/data/webdev/noplugin/application/controllers/LSBaseController.php(145): CController->run("copy")
140                     $this->redirect(array('/admin/authentication/sa/login'));
141                 }
142             }
143         }
144 
145         parent::run($action);
146     }
147 
148     /**
149      * Load and set session vars
150      *
2025-04-25 08:47:09 nginx/1.22.1 Yii Framework/1.1.30