PHP notice

Undefined offset: 1

/mnt/data/shnoulle/nginx/www/master/application/helpers/qanda_helper.php(3084)

3072             'suffix'                 => $suffix,
3073             'inputsize'              => $inputsize,
3074             'withColumn'             => $withColumn
3075             ), true);
3076     } elseif ((int) ($aQuestionAttributes['location_mapservice']) == 1) {
3077         $coreClass       = "ls-answers map-item geoloc-item";
3078         $currentLocation = $_SESSION['survey_'.Yii::app()->getConfig('surveyID')][$ia[1]];
3079         $currentLatLong  = null;
3080 
3081         // Get the latitude/longtitude for the point that needs to be displayed by default
3082         if (strlen($currentLocation) > 2) {
3083             $currentLatLong = explode(';', $currentLocation);
3084             $currentLatLong = array($currentLatLong[0], $currentLatLong[1]);
3085         } else {
3086             if ((int) ($aQuestionAttributes['location_nodefaultfromip']) == 0) {
3087                 $currentLatLong = getLatLongFromIp(getIPAddress());
3088             }
3089 
3090             if (!isset($currentLatLong) || $currentLatLong == false) {
3091                 $floatLat = 0;
3092                 $floatLng = 0;
3093                 $sDefaultcoordinates=trim(LimeExpressionManager::ProcessString($aQuestionAttributes['location_defaultcoordinates'], $ia[0], array(), 3, 1, false, false, true));/* static var is the last one */
3094                 $LatLong = explode(" ", $sDefaultcoordinates);
3095                 if (isset($LatLong[0]) && isset($LatLong[1])) {
3096                     $floatLat = $LatLong[0];

Stack Trace

#0
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/qanda_helper.php(203): do_shortfreetext(array("3226", "182855X234X3226", "GmapdefaultB", "GMAP default answer 48.8579684 2.2952776", ...))
198         case 'N': //NUMERICAL QUESTION TYPE
199             $values = do_numerical($ia);
200             break;
201 
202         case 'S': //SHORT FREE TEXT
203             $values = do_shortfreetext($ia);
204             break;
205 
206         case 'T': //LONG FREE TEXT
207             $values = do_longfreetext($ia);
208             break;
#1
+
 /mnt/data/shnoulle/nginx/www/master/application/helpers/SurveyRuntimeHelper.php(181): retrieveAnswers(array("3226", "182855X234X3226", "GmapdefaultB", "GMAP default answer 48.8579684 2.2952776", ...))
176                         }
177 
178                         //Get the answers/inputnames
179                         // TMSW - can content of retrieveAnswers() be provided by LEM?  Review scope of what it provides.
180                         // TODO - retrieveAnswers is slow - queries database separately for each question. May be fixed in _CI or _YII ports, so ignore for now
181                         list($plus_qanda, $plus_inputnames) = retrieveAnswers($ia);
182 
183                         if ($plus_qanda) {
184                             $plus_qanda[] = $ia[4];
185                             $plus_qanda[] = $ia[6]; // adds madatory identifyer for adding mandatory class to question wrapping div
186 
#2
+
 /mnt/data/shnoulle/nginx/www/master/application/controllers/survey/index.php(591): SurveyRuntimeHelper->run("182855", array("surveyid" => "182855", "thissurvey" => array("htmlemail" => "Y", "format" => "G", "template" => "skelvanilla", "language" => "en", ...), "thisstep" => null, "tokensexist" => 0, ...))
586         unset($redata);
587         $redata = compact(array_keys(get_defined_vars()));
588         Yii::import('application.helpers.SurveyRuntimeHelper');
589         $tmp = new SurveyRuntimeHelper();
590         // try {
591             $tmp->run($surveyid, $redata);
592         // } catch (WrongTemplateVersionException $ex) {
593         //     echo $ex->getMessage();
594         // }
595     }
596 
2019-01-05 11:39:14 nginx/1.14.1 Yii Framework/1.1.20