PHP notice

Undefined offset: 1

/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_core_helper.php(1300)

1288         $errs = $this->RDP_errs;
1289         $tokens = $this->RDP_tokens;
1290         $errCount = count($errs);
1291         $errIndex = 0;
1292         if ($errCount > 0) {
1293             usort($errs, "cmpErrorTokens");
1294         }
1295         $stringParts = array();
1296         $numTokens = count($tokens);
1297         $globalErrs = array();
1298         $bHaveError = false;
1299         while ($errIndex < $errCount) {
1300             if ($errs[$errIndex++][1][1] == 0) {
1301                 // General message, associated with position 0
1302                 $globalErrs[] = $errs[$errIndex - 1][0];
1303                 $bHaveError = true;
1304             } else {
1305                 --$errIndex;
1306                 break;
1307             }
1308         }
1309         for ($i = 0; $i < $numTokens; ++$i) {
1310             $token = $tokens[$i];
1311             $messages = array();
1312             $thisTokenHasError = false;

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(6938): ExpressionManager->GetPrettyPrintString()
6933                     $updatedValues[$sgqa] = $_update;
6934                     $LEM->updatedValues[$sgqa] = $_update;
6935 
6936                 if (($LEM->debugLevel & LEM_DEBUG_VALIDATION_DETAIL) == LEM_DEBUG_VALIDATION_DETAIL)
6937                 {
6938                     $prettyPrintEqn = $LEM->em->GetPrettyPrintString();
6939                     $debug_qmessage .= '** Process Hidden but Relevant Equation [' . $sgqa . '](' . $prettyPrintEqn . ') => ' . $result . "<br />\n";
6940                 }
6941             }
6942 
6943             // Process Default : 1st part : update in DB if actually relevant and not already set
#1
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(5907): LimeExpressionManager->_ValidateQuestion(3, true)
5902                             $LEM->maxGroupSeq = $LEM->currentGroupSeq;
5903                         }
5904 
5905                         $LEM->ProcessAllNeededRelevance($LEM->currentQuestionSeq);
5906                         $LEM->_CreateSubQLevelRelevanceAndValidationEqns($LEM->currentQuestionSeq);
5907                         $result = $LEM->_ValidateQuestion($LEM->currentQuestionSeq,$force);
5908                         $message .= $result['message'];
5909                         $updatedValues = array_merge($updatedValues,$result['updatedValues']);
5910                         $gRelInfo = $LEM->gRelInfo[$LEM->currentGroupSeq];
5911                         $grel = $gRelInfo['result'];
5912 
#2
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(9425): LimeExpressionManager::JumpTo(3, true, false, true)
9420             if (!is_null($qid))
9421             {
9422                 $surveyMode='question';
9423                 LimeExpressionManager::StartSurvey($sid, 'question', $surveyOptions, false,$LEMdebugLevel);
9424                 $qseq = LimeExpressionManager::GetQuestionSeq($qid);
9425                 $moveResult = LimeExpressionManager::JumpTo($qseq+1,true,false,true);
9426             }
9427             else if (!is_null($gid))
9428             {
9429                 $surveyMode='group';
9430                 LimeExpressionManager::StartSurvey($sid, 'group', $surveyOptions, false,$LEMdebugLevel);
2018-11-22 17:26:40 nginx/1.12.1 Yii Framework/1.1.19
Application Log
Timestamp Level Category Message
17:26:40.127675 error php
Undefined offset: 1
(/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_core_helper.php:1300)
Stack trace:
#0
/mnt/data/shnoulle/nginx/www/master/application/helpers/expressions/em_manager_helper.php(9425):
JumpTo()
#1
/mnt/data/shnoulle/nginx/www/master/application/controllers/admin/expressions.php(141):
ShowSurveyLogicFile()
#2 unknown(0): Expressions->survey_logic_file()
#3
/mnt/data/shnoulle/nginx/www/master/framework/web/actions/CAction.php(109):
ReflectionMethod->invokeArgs()
#4
/mnt/data/shnoulle/nginx/www/master/application/core/Survey_Common_Action.php(83):
Expressions->runWithParamsInternal()
#5 /mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(308):
Expressions->runWithParams()
#6 /mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(286):
AdminController->runAction()
#7 /mnt/data/shnoulle/nginx/www/master/framework/web/CController.php(265):
AdminController->runActionWithFilters()
#8
/mnt/data/shnoulle/nginx/www/master/application/controllers/AdminController.php(158):
AdminController->run()
#9
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(282):
AdminController->run()
#10
/mnt/data/shnoulle/nginx/www/master/framework/web/CWebApplication.php(141):
LSYii_Application->runController()
#11
/mnt/data/shnoulle/nginx/www/master/framework/base/CApplication.php(185):
LSYii_Application->processRequest()
#12 /mnt/data/shnoulle/nginx/www/master/index.php(194):
LSYii_Application->run()
REQUEST_URI=/master/index.php?r=admin/expressions/sa/survey_logic_file/sid/377324/gid/128/qid/1506&1542907573092